From: Rik van Riel <riel@redhat.com>
To: Linux kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: kernel 2.6.22: what IS the VM doing?
Date: Wed, 05 Sep 2007 12:24:26 -0400 [thread overview]
Message-ID: <46DED83A.8070104@redhat.com> (raw)
In-Reply-To: <20070905114545.2hydqpasqx56afkf@m.safari.iki.fi>
[-- Attachment #1: Type: text/plain, Size: 754 bytes --]
Sami Farin wrote:
> On Tue, Sep 04, 2007 at 21:37:35 -0400, Rik van Riel wrote:
>> Is the system trying to evict pages like crazy when your
>> system becomes unusable?
>
> I think so..
>
>> If so, I wonder if kswapd is simply doing the wrong thing
>> and trying to evict data from all zones, simply because the
>> highmem zone is low on free pages...
>
> *shrug*
The attached patch should make sure kswapd does not free an
excessive number of pages in zone_normal just because the
pages in zone_highmem are difficult to free.
It does give kswapd a large margin to continue putting equal
pressure on all zones in normal situations.
Sami, could you try out this patch to see if it helps your
situation?
Signed-off-by: Rik van Riel <riel@redhat.com>
[-- Attachment #2: linux-2.6-excessive-pageout.patch --]
[-- Type: text/x-patch, Size: 714 bytes --]
--- linux-2.6.22.noarch/mm/vmscan.c.excessive 2007-09-05 12:19:49.000000000 -0400
+++ linux-2.6.22.noarch/mm/vmscan.c 2007-09-05 12:21:40.000000000 -0400
@@ -1371,7 +1371,13 @@ loop_again:
temp_priority[i] = priority;
sc.nr_scanned = 0;
note_zone_scanning_priority(zone, priority);
- nr_reclaimed += shrink_zone(priority, zone, &sc);
+ /*
+ * We put equal pressure on every zone, unless one
+ * zone has way too many pages free already.
+ */
+ if (!zone_watermark_ok(zone, order, 8*zone->pages_high,
+ end_zone, 0))
+ nr_reclaimed += shrink_zone(priority, zone, &sc);
reclaim_state->reclaimed_slab = 0;
nr_slab = shrink_slab(sc.nr_scanned, GFP_KERNEL,
lru_pages);
next prev parent reply other threads:[~2007-09-05 16:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-30 11:54 kernel 2.6.22: what IS the VM doing? Sami Farin
2007-09-05 1:37 ` Rik van Riel
2007-09-05 11:45 ` Sami Farin
2007-09-05 16:24 ` Rik van Riel [this message]
2007-09-05 17:33 ` Sami Farin
2007-09-05 22:48 ` Rik van Riel
2007-09-14 17:17 ` Sami Farin
2007-11-02 14:36 ` kernel 2.6.23: " Sami Farin
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=46DED83A.8070104@redhat.com \
--to=riel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.