Re: speeding up swapoff

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Saturday, September 1, 2007 - 3:20 pm

Daniel Drake <ddrake@brontes3d.com> writes:

If the system gets under serious memory pressure it'll happily discard
your text pages too (and later reload them from disk). The same
for any file data you might need to access.

swapoff will only affect anonymous memory, but not all the other
memory you'll need as well.

There's no way around mlock/mlockall() to really prevent this.

Still even with that you could still lose dentries/inodes etc which
can also cause stalls. The only way to keep them locked
is to keep the files always open.

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

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