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

Re: kernel swap question



In my experience (I'm a HPC cluster admin btw.), Linux doesn't swap until RAM is
drained to 10MB or so. Until then, everything is kept in RAM in a so called
buffer area. Kernel also doesn't force a size for this buffer area and only
swaps if the RAM drainage occurs. As soon as the free space in RAM increases,
Linux again stuffs everything to RAM.

If your application is not trying to fill everything, you are very less likely
to swap anyway.

I've never seen a linux box, whether a HPC server or one of my linux boxes, to
swap while it has free RAM. sometimes my office PC (which reboots only in kernel
upgrades) sometimes swaps 7/8MBs but I don't know which application is it (or if
it ever needs to the data in the swap) since I've never tried to fill my RAM.

Cheers,

--Hakan

Mag Gam wrote:
> Also, my I/O is pretty fast. It can do 250/MBsec read/write randomly.
> If that helps..
> 
> TIA
> 
> 
> On Sat, Sep 13, 2008 at 6:28 PM, Mag Gam <magawake@gmail.com> wrote:
>> I have a system with 32GB of RAM. The application is designed so it
>> does not do sequential reads and it does random operations. The
>> application memory intensive and I would like it to not swap. I want
>> it to use physical memory as much as possible. Once the memory is read
>> and operated on, I want that page to disappear and not even goto
>> paging status. What is the best VM tuning for this?
>>
>> TIA
>>
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: