Neil Bothwick wrote:
> On Thu, 14 Dec 2006 10:49:34 -0800, Grant wrote:
>
>   
>>> $ free
>>>              total       used       free     shared    buffers
>>> cached Mem:       1028164     928764      99400          0
>>> 28228     468768 -/+ buffers/cache:     431768     596396
>>> Swap:      1556168     210476    1345692  
>>>       
>> That looks like the exact same info top gives me.  I have 2GB in my
>> server and I'm trying to figure out if I could get away with 1GB
>> without swapping.  Is there a tool that can help me figure that out?
>>     
>
> The second line shows the usage without caches/buffers. If you want to
> see what your system would be like with 1G, use the mem=1024 option on
> the kernel line in GRUB. Run the system for a while and monitor swap
> usage.
>
>
>   

The last time I tried mem=xxx it didn't work. It was several years ago
on a vanilla kernel 2.6.x. I'm not sure if this kernel parameter is
valid anymore. So here is an additional idea for wasting 1GB of RAM:
create a 1G file in /dev/shm/ ;-)

Anyway to control the swapping one could use the sysctl utility
providing a value between 0 and 100 in /etc/sysctl.conf for
"vm.swappiness". 0 means "almost no swapping" 100 means "swap almost
everything". To disable swapping at all, of course there is "swapoff -a" ;-)

HTH

-- 
Best regards,
Daniel


-- 
gentoo-user@gentoo.org mailing list

Reply via email to