Re: [patch] new-vm improvement [Re: 2.2.0 Bug summary]

Benjamin Redelings I (bredelin@ucsd.edu)
Thu, 31 Dec 1998 14:03:18 -0800


Hi Andrea,

I added your patch to test1-2.2.0-pre2, and your patch does not appear
to work, becuase the page cache grows too large and swaps out too many
things.

At bootup:
telomere:~> cat free1
total used free shared buffers
cached
Mem: 63476 25684 37792 18108 1476
15376
-/+ buffers/cache: 8832 54644
Swap: 34236 0 34236

After running netscape:
telomere:~> cat free2
total used free shared buffers
cached
Mem: 63476 48352 15124 30592 1796
28772
-/+ buffers/cache: 17784 45692
Swap: 34236 0 34236

After running 'wc /usr/bin/*'
telomere:~> cat free3
total used free shared buffers
cached
Mem: 63476 61100 2376 10464 1064
51040
-/+ buffers/cache: 8996 54480
Swap: 34236 9904 24332

Without your patch, running 'wc /usr/bin/*' swaps out only about 220k.
So perhaps your change to 'count' in filemap.c was incorrect?

> - count = (limit<<1) >> (priority);
> + count = limit >> priority;

-benRI

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/