From: Dario Faggioli <dario.faggioli@citrix.com>
To: "JBeulich@suse.com" <JBeulich@suse.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
George Dunlap <George.Dunlap@citrix.com>,
"uma.sharma523@gmail.com" <uma.sharma523@gmail.com>
Subject: Re: [PATCH v1 2/3] sched_credit2.c : runqueue_per_core code
Date: Thu, 12 Mar 2015 16:35:10 +0000 [thread overview]
Message-ID: <1426178107.7023.64.camel@citrix.com> (raw)
In-Reply-To: <5501CB270200007800069467@mail.emea.novell.com>
[-- Attachment #1.1: Type: text/plain, Size: 1130 bytes --]
On Thu, 2015-03-12 at 16:21 +0000, Jan Beulich wrote:
> >>> On 12.03.15 at 15:57, <uma.sharma523@gmail.com> wrote:
> > @@ -1940,10 +1946,14 @@ static void init_pcpu(const struct scheduler *ops, int cpu)
> >
> > /* Figure out which runqueue to put it in */
> > /* NB: cpu 0 doesn't get a STARTING callback, so we hard-code it to runqueue 0. */
> > - if ( cpu == 0 )
> > - rqi = 0;
> > + if ( opt_credit2_runqueue == CREDIT2_OPT_RUNQUEUE_SOCKET )
> > + {
> > + rqi = (cpu) ? cpu_to_socket(cpu) : boot_cpu_to_socket();
> > + }
> > else
> > - rqi = cpu_to_socket(cpu);
> > + {
> > + rqi = (cpu) ? cpu_to_core(cpu) : boot_cpu_to_core();
> > + }
>
> Rather than extending the bad assumption of CPU 0 being the boot
> CPU (What if it gets offlined and this or another one onlined back
> as CPU 0?), can't you find a way to avoid depending on the numeric
> value of "cpu"?
>
This is on me, i.e., I'm working on this and, when done, I'll include
Uma's patches in my series, adapting this bit (she agreed already to
this plan).
Regards,
Dario
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-03-12 16:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 14:57 [PATCH v1 2/3] sched_credit2.c : runqueue_per_core code Uma Sharma
2015-03-12 16:21 ` Jan Beulich
2015-03-12 16:35 ` Dario Faggioli [this message]
2015-03-12 17:07 ` Dario Faggioli
2015-03-13 9:39 ` Jan Beulich
2015-03-13 14:52 ` 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=1426178107.7023.64.camel@citrix.com \
--to=dario.faggioli@citrix.com \
--cc=George.Dunlap@citrix.com \
--cc=JBeulich@suse.com \
--cc=uma.sharma523@gmail.com \
--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 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.