NetBSD-Users archive

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

Re: Using swap though there's plenty of mem free



js%webkeks.org@localhost (Jonathan Schleifer) writes:

>> At one time, the system ran out of RAM and had to push some pages to
>> the swap partition. Then some RAM got freed, but the pages that
>> have been pushed to ram have not been used since then.

>It would be nice to have an option to read them from swap and put them
>in RAM again then :).

Unlike paging-out, where you make a decision on past usage
of memory, such opportunistic paging-in requires a decision
on future usage of memory. And that's a little bit more
difficult.

Even if you find a daemon that knows about the future and
tells you that paging in your large program is safe, it will
probably not be faster than you accessing that large program
and triggering the reload manually.


-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index