* [Patch 0/6] Cpupools
@ 2010-04-20 9:37 Juergen Gross
2010-04-20 18:48 ` Ian Jackson
2010-04-20 18:49 ` Konrad Rzeszutek Wilk
0 siblings, 2 replies; 9+ messages in thread
From: Juergen Gross @ 2010-04-20 9:37 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
Hi,
Following patch-series support cpupools in xen:
The physical cpus of a server are grouped in cpu-pools. Each physical CPU is
assigned at most to one cpu-pool. Domains are each restricted to a single
cpu-pool. Scheduling does not cross cpu-pool boundaries, so each cpu-pool
has an own scheduler.
The cpu-pool of the domain Dom0 will be Pool-0, at boot-time we have to create
this cpu-pool implicitly.
The creation of a cpu-pool is similar to the creation of a domain. In a first
step the attributes of a cpu-pool have to be defined, in the second step the
cpu-pool will be activated (started) by assigning the resources (CPUs) and
initializing the scheduler. An activated cpu-pool owns at least one physical
CPU.
A physical CPU may be removed from an activated cpu-pool. Further CPUs may be
assigned to the cpu-pool. The CPU may be assigned to a cpu-pool only if that
CPU is free (not assigned to any other activated cpu-pool). The free CPUs are
internally managed.
The poolname will be added as an additional parameter to the configfile of a
domain. If no poolname is specified the poolname is defaults to Pool-0. At
domain start the domain is added to its cpu-pool, which must be activated.
A started domain can be moved to another activated cpu-pool.
A cpu-pool may be deactivated if there is no active domain assigned to it. A
cpu-pool is deactivated by removing the resources (CPUs).
A cpu-pool may be deleted if it is deactivated.
The administration of the cpu-pools is done by xm subcommands.
Patch 1/6: hypervisor support of cpupools
Patch 2/6: support in libxc
Patch 3/6: changes in libxen
Patch 4/6: python stuff (xm, xend)
Patch 5/6: xm-test add-ons for cpupools
Patch 6/6: documentation changes
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Patch 0/6] Cpupools
2010-04-20 9:37 [Patch 0/6] Cpupools Juergen Gross
@ 2010-04-20 18:48 ` Ian Jackson
2010-04-21 4:44 ` Juergen Gross
2010-04-20 18:49 ` Konrad Rzeszutek Wilk
1 sibling, 1 reply; 9+ messages in thread
From: Ian Jackson @ 2010-04-20 18:48 UTC (permalink / raw)
To: Juergen Gross; +Cc: xen-devel@lists.xensource.com
Juergen Gross writes ("[Xen-devel] [Patch 0/6] Cpupools"):
> Patch 4/6: python stuff (xm, xend)
Would you care to support this in libxl, please ? xl is going to be
the toolstack for the future we hope ...
Thanks,
Ian.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Patch 0/6] Cpupools
2010-04-20 9:37 [Patch 0/6] Cpupools Juergen Gross
2010-04-20 18:48 ` Ian Jackson
@ 2010-04-20 18:49 ` Konrad Rzeszutek Wilk
2010-04-21 4:56 ` Juergen Gross
1 sibling, 1 reply; 9+ messages in thread
From: Konrad Rzeszutek Wilk @ 2010-04-20 18:49 UTC (permalink / raw)
To: Juergen Gross; +Cc: xen-devel@lists.xensource.com
On Tue, Apr 20, 2010 at 11:37:58AM +0200, Juergen Gross wrote:
> Hi,
>
> Following patch-series support cpupools in xen:
What is the advantage and disadvantage of this? What kind of problem is
this trying to solve?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Patch 0/6] Cpupools
2010-04-20 18:48 ` Ian Jackson
@ 2010-04-21 4:44 ` Juergen Gross
0 siblings, 0 replies; 9+ messages in thread
From: Juergen Gross @ 2010-04-21 4:44 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel@lists.xensource.com
Ian Jackson wrote:
> Juergen Gross writes ("[Xen-devel] [Patch 0/6] Cpupools"):
>> Patch 4/6: python stuff (xm, xend)
>
> Would you care to support this in libxl, please ? xl is going to be
> the toolstack for the future we hope ...
Okay, next round will include libxl support.
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Patch 0/6] Cpupools
2010-04-20 18:49 ` Konrad Rzeszutek Wilk
@ 2010-04-21 4:56 ` Juergen Gross
0 siblings, 0 replies; 9+ messages in thread
From: Juergen Gross @ 2010-04-21 4:56 UTC (permalink / raw)
To: Konrad Rzeszutek Wilk; +Cc: xen-devel@lists.xensource.com
Konrad Rzeszutek Wilk wrote:
> On Tue, Apr 20, 2010 at 11:37:58AM +0200, Juergen Gross wrote:
>> Hi,
>>
>> Following patch-series support cpupools in xen:
>
> What is the advantage and disadvantage of this? What kind of problem is
> this trying to solve?
Please see the original discussion on xen-devel:
http://lists.xensource.com/archives/html/xen-devel/2008-12/msg00333.html
This should answer most of your questions.
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Patch 0/6] Cpupools
@ 2010-04-21 11:15 Juergen Gross
2010-04-21 11:22 ` Ian Pratt
2010-04-21 11:53 ` Keir Fraser
0 siblings, 2 replies; 9+ messages in thread
From: Juergen Gross @ 2010-04-21 11:15 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
Round 2 for cpupools patches.
Changes from 1st version:
- create all domains in Pool-0, move to specific pool afterwards
- don't use cpupool_lock for cpu add/remove. Races with hot swapping cpus are
avoided by locking cpus to Pool-0 if necessary
libxl patches will be sent soon, I'm still working on them.
The physical cpus of a server are grouped in cpu-pools. Each physical CPU is
assigned at most to one cpu-pool. Domains are each restricted to a single
cpu-pool. Scheduling does not cross cpu-pool boundaries, so each cpu-pool
has an own scheduler.
The cpu-pool of the domain Dom0 will be Pool-0, at boot-time we have to create
this cpu-pool implicitly.
The creation of a cpu-pool is similar to the creation of a domain. In a first
step the attributes of a cpu-pool have to be defined, in the second step the
cpu-pool will be activated (started) by assigning the resources (CPUs) and
initializing the scheduler. An activated cpu-pool owns at least one physical
CPU.
A physical CPU may be removed from an activated cpu-pool. Further CPUs may be
assigned to the cpu-pool. The CPU may be assigned to a cpu-pool only if that
CPU is free (not assigned to any other activated cpu-pool). The free CPUs are
internally managed.
The poolname will be added as an additional parameter to the configfile of a
domain. If no poolname is specified the poolname is defaults to Pool-0. At
domain start the domain is added to its cpu-pool, which must be activated.
A started domain can be moved to another activated cpu-pool.
A cpu-pool may be deactivated if there is no active domain assigned to it. A
cpu-pool is deactivated by removing the resources (CPUs).
A cpu-pool may be deleted if it is deactivated.
The administration of the cpu-pools is done by xm subcommands.
Patch 1/6: hypervisor support of cpupools
Patch 2/6: support in libxc
Patch 3/6: changes in libxen
Patch 4/6: python stuff (xm, xend)
Patch 5/6: xm-test add-ons for cpupools
Patch 6/6: documentation changes
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [Patch 0/6] Cpupools
2010-04-21 11:15 Juergen Gross
@ 2010-04-21 11:22 ` Ian Pratt
2010-04-21 11:35 ` Juergen Gross
2010-04-21 11:53 ` Keir Fraser
1 sibling, 1 reply; 9+ messages in thread
From: Ian Pratt @ 2010-04-21 11:22 UTC (permalink / raw)
To: Juergen Gross, xen-devel@lists.xensource.com; +Cc: Ian Pratt
> Round 2 for cpupools patches.
>
> Changes from 1st version:
> - create all domains in Pool-0, move to specific pool afterwards
Do you make sure that the domain is moved to the right pool *before* any memory is assigned to the domain? It's necessary that the CPU affinity mask gets set appropriately to ensure memory gets allocated from the right node.
Thanks,
Ian
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Patch 0/6] Cpupools
2010-04-21 11:22 ` Ian Pratt
@ 2010-04-21 11:35 ` Juergen Gross
0 siblings, 0 replies; 9+ messages in thread
From: Juergen Gross @ 2010-04-21 11:35 UTC (permalink / raw)
To: Ian Pratt; +Cc: xen-devel@lists.xensource.com
Ian Pratt wrote:
>> Round 2 for cpupools patches.
>>
>> Changes from 1st version:
>> - create all domains in Pool-0, move to specific pool afterwards
>
> Do you make sure that the domain is moved to the right pool *before* any memory is assigned to the domain? It's necessary that the CPU affinity mask gets set appropriately to ensure memory gets allocated from the right node.
Yep. Right after creation the domain is moved to it's target pool, after that
the resources are allocated.
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Patch 0/6] Cpupools
2010-04-21 11:15 Juergen Gross
2010-04-21 11:22 ` Ian Pratt
@ 2010-04-21 11:53 ` Keir Fraser
1 sibling, 0 replies; 9+ messages in thread
From: Keir Fraser @ 2010-04-21 11:53 UTC (permalink / raw)
To: Juergen Gross, xen-devel@lists.xensource.com
On 21/04/2010 12:15, "Juergen Gross" <juergen.gross@ts.fujitsu.com> wrote:
> Round 2 for cpupools patches.
>
> Changes from 1st version:
> - create all domains in Pool-0, move to specific pool afterwards
> - don't use cpupool_lock for cpu add/remove. Races with hot swapping cpus are
> avoided by locking cpus to Pool-0 if necessary
Applied. Thanks.
-- Keir
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-04-21 11:53 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-20 9:37 [Patch 0/6] Cpupools Juergen Gross
2010-04-20 18:48 ` Ian Jackson
2010-04-21 4:44 ` Juergen Gross
2010-04-20 18:49 ` Konrad Rzeszutek Wilk
2010-04-21 4:56 ` Juergen Gross
-- strict thread matches above, loose matches on Subject: below --
2010-04-21 11:15 Juergen Gross
2010-04-21 11:22 ` Ian Pratt
2010-04-21 11:35 ` Juergen Gross
2010-04-21 11:53 ` Keir Fraser
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).