Re: Questions regarding Linux swapping.

Robert de Bath (rd103979@home-box.demon.co.uk)
Mon, 2 Aug 1999 19:32:37 +0100 (BST)


Sounds like you mean just after boot on a small memory system.

What I used to do was force everything out just after boot and let the
kernel page it back in:

dd bs=32768k count=1 if=/dev/zero of=/dev/null

but that's been optimised away now, now you have to use:

cat /dev/zero | dd ibs=1k count=32768 obs=32768k of=/dev/null

The 32768 is the size of your memory ... be very sure you have enough
swap!

-- 
Rob.                          (Robert de Bath <http://poboxes.com/rdebath>)
                    <rdebath @ poboxes.com> <http://www.cix.co.uk/~mayday>

On Mon, 2 Aug 1999, Lucca wrote:

> Is there a way to tell the kernel to swap certain programs? > > I know that sounds weird... but there are many things I have loaded > that don't get used continously. Inetd isn't always the answer... > > After running for a while, most usually end up in swap anyway, but it > would be convenient to be able to tell the kernel to swap most of certain > processes so the additional ram could be used for cache that much > sooner... > > Lucca > sdlucca@mindspring.com > > > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.rutgers.edu > Please read the FAQ at http://www.tux.org/lkml/ >

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/