All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: Kanoj Sarcar <kanoj@google.engr.sgi.com>
Cc: riel@nl.linux.org, linux-mm@kvack.org, linux-kernel@vger.rutgers.edu
Subject: Re: [PATCH] Re: kswapd
Date: Mon, 27 Mar 2000 07:42:32 +0100 (BST)	[thread overview]
Message-ID: <200003270642.HAA07740@flint.arm.linux.org.uk> (raw)
In-Reply-To: <200003270239.SAA97539@google.engr.sgi.com> from "Kanoj Sarcar" at Mar 26, 2000 06:39:14 PM

Kanoj Sarcar writes:
> > Without my patch kswapd uses between 50 and 70% CPU time
> > in a particular workload. Now it uses between 3 and 5%.
> 
> Can you explain how this is happening? I can see that in your patch,
> kswapd does not go thru the loop if need_resched is set, but with
> a single node, 3 zones, I would find it hard to explain such a 
> difference.

kswapd was running until it had a quantum, whether or not it had to
free any more pages.

> > Oh, and the latency problem probably has been fixed too...
> 
> What latency problem? I still believe that the pre3 code is doing
> the right thing, assuming 2.3.43 was doing the right thing.

Check out the linux-kernel archives, specifically for my mails about
NFS/sound problems - it is not good for processes (eg, rpciod) to be
starved of CPU time up to 200-400ms.  It was basically impossible to
play mp3s without the playback basically "stopping" for that period.

(without the patch in, I see kswapd using 200ms-400ms.  With the patch
in, it only uses >10ms very very rarely).
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |         Russell King        rmk@arm.linux.org.uk      --- ---
  | | | |   http://www.arm.linux.org.uk/~rmk/aboutme.html    /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |
--
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  6:42 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 ` [PATCH] Re: kswapd 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 [this message]
2000-03-27  6:02     ` Eric W. Biederman
2000-03-27  6:07     ` Linus Torvalds
2000-03-27  8:00       ` Kanoj Sarcar
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=200003270642.HAA07740@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=kanoj@google.engr.sgi.com \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.org \
    --cc=riel@nl.linux.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.