From: Darren Hart <darren@dvhart.com>
To: Nick Piggin <piggin@cyberone.com.au>
Cc: Matt Dobson <colpatch@us.ibm.com>,
lkml <linux-kernel@vger.kernel.org>,
Martin J Bligh <mbligh@aracnet.com>,
Rick Lindsley <ricklind@us.ibm.com>,
Andrew Morton <akpm@osdl.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: [patch] scheduler: rebalance_tick interval update
Date: Mon, 15 Nov 2004 19:50:04 -0800 [thread overview]
Message-ID: <1100577004.14742.25.camel@farah.beaverton.ibm.com> (raw)
In-Reply-To: <41996584.5080306@cyberone.com.au>
On Tue, 2004-11-16 at 13:27 +1100, Nick Piggin wrote:
>
> Nick Piggin wrote:
>
> >
> > Another example, in some ticks, a CPU won't see the updated 'jiffies',
> > other
> > times it will (at least on Altix systems, this can happen).
> >
> >
>
> Note that if you didn't want to have this rash of balancing attempted after
> a CPU wasn't able to run the rebalance for a long time, the solution would
> be to keep adding the balance interval until it becomes greater than the
> current jiffies.
As I mentioned in my last post, I don't think the "synchronized
rebalancing" is a real concern since the interval isn't likely to be the
same and the CPU_OFFSET macro is already in place to prevent this "rash
of balancing" (nice term :-).
> I actually prefer it to try to make up the lost balances, just from the
> perspective of gathering scheduler statistics.
IMO, scheduler statistics are not worth running load_balance() for no
reason. (And running it two or three times in a row is clearly not
accomplishing anything)
> I don't suspect it happens
> enough to justify adding the extra logic - Darren, are you actually seeing
> problems?
Not seeing in obvious problems, but the existing logic seems incorrect
to me (and the term last_balanced is currently misleading). Running
load_balance() multiple times in order to catch up seems wasteful to me
as well. The current code says something like: run load_balance() 10
times in a second. If the second is almost up and you have only run it
6 times, it will run it 4 times in a row, that just seems wrong to me.
--
Darren Hart <darren@dvhart.com>
next prev parent reply other threads:[~2004-11-16 3:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-15 22:38 Darren Hart
2004-11-16 1:17 ` Nick Piggin
2004-11-16 1:53 ` Matthew Dobson
2004-11-16 2:17 ` Nick Piggin
2004-11-16 2:27 ` Nick Piggin
2004-11-16 3:50 ` Darren Hart [this message]
2004-11-16 3:51 ` Darren Hart
2004-11-16 7:00 ` Rick Lindsley
[not found] ` <1100576400.14742.12.camel@farah.beaverton.ibm.com>
[not found] ` <4199957C.1020804@cyberone.com.au>
2004-11-16 15:56 ` Darren Hart
2004-11-18 16:22 ` Darren Hart
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=1100577004.14742.25.camel@farah.beaverton.ibm.com \
--to=darren@dvhart.com \
--cc=akpm@osdl.org \
--cc=colpatch@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbligh@aracnet.com \
--cc=mingo@elte.hu \
--cc=piggin@cyberone.com.au \
--cc=ricklind@us.ibm.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
all inboxes | Powered by JetHome®