From: Dario Faggioli <dario.faggioli@citrix.com>
To: Anshul Makkar <anshul.makkar@citrix.com>, xen-devel@lists.xenproject.org
Cc: "Justin T. Weaver" <jtweaver@hawaii.edu>,
George Dunlap <george.dunlap@citrix.com>
Subject: Re: [PATCH 1/7] xen: sched: factor affinity helpers out of sched_credit.c
Date: Fri, 23 Jun 2017 15:33:00 +0200 [thread overview]
Message-ID: <1498224780.12549.1.camel@citrix.com> (raw)
In-Reply-To: <0fe6e31a-21ed-8423-7456-3e77f3d12401@citrix.com>
[-- Attachment #1.1: Type: text/plain, Size: 1748 bytes --]
On Fri, 2017-06-23 at 11:02 +0100, Anshul Makkar wrote:
> On 16/06/2017 15:13, Dario Faggioli wrote:
> > diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c
> > index efdf6bf..53773df 100644
> > --- a/xen/common/sched_credit.c
> > +++ b/xen/common/sched_credit.c
> > @@ -136,27 +136,6 @@
>
> *
> > + * Hard affinity balancing is always necessary and must never be
> > skipped.
> > + * But soft affinity need only be considered when it has a
> > functionally
> > + * different effect than other constraints (such as hard affinity,
> > cpus
> > + * online, or cpupools).
> > + *
> > + * Soft affinity only needs to be considered if:
> > + * * The cpus in the cpupool are not a subset of soft affinity
>
> do you mean cpus in a cpupool are not in a subset of the soft
> affinity
> of a vcpu which is a runnable state ?
>
Err... not sure. It's probably the same. IAC, what this means is that,
if a vcpu is in cpupool C, and the cpus of cpupool C are 1,2,3 _and_
the soft affinity of the vcpu is 0,1,2,3,4,5 then, it does not make
sense to check soft-affinity.
In fact, the vcpu will only execute on either 1,2 or 3, which are all
part of its soft-affinity anyway.
And it should be exactly that the cpupool is *a* *subset* of the soft-
affinity. In fact, if cpupool is 1,2,3 and soft-affinity is 0,1,3,4,5
then it _does_ make sense to check soft affinity,, to try not to run
the vcpu on 2.
Hope this clarify things.
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: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-06-23 13:33 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-16 14:13 [PATCH 0/7] Soft affinity for Credit2 Dario Faggioli
2017-06-16 14:13 ` [PATCH 1/7] xen: sched: factor affinity helpers out of sched_credit.c Dario Faggioli
2017-06-23 10:02 ` Anshul Makkar
2017-06-23 13:33 ` Dario Faggioli [this message]
2017-06-16 14:13 ` [PATCH 2/7] xen/tools: credit2: soft-affinity awareness in runq_tickle() Dario Faggioli
2017-06-23 10:35 ` Anshul Makkar
2017-07-25 11:47 ` George Dunlap
2017-06-16 14:13 ` [PATCH 3/7] xen: credit2: soft-affinity awareness in fallback_cpu() Dario Faggioli
2017-07-25 10:19 ` George Dunlap
2017-07-25 10:20 ` George Dunlap
2017-07-25 16:00 ` Dario Faggioli
2017-07-25 16:17 ` George Dunlap
2017-07-25 16:47 ` Dario Faggioli
2017-07-25 16:52 ` George Dunlap
2017-07-25 17:30 ` Dario Faggioli
2017-06-16 14:14 ` [PATCH 4/7] xen: credit2: soft-affinity awareness in csched2_cpu_pick() Dario Faggioli
2017-07-25 10:54 ` George Dunlap
2017-07-25 11:04 ` George Dunlap
2017-07-25 11:05 ` George Dunlap
2017-06-16 14:14 ` [PATCH 5/7] xen: credit2: kick away vcpus not running within their soft-affinity Dario Faggioli
2017-07-25 11:06 ` George Dunlap
2017-06-16 14:14 ` [PATCH 6/7] xen: credit2: optimize runq_candidate() a little bit Dario Faggioli
2017-07-25 11:25 ` George Dunlap
2017-06-16 14:14 ` [PATCH 7/7] xen: credit2: try to avoid tickling cpus subject to ratelimiting Dario Faggioli
2017-07-25 11:31 ` George Dunlap
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=1498224780.12549.1.camel@citrix.com \
--to=dario.faggioli@citrix.com \
--cc=anshul.makkar@citrix.com \
--cc=george.dunlap@citrix.com \
--cc=jtweaver@hawaii.edu \
--cc=xen-devel@lists.xenproject.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).