linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nikita Danilov <Nikita@Namesys.COM>
To: Andrew Morton <akpm@osdl.org>
Cc: Linux-Kernel@vger.kernel.org
Subject: Re: [PATCH] 1/5 VM changes: zone-pressure.patch
Date: Wed, 9 Jul 2003 14:30:53 +0400	[thread overview]
Message-ID: <16139.61149.764358.333360@laputa.namesys.com> (raw)
In-Reply-To: <20030709032227.23ee4159.akpm@osdl.org>

Andrew Morton writes:
 > Nikita Danilov <Nikita@Namesys.COM> wrote:
 > >
 > >  +	if (priority < 0) {
 > >  +		for (i = 0; i < pgdat->nr_zones; i++) {
 > >  +			struct zone *zone = pgdat->node_zones + i;
 > >  +
 > >  +			if (zone->free_pages < zone->pages_high)
 > >  +				zone_adj_pressure(zone, -1);
 > >  +		}
 > >  +	}
 > 
 > What is this bit doing?

kswapd failed to balance some zone after going up to the maximal
priority (0), increase ->pressure on this zone.

In other words: zone->pressure is average of the scanning priority
required to free enough pages in this zone. As no scanning priority was
enough to free pages, zone->pressure should be extra high.

Nikita.


      reply	other threads:[~2003-07-09 10:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-09  8:46 Nikita Danilov
2003-07-09 10:12 ` Andrew Morton
2003-07-09 10:20   ` Nikita Danilov
2003-07-09 10:42     ` Andrew Morton
2003-07-09 11:19       ` Nikita Danilov
2003-07-10 14:40       ` Martin Schlemmer
2003-07-17 13:50       ` Nikita Danilov
2003-07-09 10:22 ` Andrew Morton
2003-07-09 10:30   ` Nikita Danilov [this message]

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=16139.61149.764358.333360@laputa.namesys.com \
    --to=nikita@namesys.com \
    --cc=Linux-Kernel@vger.kernel.org \
    --cc=akpm@osdl.org \
    --subject='Re: [PATCH] 1/5 VM changes: zone-pressure.patch' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).