Re: [ILUG] "Swap-in" tool?

From: Justin Mason (jm at domain jmason.org)
Date: Mon 30 Sep 2002 - 17:53:05 IST


Kenn Humborg said:

> One side effect of this is that pretty much every application gets
> swapped out and the RAM gets filled with cache data. So when I
> come along in the morning, everything is quite sluggish as stuff
> gets swapped back in again.

This might be worth a try:

        cat < `which mozilla` > /dev/null
        cat < `which evolution` > /dev/null
        cat < `which rxvt` > /dev/null
        cat /usr/lib/libc.so* > /dev/null
        ....

This will certainly speed up startup times by caching the text pages, so
for heavy-on-the-text binaries (as opposed to lots-of-RAM-
allocated-after-startup ones) it may help in the already-started case.

The swap trick sounds pretty neat though BTW. But if you're running
other crons it could be risky...

--j.



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:19:09 GMT