lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070925213156.68fceea2@bree.surriel.com>
Date:	Tue, 25 Sep 2007 21:31:56 -0400
From:	Rik van Riel <riel@...hat.com>
To:	Jan Kundrát <jkt@...too.org>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: kswapd high CPU usage with no swap

On Tue, 25 Sep 2007 12:13:41 +0200
Jan Kundrát <jkt@...too.org> wrote:

> Rik van Riel wrote:
> > How much memory did you have in "cached" when you looked
> > with top (and no swap enabled) ?
> 
> Hi Rik,
> it was pretty low number (several thousands, or maybe tens of
> thousands).
> 
> In the meanwhile, I've come across your patch [1] ("prevent kswapd
> from freeing excessive amounts of lowmem") and applied it locally.

Could you try out the attached patch, too?

Kswapd and try_to_free_pages() have a built-in pause, where
it waits for IO to complete.  However, the current code also
calls blk_congestion_wait() when there is no IO in flight!

This patch should only make the pageout code wait for IO when
there actually is a significant amount of pageout IO in flight.

Signed-off-by: Rik van Riel <riel@...hat.com>

View attachment "linux-2.6-kswapd-iowait.patch" of type "text/x-patch" (2215 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ