mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: "Alex Nixon (Intern)" <Alex.Nixon@eu.citrix.com>
Cc: "Andi Kleen" <andi@firstfloor.org>,
	"Jeremy Fitzhardinge" <jeremy@goop.org>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Ingo Molnar" <mingo@elte.hu>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	"Ian Campbell" <Ian.Campbell@eu.citrix.com>,
	"Theodore Ts'o" <tytso@mit.edu>
Subject: Re: Large increase in context switch rate
Date: Thu, 24 Jul 2008 11:26:48 +1000	[thread overview]
Message-ID: <200807241126.48364.nickpiggin@yahoo.com.au> (raw)
In-Reply-To: <0E902970173AF84089673FA54B7FE78A329073@lonpexch01.citrite.net>

On Wednesday 23 July 2008 19:34, Alex Nixon (Intern) wrote:
> > -----Original Message-----
> > From: Andi Kleen [mailto:andi@firstfloor.org]
> > Sent: 17 July 2008 22:43
> > To: Jeremy Fitzhardinge
> > Cc: Alex Nixon (Intern); Peter Zijlstra; Ingo Molnar; Linux
> > Kernel Mailing List; Ian Campbell
> > Subject: Re: Large increase in context switch rate
> >
> > Jeremy Fitzhardinge <jeremy@goop.org> writes:
> > > OK, but that still doesn't account for the relatively large increase
> > > from 2.6.18 -> 2.6.26.  You're using HZ=100 in both cases,
> >
> > I presume.
> >
> > > The other variable is NOHZ and highres timers.  You could
> >
> > try turning
> >
> > > those off in 2.6.26.  Also, CONFIG_PREEMPT could well make a
> > > difference.  2.6.18-xen doesn't support CONFIG_PREEMPT at all, but
> > > pvops(-xen) does.
> >
> > If it's that easily reproducible you could just bisect it?
> >
> > -Andi
>
> I've bisected down to commit ba52de123d454b57369f291348266d86f4b35070 -
> [PATCH] inode-diet.  Before that kernbench consistently reports about
> 35k context switches (total), and after that commit about 53k.  The
> benchmarks are being run on a tmpfs.  I've verified the results on a
> different machine, albeit with an almost identical setup (the same
> kernels and debian distro, kernbench version, and benchmarking a build
> of the same source).
>
> Seems to be a mystery why that patch is (seemingly) the culprit...anyone
> have any ideas?  Maybe there's some other variable I'm not keeping
> constant?

Weird. It could possibly be triggering some different userspace behaviour
if blocksize reporting has changed anywhere. strace might help there.

Interesting if you could post the top results of profile=schedule for
a kernel with and without the patch.


  parent reply	other threads:[~2008-07-24  1:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-16 18:54 Jeremy Fitzhardinge
2008-07-17  9:17 ` Peter Zijlstra
2008-07-17 15:02   ` Jeremy Fitzhardinge
2008-07-17 15:14     ` Alex Nixon (Intern)
2008-07-17 15:21       ` Peter Zijlstra
2008-07-17 15:45       ` Jeremy Fitzhardinge
2008-07-17 16:04         ` Alex Nixon (Intern)
2008-07-17 16:11           ` Jeremy Fitzhardinge
2008-07-17 21:43             ` Andi Kleen
2008-07-18 17:00               ` Alex Nixon (Intern)
2008-07-23  9:34               ` Alex Nixon (Intern)
2008-07-23 13:54                 ` Andi Kleen
2008-07-24  1:26                 ` Nick Piggin [this message]
2008-07-25 11:31                   ` Alex Nixon
2008-07-25 11:39                     ` Peter Zijlstra
2008-07-25 14:54                     ` Jeremy Fitzhardinge

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=200807241126.48364.nickpiggin@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=Alex.Nixon@eu.citrix.com \
    --cc=Ian.Campbell@eu.citrix.com \
    --cc=andi@firstfloor.org \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.org \
    --cc=tytso@mit.edu \
    /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®