Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2017-03-01 Thread Stefano Stabellini
CC'ing Julien. On Wed, 1 Mar 2017, Dario Faggioli wrote: > On Wed, 2017-03-01 at 02:05 +0200, Anastassios Nanos wrote: > > On Wed, Dec 7, 2016 at 8:29 PM, Dario Faggioli > > wrote: > > > > > > % Heterogeneous Multi Processing Support in Xen > > > % Revision 1 > > > > > > [...] > > Hi all, > >

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2017-03-01 Thread Dario Faggioli
On Wed, 2017-03-01 at 02:05 +0200, Anastassios Nanos wrote: > On Wed, Dec 7, 2016 at 8:29 PM, Dario Faggioli > wrote: > > > > % Heterogeneous Multi Processing Support in Xen > > % Revision 1 > > > > [...] > Hi all, > Hello, > We are sending a branch[1] for comments on an initial implementation

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2017-02-28 Thread Anastassios Nanos
On Wed, Dec 7, 2016 at 8:29 PM, Dario Faggioli wrote: > % Heterogeneous Multi Processing Support in Xen > % Revision 1 > > \clearpage > > # Basics > > > Status: **Design Document** > > Architecture(s): x86, arm > >Component(s): Hypervisor and

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-16 Thread George Dunlap
> On Dec 16, 2016, at 4:05 PM, George Dunlap wrote: > > >> On Dec 8, 2016, at 2:29 AM, Dario Faggioli wrote: > >> For the vCPUs for which no class is specified, default behavior applies. >> >> **TODO:** note that I think it must be possible to associate more than >> one class to a vCPU. This

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-16 Thread George Dunlap
> On Dec 8, 2016, at 2:29 AM, Dario Faggioli wrote: > For the vCPUs for which no class is specified, default behavior applies. > > **TODO:** note that I think it must be possible to associate more than > one class to a vCPU. This is expressed in the example above, and assumed > to be true throu

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-16 Thread George Dunlap
> On Dec 9, 2016, at 5:09 PM, Jan Beulich wrote: > On 09.12.16 at 09:29, wrote: >> On Fri, 2016-12-09 at 01:13 -0700, Jan Beulich wrote: >> On 08.12.16 at 22:54, wrote: Yeah, that was what was puzzling me too. Keeping them ordered has the nice property that if a user sa

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-15 Thread Juergen Gross
On 15/12/16 19:41, Dario Faggioli wrote: > On Thu, 2016-12-08 at 11:38 +0100, Juergen Gross wrote: >> So you really solved the following problem in credit2? >> >> You have three domains with 2 vcpus each and different weights. Run >> them >> on 3 physical cpus with following pinning: >> >> dom1: pc

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-15 Thread Dario Faggioli
On Thu, 2016-12-08 at 11:38 +0100, Juergen Gross wrote: > So you really solved the following problem in credit2? > > You have three domains with 2 vcpus each and different weights. Run > them > on 3 physical cpus with following pinning: > > dom1: pcpu 1 and 2 > dom2: pcpu 2 and 3 > dom3: pcpu 1 a

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-09 Thread Stefano Stabellini
On Fri, 9 Dec 2016, Jan Beulich wrote: > >>> On 09.12.16 at 09:29, wrote: > > On Fri, 2016-12-09 at 01:13 -0700, Jan Beulich wrote: > >> > > > On 08.12.16 at 22:54, wrote: > >> > Yeah, that was what was puzzling me too. Keeping them ordered has > >> > the > >> > nice property that if a user says

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-09 Thread Jan Beulich
>>> On 09.12.16 at 09:29, wrote: > On Fri, 2016-12-09 at 01:13 -0700, Jan Beulich wrote: >> > > > On 08.12.16 at 22:54, wrote: >> > Yeah, that was what was puzzling me too. Keeping them ordered has >> > the >> > nice property that if a user says the following in a config file: >> > >> > vcpucla

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-09 Thread Dario Faggioli
On Fri, 2016-12-09 at 01:13 -0700, Jan Beulich wrote: > > > > On 08.12.16 at 22:54, wrote: > > Yeah, that was what was puzzling me too. Keeping them ordered has > > the > > nice property that if a user says the following in a config file: > > > >  vcpuclass=["0-3:class0", "4-7:class1"] > > > > (

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-09 Thread Jan Beulich
>>> On 08.12.16 at 22:54, wrote: > On Thu, 2016-12-08 at 03:14 -0700, Jan Beulich wrote: >> > > > On 07.12.16 at 19:29, wrote: >> > The list of classes is kept ordered from the more powerful to the >> > less >> > powerful. >> > **TODO:** this has been [proposed by >> > George](https://lists.xenp

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-08 Thread Dario Faggioli
On Thu, 2016-12-08 at 03:14 -0700, Jan Beulich wrote: > > > > On 07.12.16 at 19:29, wrote: > > The list of classes is kept ordered from the more powerful to the > > less > > powerful. > > **TODO:** this has been [proposed by  > > George](https://lists.xenproject.org/archives/html/xen-devel/2016-0

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-08 Thread Dario Faggioli
On Thu, 2016-12-08 at 11:38 +0100, Juergen Gross wrote: > On 08/12/16 11:27, Dario Faggioli wrote: > > On Thu, 2016-12-08 at 07:12 +0100, Juergen Gross wrote: > > > Any idea how to avoid problems in the schedulers related to vcpus > > > with > > > different weights?  > > > > > Sure: use Credit2! :

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-08 Thread Stefano Stabellini
On Thu, 8 Dec 2016, Jan Beulich wrote: > >>> On 07.12.16 at 19:29, wrote: > > ### x86 > > > > There is no HMP platform of relevance, for now, in x86 world. Therefore, > > only one class will exist, and all the CPUs will be set to belong to it. > > **TODO X86:** is this correct? > > What about th

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-08 Thread Jan Beulich
>>> On 08.12.16 at 11:23, wrote: > On Thu, 2016-12-08 at 03:14 -0700, Jan Beulich wrote: >> > > > On 07.12.16 at 19:29, wrote: >> > ### x86 >> > >> > There is no HMP platform of relevance, for now, in x86 world. >> > Therefore, >> > only one class will exist, and all the CPUs will be set to belo

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-08 Thread Juergen Gross
On 08/12/16 11:27, Dario Faggioli wrote: > On Thu, 2016-12-08 at 07:12 +0100, Juergen Gross wrote: >> On 07/12/16 19:29, Dario Faggioli wrote: >>> ### Phase 2 >>> >>> Inside Xen, the various schedulers will be modified to deal >>> internally with >>> the fact that vCPUs can only run on pCPUs from t

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-08 Thread Dario Faggioli
On Thu, 2016-12-08 at 07:12 +0100, Juergen Gross wrote: > On 07/12/16 19:29, Dario Faggioli wrote: > > > > Setting and getting the CPU class of a vCPU will happen via two new > > hypercalls: > > > > * `XEN_DOMCTL_setvcpuclass` > > * `XEN_DOMCTL_setvcpuclass` > > XEN_DOMCTL_getvcpuclass > Oops,

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-08 Thread Dario Faggioli
On Thu, 2016-12-08 at 03:14 -0700, Jan Beulich wrote: > > > > On 07.12.16 at 19:29, wrote: > > ### x86 > > > > There is no HMP platform of relevance, for now, in x86 world. > > Therefore, > > only one class will exist, and all the CPUs will be set to belong > > to it. > > **TODO X86:** is this co

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-08 Thread Jan Beulich
>>> On 07.12.16 at 19:29, wrote: > ### x86 > > There is no HMP platform of relevance, for now, in x86 world. Therefore, > only one class will exist, and all the CPUs will be set to belong to it. > **TODO X86:** is this correct? What about the original Xeon Phi (on a PCIe card)? > ## Hypervisor

Re: [Xen-devel] [DOC RFC] Heterogeneous Multi Processing Support in Xen

2016-12-07 Thread Juergen Gross
On 07/12/16 19:29, Dario Faggioli wrote: > Setting and getting the CPU class of a vCPU will happen via two new > hypercalls: > > * `XEN_DOMCTL_setvcpuclass` > * `XEN_DOMCTL_setvcpuclass` XEN_DOMCTL_getvcpuclass > ### Phase 2 > > Inside Xen, the various schedulers will be modified to deal intern