From: Srivatsa Vaddagiri <vatsa@in.ibm.com>
To: Nish Aravamudan <nish.aravamudan@gmail.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: Wed, 20 Apr 2005 14:41:25 +0530 [thread overview]
Message-ID: <20050420091125.GB20793@in.ibm.com> (raw)
In-Reply-To: <29495f1d0504190907234a0d1d@mail.gmail.com>
On Tue, Apr 19, 2005 at 09:07:49AM -0700, Nish Aravamudan wrote:
> > + if (jiffies - sd1->last_balance >= interval) {
> Sorry for the late reply, but shouldn't this jiffies comparison be
> done with time_after() or time_before()?
I think it is not needed. The check should be able to handle overflow case also.
This probably assumes that you don't sleep longer than (2e32 - 1) jiffies
(which is ~1193 hrs). Current VST implementation let us sleep way less than that
limit (~896 ms) since it uses 32-bit number for sampling TSC. When it is
upgraded to use 64-bit number, we may have to ensure that this limit (1193 hrs)
is not exceeded.
--
Thanks and Regards,
Srivatsa Vaddagiri,
Linux Technology Center,
IBM Software Labs,
Bangalore, INDIA - 560017
next prev parent reply other threads:[~2005-04-20 9:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-07 12:46 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
2005-04-20 9:11 ` Srivatsa Vaddagiri [this message]
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=20050420091125.GB20793@in.ibm.com \
--to=vatsa@in.ibm.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=nish.aravamudan@gmail.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®