Re: Force process to swap?
-----BEGIN PGP SIGNED MESSAGE-----
On 04/30/08 09:40, Douglas A. Tutty wrote:
> On Tue, Apr 29, 2008 at 10:28:53PM -0500, Ron Johnson wrote:
>> On 04/29/08 22:04, Douglas A. Tutty wrote:
>>> On Thu, Apr 24, 2008 at 11:06:25AM -0500, Ron Johnson wrote:
>>>> On 04/24/08 10:09, Hugo Vanwoerkom wrote:
>>>>> Ron Johnson wrote:
>>>>>> On 04/24/08 01:34, Rich Healey wrote:
>>>> I use "swap" in the generic sense, but really mean "page". Does
>>>> Linux even *do* process swapping?
>>> I've never seen Linux swap out idle processes.
>> I'm surprised. Seems to me that an idle process and it's allocated
>> memory would be the *perfect* candidates to be swapped out. And
>> anthropomorphized vm systems might say, "I need RAM, and you're
>> 5,000 pages are the least recently used, so I'll just push you on
>> out to disk to make room for actively used data."
> Sure it would make sense; other Unix's do, but I've never seen Linux
> swap out, e.g. idle gettys or bash, or even idle exim4s (which would
> make sense for a dial-up box that only uses exim during daily email
> checks and cron runs).
Hmmm, I see the communication disconnect. You are correct that it
won't swap out whole processes in one fell swoop. But an idle
process on a memory-constrained system could *effectively* see
itself swapped out a few pages at a time, as the kernel sees that
those pages are haven't been used in a while.
Ron Johnson, Jr.
Jefferson LA USA
We want... a Shrubbery!!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----