Re: speeding up swapoff

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Daniel Drake <ddrake@...>
Cc: <linux-mm@...>, <linux-kernel@...>, Juergen Beisert <juergen127@...>
Date: Wednesday, August 29, 2007 - 12:08 pm

On Wed, 2007-08-29 at 09:29 -0400, Daniel Drake wrote:

Daniel:  

in a response, Juergen Beisert asked if you'd tried mlock()  [mlockall()
would probably be a better choice] to lock your application into memory.
That would require modifying the application.  Don't know if you want to
do that.

Back in Feb'07, I posted an RFC regarding [optionally] inheriting
mlockall() semantics across fork and exec.  The original posting is
here:

	http://marc.info/?l=linux-mm&m=117217855508612&w=4

The patch is quite stale now [against 20-rc<something>], but shouldn't
be too much work to rebase to something more recent.  The patch
description points to an ad hoc mlock "prefix command" that would allow
you to:

	mlock <some application>

and run the application as if it had called "mlockall(MCL_CURRENT|
MCL_FUTURE)", without having to modify the application--if that's
something you can't or don't want to do.

Maybe this would help?

Lee

-
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)