From: "Yang, Xiaowei" <xiaowei.yang@intel.com>
To: "Tian, Kevin" <kevin.tian@intel.com>
Cc: 'George Dunlap' <George.Dunlap@eu.citrix.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] Add migration_cost option to scheduler
Date: Tue, 10 Mar 2009 11:36:38 +0800 [thread overview]
Message-ID: <49B5E046.7090406@intel.com> (raw)
In-Reply-To: <0A882F4D99BBF6449D58E61AAFD7EDD606C4ECE3@pdsmsx502.ccr.corp.intel.com>
Tian, Kevin wrote:
>> From: George Dunlap
>> Sent: Monday, March 09, 2009 8:56 PM
>>
>> Hmm, I think this patch may not be exactly what we want. It looks
>> like it checks for how long a vcpu has been in its current stat, not
>> how recently it has been running. So if a vcpu sleeps for a long time
>> on a cpu that's running other workloads, then wakes up
>> (blocked->runnable), the cache is by no means "hot". But since it has
>> only been in the "runnable" state for a few hundred cycles, it won't
>> be migrated, even though there's little cost.
>
> Then to add a per-vcpu last_running_timestamp which is recorded when
> vcpu is scheduled out, could hit the purpose here?
Yes, it's more reasonable. I can make a patch.
Thanks,
xiaowei
>
>> However, if the pcpu was idle since the last time this vcpu ran (i.e.,
>> if we're just catching the vcpu in the process of waking up), the
>> cache *is* still hot. Hmm....
>>
>
> If peer pcpu is idle, shouldn't it be skipped by load balancer running on
> another pcpu, which is out of the cache-hot logic?
>
> Thanks,
> Kevin
next prev parent reply other threads:[~2009-03-10 3:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-09 8:18 [PATCH] Add migration_cost option to scheduler Yang, Xiaowei
2009-03-09 12:55 ` George Dunlap
2009-03-09 13:08 ` Tian, Kevin
2009-03-10 3:36 ` Yang, Xiaowei [this message]
2009-03-10 10:56 ` Yang, Xiaowei
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=49B5E046.7090406@intel.com \
--to=xiaowei.yang@intel.com \
--cc=George.Dunlap@eu.citrix.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.