From: Nish Aravamudan <nish.aravamudan@gmail.com>
To: vatsa@in.ibm.com
Cc: george@mvista.com, nickpiggin@yahoo.com.au, mingo@elte.hu,
high-res-timers-discourse@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: VST and Sched Load Balance
Date: Tue, 19 Apr 2005 09:07:49 -0700 [thread overview]
Message-ID: <29495f1d0504190907234a0d1d@mail.gmail.com> (raw)
In-Reply-To: <20050407124629.GA17268@in.ibm.com>
On 4/7/05, Srivatsa Vaddagiri <vatsa@in.ibm.com> wrote:
> Hi,
> VST patch (http://lwn.net/Articles/118693/) attempts to avoid useless
> regular (local) timer ticks when a CPU is idle.
<snip>
> linux-2.6.11-vatsa/kernel/sched.c | 52 ++++++++++++++++++++++++++++++++++++++
> 1 files changed, 52 insertions(+)
>
> diff -puN kernel/sched.c~vst-sched_load_balance kernel/sched.c
> --- linux-2.6.11/kernel/sched.c~vst-sched_load_balance 2005-04-07 17:51:34.000000000 +0530
> +++ linux-2.6.11-vatsa/kernel/sched.c 2005-04-07 17:56:18.000000000 +0530
<snip>
> @@ -1796,6 +1817,25 @@ find_busiest_group(struct sched_domain *
>
> nr_cpus++;
> avg_load += load;
> +
> +#ifdef CONFIG_VST
> + if (idle != NOT_IDLE || !grp_sleeping ||
> + (grp_sleeping && woken))
> + continue;
> +
> + sd1 = sd + (i-cpu);
> + interval = sd1->balance_interval;
> +
> + /* scale ms to jiffies */
> + interval = msecs_to_jiffies(interval);
> + if (unlikely(!interval))
> + interval = 1;
> +
> + if (jiffies - sd1->last_balance >= interval) {
> + woken = 1;
> + cpu_set(i, wakemask);
> + }
Sorry for the late reply, but shouldn't this jiffies comparison be
done with time_after() or time_before()?
Thanks,
Nish
next prev parent reply other threads:[~2005-04-19 16:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-07 12:46 VST and Sched Load Balance Srivatsa Vaddagiri
2005-04-07 13:07 ` Nick Piggin
2005-04-07 14:00 ` Srivatsa Vaddagiri
2005-04-07 14:06 ` Nick Piggin
2005-05-05 14:39 ` Srivatsa Vaddagiri
2005-05-05 14:52 ` Nick Piggin
2005-05-05 16:15 ` Srivatsa Vaddagiri
2005-04-07 15:10 ` Ingo Molnar
2005-04-08 5:34 ` Srivatsa Vaddagiri
2005-04-08 6:33 ` Nick Piggin
2005-04-19 16:07 ` Nish Aravamudan [this message]
2005-04-20 9:11 ` Srivatsa Vaddagiri
-- strict thread matches above, loose matches on Subject: below --
2005-04-07 16:25 Srivatsa Vaddagiri
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=29495f1d0504190907234a0d1d@mail.gmail.com \
--to=nish.aravamudan@gmail.com \
--cc=george@mvista.com \
--cc=high-res-timers-discourse@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nickpiggin@yahoo.com.au \
--cc=vatsa@in.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