Re: Memory Mangement Problem in 5.1-RELEASE

From: John-Mark Gurney <gurney_j_at_efn.org>
Date: Sat, 26 Jul 2003 16:17:19 -0700
Poul-Henning Kamp wrote this message on Sat, Jul 26, 2003 at 10:04 +0200:
> In message <Law14-F97JswFCHOzyf0000896a_at_hotmail.com>, "Ahmed Al-Hindawi" writes
> Programs like cp(1) uses mmap(2) to copy things, so if you cp(1) a big
> file, it is not uncommon for some programs to end up on swap.  Until they

Only for files up to 8megs in size.  I was meaning to ask if we should
incrase this limit.

line 136 of src/bin/cp/utils.c:
	if (S_ISREG(fs->st_mode) && fs->st_size <= 8 * 1048576) {

> are used again, they will not get paged in.  I often see the getty's for
> the vty's and similar junk on my swap space.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
Received on Sat Jul 26 2003 - 14:17:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:16 UTC