* How to activate all VPCUS for a domU?
@ 2012-11-16 18:09 Omer K.
2012-11-16 18:21 ` Mats Petersson
0 siblings, 1 reply; 4+ messages in thread
From: Omer K. @ 2012-11-16 18:09 UTC (permalink / raw)
To: xen-users list, xen-devel list
[-- Attachment #1.1: Type: text/plain, Size: 500 bytes --]
Hi,
I have set maxvcpus and vcpus options in my domU configuration file, and I
can see that X number of vcpu are set for the domU.
I tried to activate all the vpcus by using vpcu_avail option (using decimal
to represent vpcu bitmask e.g. 24=11000) but it doesn't seem to work, and
only the first vpcu is activated (i.e. has -b- state) while all other
vpcu's set for the domU are in the paused state.
Can any one share more insights on how to activate all the vpcu's for the
guest domain ?
Thanks
[-- Attachment #1.2: Type: text/html, Size: 543 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to activate all VPCUS for a domU?
2012-11-16 18:09 How to activate all VPCUS for a domU? Omer K.
@ 2012-11-16 18:21 ` Mats Petersson
2012-11-16 20:19 ` Omer K.
0 siblings, 1 reply; 4+ messages in thread
From: Mats Petersson @ 2012-11-16 18:21 UTC (permalink / raw)
To: xen-devel
On 16/11/12 18:09, Omer K. wrote:
> Hi,
>
> I have set maxvcpus and vcpus options in my domU configuration file,
> and I can see that X number of vcpu are set for the domU.
>
> I tried to activate all the vpcus by using vpcu_avail option (using
> decimal to represent vpcu bitmask e.g. 24=11000) but it doesn't seem
> to work, and only the first vpcu is activated (i.e. has -b- state)
> while all other vpcu's set for the domU are in the paused state.
>
> Can any one share more insights on how to activate all the vpcu's for
> the guest domain ?
>
> Thanks
This definitely belongs to the Xen-Users list, not on Xen-Devel. Please
don't post to both lists, it just confuses people.
--
Mats
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to activate all VPCUS for a domU?
2012-11-16 18:21 ` Mats Petersson
@ 2012-11-16 20:19 ` Omer K.
2012-12-07 20:49 ` Konrad Rzeszutek Wilk
0 siblings, 1 reply; 4+ messages in thread
From: Omer K. @ 2012-11-16 20:19 UTC (permalink / raw)
To: Mats Petersson; +Cc: xen-users list, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1876 bytes --]
Hi,
Apologies for earlier spamming the xen-devel list but this message might be
relevant as I think there is a bug in xm/create.py where 'vcpu_avail'
option doesn't get properly set.
I manage to solve the issue of activating all of the vcpus by apply a
modified version of the patch earlier discussed:
http://old-list-archives.xen.org/archives/html/xen-users/2010-09/msg00353.html
The following patch fixed the issue for me and after this bitmask value was
activating required vpcu's read from the xen configuration file. Prior to
that, vpcu_avail was always set to '1' (also verified from 'xenstore-ls -f'
output).
--- create.py
+++ create.py.af
if maxvcpus and vcpus:
config.append(['vcpus', vcpus])
- config.append(['vcpu_avail', (1 << vcpus) -1)])
+ config.append(['vcpu_avail', getattr(vals, 'vcpu_avail'])
def add_conf(n):
if hasattr(vals, n):
Regards.
Omer
On Fri, Nov 16, 2012 at 6:21 PM, Mats Petersson
<mats.petersson@citrix.com>wrote:
> On 16/11/12 18:09, Omer K. wrote:
>
>> Hi,
>>
>> I have set maxvcpus and vcpus options in my domU configuration file, and
>> I can see that X number of vcpu are set for the domU.
>>
>> I tried to activate all the vpcus by using vpcu_avail option (using
>> decimal to represent vpcu bitmask e.g. 24=11000) but it doesn't seem to
>> work, and only the first vpcu is activated (i.e. has -b- state) while all
>> other vpcu's set for the domU are in the paused state.
>>
>> Can any one share more insights on how to activate all the vpcu's for the
>> guest domain ?
>>
>> Thanks
>>
> This definitely belongs to the Xen-Users list, not on Xen-Devel. Please
> don't post to both lists, it just confuses people.
>
> --
> Mats
>
> ______________________________**_________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
[-- Attachment #1.2: Type: text/html, Size: 2765 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to activate all VPCUS for a domU?
2012-11-16 20:19 ` Omer K.
@ 2012-12-07 20:49 ` Konrad Rzeszutek Wilk
0 siblings, 0 replies; 4+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-12-07 20:49 UTC (permalink / raw)
To: Omer K.; +Cc: Mats Petersson, xen-users list, xen-devel
On Fri, Nov 16, 2012 at 08:19:07PM +0000, Omer K. wrote:
> Hi,
>
> Apologies for earlier spamming the xen-devel list but this message might be
> relevant as I think there is a bug in xm/create.py where 'vcpu_avail'
> option doesn't get properly set.
>
> I manage to solve the issue of activating all of the vcpus by apply a
> modified version of the patch earlier discussed:
>
> http://old-list-archives.xen.org/archives/html/xen-users/2010-09/msg00353.html
>
> The following patch fixed the issue for me and after this bitmask value was
> activating required vpcu's read from the xen configuration file. Prior to
> that, vpcu_avail was always set to '1' (also verified from 'xenstore-ls -f'
> output).
>
> --- create.py
> +++ create.py.af
>
> if maxvcpus and vcpus:
> config.append(['vcpus', vcpus])
> - config.append(['vcpu_avail', (1 << vcpus) -1)])
> + config.append(['vcpu_avail', getattr(vals, 'vcpu_avail'])
>
> def add_conf(n):
> if hasattr(vals, n):
Could you want repost this with an Signed-off-By. There is a nice
description here on how to do it:
http://wiki.xen.org/wiki/Submitting_Xen_Patches
>
> Regards.
> Omer
>
>
> On Fri, Nov 16, 2012 at 6:21 PM, Mats Petersson
> <mats.petersson@citrix.com>wrote:
>
> > On 16/11/12 18:09, Omer K. wrote:
> >
> >> Hi,
> >>
> >> I have set maxvcpus and vcpus options in my domU configuration file, and
> >> I can see that X number of vcpu are set for the domU.
> >>
> >> I tried to activate all the vpcus by using vpcu_avail option (using
> >> decimal to represent vpcu bitmask e.g. 24=11000) but it doesn't seem to
> >> work, and only the first vpcu is activated (i.e. has -b- state) while all
> >> other vpcu's set for the domU are in the paused state.
> >>
> >> Can any one share more insights on how to activate all the vpcu's for the
> >> guest domain ?
> >>
> >> Thanks
> >>
> > This definitely belongs to the Xen-Users list, not on Xen-Devel. Please
> > don't post to both lists, it just confuses people.
> >
> > --
> > Mats
> >
> > ______________________________**_________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
> >
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-12-07 20:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-16 18:09 How to activate all VPCUS for a domU? Omer K.
2012-11-16 18:21 ` Mats Petersson
2012-11-16 20:19 ` Omer K.
2012-12-07 20:49 ` Konrad Rzeszutek Wilk
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.