linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
To: ray-gmail@madrabbit.org
Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>,
	Con Kolivas <kernel@kolivas.org>,
	linux kernel mailing list <linux-kernel@vger.kernel.org>,
	ck list <ck@vds.kolivas.org>
Subject: Re: RSDL v0.30 cpu scheduler for mainline kernels
Date: Thu, 15 Mar 2007 14:12:41 -0700	[thread overview]
Message-ID: <20070315211240.GC12447@linux-os.sc.intel.com> (raw)
In-Reply-To: <2c0942db0703151158l59cbede2x845fc134d9f1cf9d@mail.gmail.com>

On Thu, Mar 15, 2007 at 11:58:39AM -0700, Ray Lee wrote:
> With more CPUs, the context switch period can be multiplied by that
> number of CPUs while still allowing all tasks the same frequency of
> access to the CPU.

Are you assuming the other cpus might be idle?

It depends on the load of the system also, right. If all the cpus are
loaded, then increasing the period will decrease the frequency.
If some of the cpus are idle, then it doesn't matter what context
switch rate we use(as we don't get context switched out by other task).

> With 4 processors, the context switch would be
> 24ms, by which point we're probably reaching the point of diminishing
> returns for minimizing overhead and maximizing throughput.

BTW, the overhead is not just the context switch cost, but also the cache
evictions that the incoming process will bring.

> >We need to minimize these context switches.
> 
> That's a judgement call. If a synthetic benchmark degrades but other

I was showing the degradation with SPECjbb2000 workload. Synthetic workload
was for showing/reproducing the issue quickly.

> things improve, then this, as most everything in computer science, is
> yet another trade-off that needs to be evaluated. (You recognize there
> is a tradeoff here, right?

I am with you. But lets say, if these tasks are not interactive, then
what is the need for paying this penality?

thanks,
suresh

  parent reply	other threads:[~2007-03-15 21:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-11 23:58 RSDL v0.30 cpu scheduler for mainline kernels Con Kolivas
2007-03-12 23:46 ` David Miller
2007-03-13  3:05   ` Con Kolivas
2007-03-13  4:32     ` Willy Tarreau
2007-03-13  5:03       ` [ck] " Felipe Alfaro Solana
2007-03-13  5:29       ` David Miller
2007-03-13 13:10       ` [ck] " michael chang
2007-03-13 15:35 ` [ck] " Ash Milsted
2007-03-13 15:46   ` Con Kolivas
2007-03-13 15:53   ` Lee Revell
2007-03-13 17:45     ` Chris Friesen
2007-03-13 20:02       ` Lee Revell
2007-03-14  9:47       ` Ash Milsted
2007-03-15  2:31 ` Siddha, Suresh B
2007-03-15  6:05   ` Con Kolivas
2007-03-15 17:46     ` Siddha, Suresh B
2007-03-15 18:58       ` Ray Lee
2007-03-15 21:11         ` Con Kolivas
2007-03-15 21:12         ` Siddha, Suresh B [this message]
2007-03-17 14:27 ` Szonyi Calin

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=20070315211240.GC12447@linux-os.sc.intel.com \
    --to=suresh.b.siddha@intel.com \
    --cc=ck@vds.kolivas.org \
    --cc=kernel@kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ray-gmail@madrabbit.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;
as well as URLs for NNTP newsgroup(s).