linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kanoj@google.engr.sgi.com (Kanoj Sarcar)
To: Linus Torvalds <torvalds@transmeta.com>
Cc: riel@nl.linux.org, Russell King <rmk@arm.linux.org.uk>,
	linux-mm@kvack.org, linux-kernel@vger.rutgers.edu
Subject: Re: [PATCH] Re: kswapd
Date: Mon, 27 Mar 2000 00:00:21 -0800 (PST)	[thread overview]
Message-ID: <200003270800.AAA65612@google.engr.sgi.com> (raw)
In-Reply-To: <Pine.LNX.4.10.10003262200520.1538-100000@penguin.transmeta.com> from "Linus Torvalds" at Mar 26, 2000 10:07:48 PM

> 
> On the other hand you're definitely right that this is not a new bug
> introduced by you, Kanoj - this seems to be just a thinko that has been

Whew, as long as I can keep that beer I was going to send to Russell on
Rik's suggestion for myself! :-)

On a more serious note, I know too little about the application load 
that Rik/Russell is talking about to understand what's going on, but
I have the vague suspicion that Rik's patch is just a part fix to the 
problem, and that maybe we might be doing too many kswapd wakes ups
via the balancing code. 

This is my reasoning: Rik's patch makes it so that before kswapd 
undertakes heavy weight work, it yields the cpu ... then it checks
whether it has to do the work (via zone_wake_kswapd). This is the
only difference over pre3. If this is improving things a lot, that
makes me believe that the memory-low condition is subsiding (pages
are being freed up) just after kswapd has yielded, and before it
gets scheduled onto the cpu again. This depends on the app and its
priority too, I guess. If there is an app load where the pages are
not freed, Rik's patch would _probably_ not be able to help. Its 
better than nothing, but if you wanted to do the best you could, you
need to add more yield points into the body of kswapd code (which 
I suspect will not be free of side effects possibly). 

The other part about possibly doing too many kswapd wakeups is 
just a hunch, not directly related to this patch. I will forward
a balancing patch on the mailing lists next for people to try.

Kanoj
--
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.eu.org/Linux-MM/

  reply	other threads:[~2000-03-27  8:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200003261008.LAA16031@raistlin.arm.linux.org.uk>
2000-03-27  0:59 ` Rik van Riel
2000-03-27  1:21   ` Kanoj Sarcar
2000-03-27  2:28     ` Rik van Riel
2000-03-27  2:39       ` Kanoj Sarcar
2000-03-27  6:42         ` Russell King
2000-03-27  6:02     ` Eric W. Biederman
2000-03-27  6:07     ` Linus Torvalds
2000-03-27  8:00       ` Kanoj Sarcar [this message]
2000-03-27 14:47         ` Rik van Riel
2000-03-27 16:14         ` Linus Torvalds
2000-03-27 16:54           ` Mark Hahn
2000-03-27 17:36             ` Linus Torvalds
2000-03-27 17:54             ` Rik van Riel
2000-03-27 18:55           ` Kanoj Sarcar
2000-03-27 18:34         ` Russell King

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=200003270800.AAA65612@google.engr.sgi.com \
    --to=kanoj@google.engr.sgi.com \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.org \
    --cc=riel@nl.linux.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=torvalds@transmeta.com \
    /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