Displaying 7 results from an estimated 7 matches for "pinvcpu".
Did you mean:
pin_vcpu
2013 Jul 19
2
pinVcpu not working
Hi all,
I am working with libvirt and I am trying to set cpu affinity. Now I can always use
virsh vcpupin <domain_name> <vcpu> <pcpu>
to pin vcpus to pcpus. I want to do it using Python API. Now, there is function pinVcpu which is supposed to do that. But this is not working. For example I gave
dom.pinVcpu(0,1)
but still my vcpu affinity is for all the pcpus. The function returns 0 (success).
Any idea what am I doing wrong?
Thanks.
~Peeyush Gupta
2013 Jul 27
0
Re: pinVcpu not working
Hi Peeyush,
If we want to pin vcpu1 of a domain to CPUs 3 and 4, we need to pass:
dom.pinVcpu(1, (False, False, False, True, True, False....[and so on, til
number of logical CPUs of host]))
Can you please check this?
Regards,
Saurabh Deochake
[NTT DATA]
On Fri, Jul 19, 2013 at 11:45 AM, Peeyush Gupta <gpeeyush@ymail.com> wrote:
> Hi all,
>
> I am working with libvirt an...
2010 Sep 22
1
Question on CPU pinning in Python
Looking at the python API, once I have a domain object I can call domain.pinVcpu to pin a specific vcpu to a physical CPU. I found http://www.mail-archive.com/libvir-list at redhat.com/msg04562.html which mentioned some changes to the C API in the Python implementation, and was wondering if my understanding is correct.
Say that I have a host system with 16 logical CPU's, 0...
2013 Jul 19
2
How to insert vcpupin in guest xml file
Hi all,
I am trying to add vcpupin in the guest xml file. I am working with openstack and the code I have is python bound. I investigated through the code and found that the elemets in xml file are set in get_guest_config function. Now the thing is I am not able to set vcpupin element. I mean I tried guest.cputune_vcpupin but it's not working.
Help me out, please!
Thanks.
~Peeyush Gupta
2011 Jan 03
1
availability of snapshots functionality via Python bindings
...start',
'blockPeek', 'blockStats', 'connect', 'coreDump', 'create', 'destroy',
'detachDevice', 'info', 'interfaceStats', 'maxMemory', 'maxVcpus',
'memoryPeek', 'migrate', 'name', 'pinVcpu', 'reboot', 'resume', 'save',
'schedulerParameters', 'schedulerType', 'setAutostart', 'setMaxMemory',
'setMemory', 'setSchedulerParameters', 'setVcpus', 'shutdown',
'suspend', 'undefine', ...
2011 Feb 14
1
Use libvirt-python to attach cdrom
Hi all,
I want to attach cdrom by libvirt.py .But can't find a func in
libvirt.py can finish this work.
Who can help me ?
Regard
--
Seven Ling
E-mail: jiejie.ling at qq.com
2013 Sep 09
0
Re: How to insert vcpupin in guest xml file
...in
> get_guest_config function. Now the thing is I am not able to set
> vcpupin element. I mean I tried guest.cputune_vcpupin but it's not
> working.
Hi Peeyush
In libvirt python -binding . You can find the following functions for
pining vcpus.
class virDomain:
.....
def pinVcpu(self, vcpu, cpumap):
"""Dynamically change the real CPUs which can be allocated to a
virtual CPU. This function requires privileged access to the hypervisor. """
ret = libvirtmod.virDomainPinVcpu(self._o, vcpu, cpumap)
if ret == -1: raise li...