NetBSD-Users archive

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

Re: "adjusting" / control Swapping

On Thu, Sep 16, 2010 at 09:59:04AM -0400, Gary Duzan wrote:
> In Message <20100916134111.GA1589%agamemnon.entropie.local@localhost>,
>    "Martin S. Weber" <>wrote:
> =>That's not the real problem in my experience. It's rather, long running
> =>programs / daemons get pushed onto swap by e.g. the daily process's
> =>find(1) etc. boosting the file cache. And then, in the morning, you
> =>return to your computer to see it's having a gig on swap and three
> =>gigs of free RAM. And it's e.g. firefox that's completely out on swap.
> =>And even if you start using firefox again, it does not swap in completely.
> =>You have to kill it and restart so that it uses real memory.
> =>
> =>I.e. memory that got swapped out doesn't get returned to RAM when
> =>the shortage on RAM is over. And that sucks. Hard.
>    If this is really what you want, you can run "swapctl -d" then
> "swapctl -a" on each swap device to force the pages back into RAM.
> If you have multiple swap devices, doing this on one device at a
> time should be less likely to fail due to insufficient space.

Alright, steamhammer, but it'll work for my problem. Thanks for reminding me.


Home | Main Index | Thread Index | Old Index