From: Dario Faggioli <dario.faggioli@citrix.com>
To: George Dunlap <george.dunlap@eu.citrix.com>
Cc: Keir Fraser <keir@xen.org>, Jan Beulich <JBeulich@suse.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH] xen: sched_credit: filter node-affinity mask against online cpus
Date: Tue, 17 Sep 2013 17:14:03 +0200 [thread overview]
Message-ID: <1379430843.26124.9.camel@Solace> (raw)
In-Reply-To: <52372351.1000603@eu.citrix.com>
[-- Attachment #1.1: Type: text/plain, Size: 1710 bytes --]
On lun, 2013-09-16 at 16:27 +0100, George Dunlap wrote:
> On 16/09/13 16:23, Dario Faggioli wrote:
> > I tied to concentrate on the actual issue, which is avoid picking an
> > offline cpu, independently on which specific ASSERT is the one that
> > triggers.
>
> Ok, but the question is, why AND it with online cpus here, but not in
> the other place? If the "actual issue" is that the mask may be empty,
> it should be done in both places. If the "actual issue" is that
> cpu_cycle() chokes on empty masks, then that's an important think to
> point out, so poor programmers don't get confused as to why it's
> different. :-)
>
It's a little bit of both. In fact, _csched_cpu_pick() *is* the only
function structure in such a way that the mask can't be empty (if we
leave node-affinity out). The other ones either don't care or account
for it in different ways and places, and that was like that even before
of my NUMA-aware scheduling patches... So, yes, that one call site is,
if not special, at least different from the other ones.
At the same time, you are right in saying that the consequence of the
above which is really bothering and calling for this fix _is_ indeed
that the ASSERT() fails.
So, I'm re-sending the patch with an updated comment which hopefully
clarifies the situation a bit more.
Let me know what you think about it (e-mail coming right after this one)
Thanks and Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
prev parent reply other threads:[~2013-09-17 15:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 16:09 [PATCH] xen: sched_credit: filter node-affinity mask against online cpus Dario Faggioli
2013-09-16 14:00 ` George Dunlap
2013-09-16 15:23 ` Dario Faggioli
2013-09-16 15:27 ` George Dunlap
2013-09-17 15:14 ` Dario Faggioli [this message]
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=1379430843.26124.9.camel@Solace \
--to=dario.faggioli@citrix.com \
--cc=JBeulich@suse.com \
--cc=george.dunlap@eu.citrix.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xen.org \
/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;
as well as URLs for NNTP newsgroup(s).