Memory Mangement Problem in 5.1-RELEASE

John-Mark Gurney gurney_j at
Sat Jul 26 16:17:38 PDT 2003

Poul-Henning Kamp wrote this message on Sat, Jul 26, 2003 at 10:04 +0200:
> In message <Law14-F97JswFCHOzyf0000896a at>, "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."

More information about the freebsd-current mailing list