From: Juergen Gross <juergen.gross@ts.fujitsu.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] xl cpupool-numa-split: reduce number of Dom0 vcpus
Date: Wed, 16 Feb 2011 09:40:55 +0100 [thread overview]
Message-ID: <4D5B8D97.4020505@ts.fujitsu.com> (raw)
In-Reply-To: <19802.54190.181244.976489@mariner.uk.xensource.com>
On 02/15/11 20:27, Ian Jackson wrote:
> Juergen Gross writes ("Re: [Xen-devel] [PATCH] xl cpupool-numa-split: reduce number of Dom0 vcpus"):
>> I added a failure exit if not all required vcpus are offlined.
>
> Thanks. But, is this test correct ?
>
>> + if (info.vcpu_online == n) {
>> + break;
>> + }
>
> Is it possible for the online map to have n cpus in it, but for them
> to be the wrong n cpus ?
The number of online vcpus is important, not which vcpus.
In a strange case it could lead to a wrong number of online vcpus, if the
number was correct in the beginning and e.g. vcpu 0 was offline and
offlining the last vcpu fails. But I don't think this would be a huge
problem, as offlining the vcpus is just a optimization measure.
>
> What if two copies of this code run concurrently ? (Perhaps in 4.2 we
> will need to add a lock?)
The result of both copies should be the same, as it is depending on the
machine configuration only.
And we are speaking of a global machine configuration action. This would mean
two administrators are configuring the same machine without knowing what the
other is doing. Seems to be a very strange scenario. A possible failure
(meaning: not reaching the desired configuration, but no crashing) should be
regarded as acceptable in this case.
Juergen
--
Juergen Gross Principal Developer Operating Systems
TSP ES&S SWE OS6 Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions e-mail: juergen.gross@ts.fujitsu.com
Domagkstr. 28 Internet: ts.fujitsu.com
D-80807 Muenchen Company details: ts.fujitsu.com/imprint.html
next prev parent reply other threads:[~2011-02-16 8:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-14 10:47 [PATCH] xl cpupool-numa-split: reduce number of Dom0 vcpus Juergen Gross
2011-02-14 12:36 ` George Dunlap
2011-02-14 13:13 ` Juergen Gross
2011-02-14 15:45 ` Ian Jackson
2011-02-15 6:02 ` Juergen Gross
2011-02-15 19:27 ` Ian Jackson
2011-02-16 8:40 ` Juergen Gross [this message]
2011-02-17 19:39 ` Ian Jackson
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=4D5B8D97.4020505@ts.fujitsu.com \
--to=juergen.gross@ts.fujitsu.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.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.