Re: Multiple swap partition uglies (fwd)

Rik van Riel (
Thu, 21 May 1998 18:49:21 +0200 (MET DST)

On Thu, 21 May 1998, Riley Williams wrote:

> > After I do swapoff on one of the partitions, the drive goes crazy
> > for about 5 minutes, and after that, the problem has gone away.
> My assumption would be that the 'drive goes crazy' occurs whilst the
> kernel moves the used blocks in the partition you've asked to disable
> into the other one, probably having to swap used stuff out of memory
> as well.

I think we can easily do something about this:
- when we swapin pages because of a swapoff, we should give
those pages an initial age of 0, instead of the usual value
- we should make sure that the swapin/out only has I/O
requests outstanding for some 50% of the time (this one
is more tricky)

Then we can do a relatively smooth swapoff.

| Linux: - LinuxHQ MM-patches page | Scouting webmaster |
| - kswapd ask-him & complain-to guy | Vries cubscout leader |
| | <> |

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to