Re: speeding up swapoff

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Arjan van de Ven <arjan@...>
Cc: Daniel Drake <ddrake@...>, <linux-mm@...>, <linux-kernel@...>
Date: Wednesday, August 29, 2007 - 11:58 am

On Wed, 29 Aug 2007, Arjan van de Ven wrote:

The present method should be reading sequentially (with gaps),
rather than randomly.  Perhaps we need to check what's happening
in practice.

(I've often dithered over whether we should be doing swap readahead
there or not: at present it does not, preferring to assume buffering
at the hardware level, and last time I checked that worked out a
little better.)


(I didn't understand your point there, but Daniel has replied that
it's not at shutdown anyway.)


We definitely don't page those in, it would be a disaster for process
exit if we did: they just get discarded.

As you say, shutdown is rarely a big issue, because almost all the
processes which had stuff in swap have already been killed.  tmpfs
use of swap can be an issue there, but if the distro is wise, it'll
do things in such an order that tmpfs'es are unmounted before swapoff
(but may need two passes: the opposite case is a regular swapfile,
where we need to swapoff before that partition can be unmounted).

Hugh
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
speeding up swapoff, Daniel Drake, (Wed Aug 29, 9:29 am)
Re: speeding up swapoff, Lee Schermerhorn, (Wed Aug 29, 12:08 pm)
Re: speeding up swapoff, Hugh Dickins, (Wed Aug 29, 11:36 am)
Re: speeding up swapoff, Eric W. Biederman, (Thu Aug 30, 4:27 am)
Re: speeding up swapoff, Hugh Dickins, (Thu Aug 30, 6:36 am)
Re: speeding up swapoff, Daniel Drake, (Thu Aug 30, 11:05 am)
Re: speeding up swapoff, Arjan van de Ven, (Wed Aug 29, 10:30 am)
Re: speeding up swapoff, Hugh Dickins, (Wed Aug 29, 11:58 am)
Re: speeding up swapoff, Daniel Drake, (Wed Aug 29, 10:44 am)
Re: speeding up swapoff, Andi Kleen, (Sat Sep 1, 6:20 pm)
Re: speeding up swapoff, Bill Davidsen, (Thu Aug 30, 11:57 am)
Re: speeding up swapoff, Juergen Beisert, (Wed Aug 29, 11:12 am)
Re: speeding up swapoff, Oliver Neukum, (Wed Aug 29, 10:36 am)
Re: speeding up swapoff, Hugh Dickins, (Wed Aug 29, 12:04 pm)
Re: speeding up swapoff, Oliver Neukum, (Wed Aug 29, 12:18 pm)