From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Bulent Abali <abali@us.ibm.com>
Cc: Mike Galbraith <mikeg@wen-online.de>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Derek Glidden <dglidden@illusionary.com>,
lkml <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org
Subject: Re: Please test: workaround to help swapoff behaviour
Date: Thu, 7 Jun 2001 16:40:28 -0300 (BRT) [thread overview]
Message-ID: <Pine.LNX.4.21.0106071606540.1156-100000@freak.distro.conectiva> (raw)
In-Reply-To: <OF4314E00C.5B8A0E4C-ON85256A64.006F54E0@pok.ibm.com>
On Thu, 7 Jun 2001, Bulent Abali wrote:
>
> I tested your patch against 2.4.5. It works. No more lockups. Without
> the
> patch it took 14 minutes 51 seconds to complete swapoff (this is to recover
> 1.5GB of
> swap space). During this time the system was frozen. No keyboard, no
> screen, etc. Practically locked-up.
>
> With the patch there are no more lockups. Swapoff kept running in the
> background.
> This is a winner.
>
> But here is the caveat: swapoff keeps burning 100% of the cycles until it
> completes.
Yup. Wait a while until the dead swap cache issue is sorted out.
When that finally happens, the time spent in swapoff will probably be
"acceptable".
> This is not going to be a big deal during shutdowns. Only when you enter
> swapoff from
> the command line it is going to be a problem.
>
> I looked at try_to_unuse in swapfile.c. I believe that the algorithm is
> broken.
Yes.
> For each and every swap entry it is walking the entire process list
> (for_each_task(p)). It is also grabbing a whole bunch of locks
> for each swap entry. It might be worthwhile processing swap entries in
> batches instead of one entry at a time.
The real fix is to make the processing the other way around --- go looking
into the pte's and from there do the swapins.
Don't have the time to do everything, though. :)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
next prev parent reply other threads:[~2001-06-07 19:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-07 20:33 Bulent Abali
2001-06-07 19:40 ` Marcelo Tosatti [this message]
2001-06-08 21:11 ` Marcelo Tosatti
-- strict thread matches above, loose matches on Subject: below --
2001-06-10 13:56 Bulent Abali
2001-06-09 20:32 Bulent Abali
2001-06-10 2:12 ` Eric W. Biederman
2001-06-10 5:54 ` Mikael Abrahamsson
2001-06-08 23:53 Bulent Abali
2001-06-07 17:10 Break 2.4 VM in five easy steps Marcelo Tosatti
2001-06-07 17:43 ` Please test: workaround to help swapoff behaviour Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0106071606540.1156-100000@freak.distro.conectiva \
--to=marcelo@conectiva.com.br \
--cc=abali@us.ibm.com \
--cc=dglidden@illusionary.com \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mikeg@wen-online.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox