Re: speeding up swapoff

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hugh Dickins
Date: Thursday, August 30, 2007 - 3:36 am

On Thu, 30 Aug 2007, Eric W. Biederman wrote:

Andrew rewrote swapfile support in 2.5, making it use FIBMAP at
swapon time: so that in 2.6 swapfiles are as deadlock-free and
as efficient (unless the swapfile happens to be badly fragmented)
as raw disk partitions.

There's certainly scope for a study of I/O patterns in swapping,
it's hard to imagine that improvements couldn't be made (but also
easy to imagine endless disputes over different kinds of workload).
But most people would appreciate an improvement in active swapping,
and not care very much about the swapoff.

Regarding Daniel's use of swapoff: it's a very heavy sledgehammer
for cracking that nut, I strongly agree with those who have pointed
him to mlock and mlockall instead.

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