Martin DiViaio on Mon, 5 Jun 2000 13:02:10 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

RE: [PLUG] Cache Size


>===== Original Message From darxus@chaosreigns.com =====
>
>"Linux has an always full memory model".  If your memory isn't being used
>for something else, it'll be used up for cache.  If it's needed by other
>things, it'll be taken from what's being used for cache first.
>
>Don't know if this is what you're seeing.
>

No, as a matter of fact it's not what I am seeing. According to /proc/meminfo 
there is 15-20MB of RAM it's calling Cached Memory. It never goes down from 
that figure. I start to hit swap agressively almost immediately when the 
"Free" memory starts to get used. According to the <Alt><SysRq>m page it's the 
page and file cache. I've tried changing the figures in 
/proc/sys/vm/buffermem, /proc/sys/vm/pagecache and 
/proc/sys/vm/pagetable_cache. The kernel appears to respond to the buffermem 
parameters but not the pagecache ones.

The only compiletime option I've found so far is CONFIG_NO_PGT_CACHE. Which 
will stop the page table cache which according to the proc.txt file is only 
used for multi-processors (which I don't have.) So that's part of it but I 
haven't found an answer for setting the page/file cache sizes yet.

One odd note that I've found is that the kernel appears to respond somewhat to 
the cache= command at boot. Where I had 20-25MB of space allocated to the 
cache I now have 15-20MB allocated.

Buying more memory for this computer is not really an option. It's a laptop 
and while I think the BIOS can handle larger amounts or RAM the ram slot is 
custom to the model and memory cards over 32MB don't exhist. (32MB + 8MB on 
board.)

--

reality.sys corrupted. Reset universe? (Y/N)


______________________________________________________________________
Philadelphia Linux Users Group       -       http://plug.nothinbut.net
Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce
General Discussion   -   http://lists.nothinbut.net/mail/listinfo/plug