All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Pfeuffer <thomas.pfeuffer@mytum.de>
To: "Yu, Ke" <ke.yu@intel.com>, xen-devel@lists.xensource.com
Subject: Re: [PATCH] only set scheduler timer for non-idle CPU
Date: Thu, 02 Apr 2009 14:48:28 +0200	[thread overview]
Message-ID: <49D4B41C.9030901@mytum.de> (raw)
In-Reply-To: <4D05DB80B95B23498C72C700BD6C2E0B12AB4586@pdsmsx502.ccr.corp.intel.com>


[-- Attachment #1.1: Type: text/plain, Size: 1157 bytes --]

Hello Ke,

>It is not necessary to set scheduler timer for idle CPU. so this patch add conditional check for idle CPU.
>  
>
I think your patch is not good in case sedf-scheduler is used. If idle 
VCPU is the current "running" VCPU, the scheduler timer is set to the 
next "period begin" of the first VCPU in the wait queue.
Your patch prevents sedf from taking the VCPUs waiting for their next 
period into the runnable queue again.

Best regards,

Thomas

>Signed-off-by:  Yu Ke <ke.yu@intel.com>
>                Tian Kevin <kevin.tian@intel.com>
>
>diff -r e4bfa70d587c xen/common/schedule.c
>--- a/xen/common/schedule.c
>+++ b/xen/common/schedule.c
>@@ -819,7 +819,10 @@ static void schedule(void)
> 
>     sd->curr = next;
>     
>-    set_timer(&sd->s_timer, now + r_time);
>+    if ( !is_idle_vcpu(next) )
>+    {
>+        set_timer(&sd->s_timer, now + r_time);
>+    }
> 
>     if ( unlikely(prev == next) )
>     {
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@lists.xensource.com
>http://lists.xensource.com/xen-devel
>  
>


[-- Attachment #1.2: Type: text/html, Size: 1983 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  parent reply	other threads:[~2009-04-02 12:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-31  3:14 [PATCH] only set scheduler timer for non-idle CPU Yu, Ke
2009-04-01 14:02 ` Tian, Kevin
2009-04-02 12:48 ` Thomas Pfeuffer [this message]
2009-04-02 13:06   ` Keir Fraser
2009-04-02 13:18     ` Keir Fraser
2009-04-03  1:32       ` Yu, Ke

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=49D4B41C.9030901@mytum.de \
    --to=thomas.pfeuffer@mytum.de \
    --cc=ke.yu@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.