NetBSD-Users archive

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

Re: "adjusting" / control Swapping

On Thursday 16 September 2010 14:41:11 Martin S. Weber wrote:

> I.e. memory that got swapped out doesn't get returned to RAM when
> the shortage on RAM is over. And that sucks. Hard.

I think you misunderstand how swap works, i.e. it is designed to be like that. 
If something gets pushed to swap, it stays there until the required pages are 
referenced. Remember a running process is broken down into pages, only the 
pages that are needed for execution are loaded into RAM, this is how virtual 
memory subsystem works, be it NetBSD, Linux, or Solaris.

What you need to find out why pages get pushed to swap.

Home | Main Index | Thread Index | Old Index