mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Ravikiran G Thirumalai <kiran@scalex86.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch] mm: Convert global dirty_exceeded flag to per-node node_dirty_exceeded
Date: Tue, 17 Jan 2006 18:09:56 -0800	[thread overview]
Message-ID: <20060117180956.7f2627a6.akpm@osdl.org> (raw)
In-Reply-To: <20060118012953.GC5289@localhost.localdomain>

Ravikiran G Thirumalai <kiran@scalex86.org> wrote:
>
> On Mon, Jan 16, 2006 at 06:13:23PM -0800, Andrew Morton wrote:
> > Ravikiran G Thirumalai <kiran@scalex86.org> wrote:
> > >
> > > Convert global dirty_exceeded flag to per-node node_dirty_exceeded.
> > > 
> > > dirty_exceeded ping pongs between nodes in order to force all cpus in
> > > the system to increase the frequency of calls to balance_dirty_pages.
> > > 
> > > Currently dirty_exceeded is used by balance_dirty_pages_ratelimited to
> > > force all CPUs in the system call balance_dirty_pages often, in order to
> > > reduce the amount of dirty pages in the entire system (based on
> > > dirty_thresh and one CPU exceeding thee ratelimits).  As dirty_exceeded
> > > is a global variable, it will ping-pong between nodes of a NUMA system
> > > which is not good.
> > 
> > Did you not test this obvious little optimisation?
> 
> We ran the test we encountered this problem on with your patch.
> At first it looked like it did not help.  But later we found that there was
> false sharing on this variable.

OK.  That's a bit nasty, isn't it?  It can work well or poorly for
different people depending upon vagaries of .config and the linker.

We should find out what it was sharing _with_.  Could you please run

	nm -n vmlinux| grep -C5 dirty_exceeded



  reply	other threads:[~2006-01-18  2:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-17  2:03 Ravikiran G Thirumalai
2006-01-17  2:13 ` Andrew Morton
2006-01-18  1:29   ` Ravikiran G Thirumalai
2006-01-18  2:09     ` Andrew Morton [this message]
2006-01-18  3:09       ` Ravikiran G Thirumalai
2006-01-18  3:22         ` Andrew Morton

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=20060117180956.7f2627a6.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=kiran@scalex86.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®