All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: "Yu, Ke" <ke.yu@intel.com>
Cc: "Liu, Jinsong" <jinsong.liu@intel.com>,
	"Tian, Kevin" <kevin.tian@intel.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	"Wei, Gang" <gang.wei@intel.com>
Subject: Re: [PATCH 0/2] range timer support
Date: Thu, 30 Oct 2008 08:28:37 +0000	[thread overview]
Message-ID: <C52F20B5.1EABA%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <49582C73AC36CC4C8C6C42390304E81C092FCF4709@pdsmsx502.ccr.corp.intel.com>

On 30/10/08 08:08, "Yu, Ke" <ke.yu@intel.com> wrote:

>> Increasing SLOP to 1ms should have the the similar 5% gain, as your
>> analysis, it is the worst case of range timer application in vpt. I
>> can redo the measurement to double confirm.
> 
> I have finished the measurement, when TIME_SLOP increase to 1ms, there is
> similar power consumption gain, this time it is 4% (14.0W vs 14.6W) . By
> theory 1ms TIMER_SLOP should have more gain than the range timer. The
> diferrence may be due to the test environment noise.

It may also be because your patch tends to delay the timer deadline
somewhat, and so by the time it goes off you actually sometimes have one or
two more timers you can deliver in the batch? OTOH it could be experimental
noise as you suggest, and certainly this change gets us pretty close to your
win. We'd have to do further experiments to see if increasing TIMER_SLOP
noticeably degrades system performance, but we'd need to do that with the
range-timer approach too.

One thing: as Dan pointed out, some things don't want to get their timeout
early, but generally callers are much more tolerant of getting timeouts a
bit late. Possibly we should set the timer_deadline to nearest timeout +
TIMER_SLOP, and then when executing timers be strict about not executing
timers early (or at least no more than the existing 50us 'mini' slop)?

Or perhaps actually having range timers in timer.c is worthwhile for future
extensions and for now we can just set every timer to [deadline,
deadline+configurable_global_slop]. Then the existing range-timer mechanism
ought to find a sensible deadline to aim for, only delaying timer events
when there is a benefit to doing so.

I'm thinking out loud. :-)

 -- Keir

  reply	other threads:[~2008-10-30  8:28 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-28  6:57 [PATCH 0/2] range timer support Yu, Ke
2008-10-28 10:54 ` Keir Fraser
2008-10-28 14:40   ` Yu Ke
2008-10-28 14:50     ` Keir Fraser
2008-10-28 11:00 ` Keir Fraser
2008-10-28 14:43   ` Yu Ke
2008-10-28 14:52     ` Keir Fraser
2008-10-28 11:38 ` Keir Fraser
2008-10-28 15:15   ` Yu Ke
2008-10-28 15:37     ` Keir Fraser
2008-10-29  2:29       ` Tian, Kevin
2008-10-29  8:28         ` Keir Fraser
2008-10-29 10:45           ` Yu Ke
2008-10-29 15:53             ` Dan Magenheimer
2008-10-30  8:31               ` Yu, Ke
2008-10-30  8:35                 ` Keir Fraser
2008-10-30  8:08             ` Yu, Ke
2008-10-30  8:28               ` Keir Fraser [this message]
2008-10-30 12:47                 ` Yu Ke
2008-10-31  2:23                   ` Yu, Ke
2008-10-31  7:12                     ` Keir Fraser
2008-10-31  7:50                       ` Yu, Ke
2008-10-31  7:59                         ` Keir Fraser
2008-10-31  8:37                           ` Yu, Ke
2008-10-31 14:03                             ` Keir Fraser

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=C52F20B5.1EABA%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=gang.wei@intel.com \
    --cc=jinsong.liu@intel.com \
    --cc=ke.yu@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.