Hi,
I have a server with four CPUs. I need to create a domU on it with
two virtual CPUs. I want to map the virtual CPUs like this :
First VCPU -- first and second Physical CPU
Second VCPU -- third and fourth Physical CPU.
I need to know if that can be done for a xen domU and if yes, how
shud I specify that setting in the config file of the domU.
Any help will be much appreciated.
Thanks,
Sachin.
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > sachin goel > Sent: 11 May 2007 10:31 > To: xen-users@lists.xensource.com > Subject: [Xen-users] Configuring CPUs on domU > > Hi, > I have a server with four CPUs. I need to create a domU > on it with > two virtual CPUs. I want to map the virtual CPUs like this : > First VCPU -- first and second Physical CPU > Second VCPU -- third and fourth Physical CPU.You can do that manually after you''ve started the Domain, but you can''t do it in the configuration script for the domain. Use "xm vcpu-pin <domain> <vcpu> <pcpu(s)>", so for example: # xm vcpu-pin vm1 0 0-1 # xm vcpu-pin vm1 1 2-3 This will do what you describe above. -- Mats> I need to know if that can be done for a xen domU and if > yes, how > shud I specify that setting in the config file of the domU. > Any help will be much appreciated. > > Thanks, > Sachin. > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Mats,
I guess that means we can specify the number of virtual CPUs
we want on our guest VM (through the ''vcpus'' field in the
config file)
and also the physical CPUs (through the ''cpus'' field) we want
to use for
our guest VM. But we can not specify any type of binding of a virtual
CPU with one or more physical CPUs in the config file.
Please correct me if I am wrong !!
Thanks,
Sachin.
Petersson, Mats wrote:
>
>
>
>
>>-----Original Message-----
>>From: xen-users-bounces@lists.xensource.com
>>[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of
>>sachin goel
>>Sent: 11 May 2007 10:31
>>To: xen-users@lists.xensource.com
>>Subject: [Xen-users] Configuring CPUs on domU
>>
>>Hi,
>> I have a server with four CPUs. I need to create a domU
>>on it with
>>two virtual CPUs. I want to map the virtual CPUs like this :
>>First VCPU -- first and second Physical CPU
>>Second VCPU -- third and fourth Physical CPU.
>>
>>
>
>You can do that manually after you''ve started the Domain, but you
can''t
>do it in the configuration script for the domain. Use "xm vcpu-pin
><domain> <vcpu> <pcpu(s)>", so for example:
>
># xm vcpu-pin vm1 0 0-1
># xm vcpu-pin vm1 1 2-3
>
>This will do what you describe above.
>
>--
>Mats
>
>
>> I need to know if that can be done for a xen domU and if
>>yes, how
>>shud I specify that setting in the config file of the domU.
>> Any help will be much appreciated.
>>
>>Thanks,
>>Sachin.
>>
>>
>>
>>_______________________________________________
>>Xen-users mailing list
>>Xen-users@lists.xensource.com
>>http://lists.xensource.com/xen-users
>>
>>
>>
>>
>>
>
>
>
>_______________________________________________
>Xen-users mailing list
>Xen-users@lists.xensource.com
>http://lists.xensource.com/xen-users
>
>
>
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
> -----Original Message----- > From: sachin goel [mailto:sachin.goel@oracle.com] > Sent: 11 May 2007 12:15 > To: Petersson, Mats > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Configuring CPUs on domU > > Hi Mats, > I guess that means we can specify the number of > virtual CPUs > we want on our guest VM (through the ''vcpus'' field in the > config file) > and also the physical CPUs (through the ''cpus'' field) we want > to use for > our guest VM. But we can not specify any type of binding of a virtual > CPU with one or more physical CPUs in the config file.Yes, that''s correct, you could specify that you want two VCPUs and the four physical CPU''s (which by the way may well be a better option anyways, as it allows the scheduler to find "any free" physical CPU - for example, if CPU2 and 3 are free to run, and CPU0 and 1 are busy, you can still run both VCPU''s on 2&3. -- Mats> Please correct me if I am wrong !! > > Thanks, > Sachin. > > Petersson, Mats wrote: > > > > > > > > > > >>-----Original Message----- > >>From: xen-users-bounces@lists.xensource.com > >>[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > >>sachin goel > >>Sent: 11 May 2007 10:31 > >>To: xen-users@lists.xensource.com > >>Subject: [Xen-users] Configuring CPUs on domU > >> > >>Hi, > >> I have a server with four CPUs. I need to create a domU > >>on it with > >>two virtual CPUs. I want to map the virtual CPUs like this : > >>First VCPU -- first and second Physical CPU > >>Second VCPU -- third and fourth Physical CPU. > >> > >> > > > >You can do that manually after you''ve started the Domain, > but you can''t > >do it in the configuration script for the domain. Use "xm vcpu-pin > ><domain> <vcpu> <pcpu(s)>", so for example: > > > ># xm vcpu-pin vm1 0 0-1 > ># xm vcpu-pin vm1 1 2-3 > > > >This will do what you describe above. > > > >-- > >Mats > > > > > >> I need to know if that can be done for a xen domU and if > >>yes, how > >>shud I specify that setting in the config file of the domU. > >> Any help will be much appreciated. > >> > >>Thanks, > >>Sachin. > >> > >> > >> > >>_______________________________________________ > >>Xen-users mailing list > >>Xen-users@lists.xensource.com > >>http://lists.xensource.com/xen-users > >> > >> > >> > >> > >> > > > > > > > >_______________________________________________ > >Xen-users mailing list > >Xen-users@lists.xensource.com > >http://lists.xensource.com/xen-users > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users