Re: Large slab cache in 2.6.1
From: Mike Fedyk
Date: Sat Feb 21 2004 - 22:23:46 EST
Linus Torvalds wrote:
On Sat, 21 Feb 2004, Chris Wedgwood wrote:
Forcing paging will push this down to acceptable levels but it's a
really irritating solution --- I'm still trying to think of a better
way to stop the dentries from using such a disproportionate amount of
memory.
Why?
It's quite likely that especially on a fairly idle machine, the dentry
cache really _should_ be the biggest single memory user.
Why? Because an idle machine tends to largely be dominated by things like
"updatedb" and friends running. If there isn't any other real activity,
there's no reason for a big page cache, nor is there anything that would
put memory pressure on the dentries, so they grow as much as they can.
Do you see any actual bad behaviour from this?
Linus
Yes, see another message from me in this thread where I cat all files in
my drive with 700MB slab (mostly dentries), and 100MB page cache after
it's done.
Other than that the machine is idle over the weekend. During the week
it serves files over samba and knfsd in addition to exporting ~20 KDE
desktops over VNC, and imap to ~4 users. The desktops get little use at
the moment though.
So having a small page cache should be detrimental to this machine.
http://www.matchmail.com/stats/lrrd/matchmail.com/srv-lnx2600.matchmail.com.html
The url above will show graphs for the machine in question. But these
graphs should be particularly interesting:
I'm swapping ocassionally, but only ~5 of the 20 KDE desktops are in use
during the week:
http://www.matchmail.com/stats/lrrd/matchmail.com/srv-lnx2600.matchmail.com-swap.html
http://www.matchmail.com/stats/lrrd/matchmail.com/srv-lnx2600.matchmail.com-memory.html
I have a lot of open inodes, and when that goes down, so does the size
of my slab:
http://www.matchmail.com/stats/lrrd/matchmail.com/srv-lnx2600.matchmail.com-open_inodes.html
This is to show the disk activity that should have enlarged my page cache:
http://www.matchmail.com/stats/lrrd/matchmail.com/srv-lnx2600.matchmail.com-iostat.html
Mike
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/