Displaying 20 results from an estimated 10000 matches similar to: "How to set cpuset.cpus dynamically?"
2013 Jul 02
0
cpuset attribute not working with virt-install
Hi all,
I have been trying to use cpuset with virt-install. I am using the following command:
$ virt-install --virt-type kvm --name Ubuntu13 --ram 1024 --cdrom=/home/peeyush/Downloads/ubuntu-13.04-desktop-i386.iso --cpuset=0,2 --disk path=/var/lib/libvirt/guest.qcow2,size=10,format=qcow2
Now, according to virt-install man page, my VM's cpu affinity should be set to pcpu 0 and 2 . But when
2013 Jul 24
2
API to set cpuset.cpu_exclusive flag
Hi all,
I have been trying to set cpu_exclusive flag. Now I can do it using "echo". I want to know is there any other way (an API) to set this flag? Is it possible to set this flag using API?
Thanks.
~Peeyush Gupta
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
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 and I
2019 Aug 29
0
[libvirtd] qemu_process: reset CPU affinity to all enabled CPUs, when runs in custom cpuset
Hello All,
Since 4.5.0-23.el7 version (Red Hat 7.7), when I launch pinned VM,
libvirtd reset CPU affinity to all enabled in host CPUs, if it runs in
custom cpuset.
I can't reproduce this behavior with 4.5.0-10.el7_6.12 with the same
kernel version (Red Hat 7.7).
Libvirt runs in a custom cpuset 'libvirt', where the number of
available cpus is restricted to 0,2,4,6,8.
And this
2013 Sep 17
0
Re: libvirt-users Digest, Vol 45, Issue 28
Test
libvirt-users-request@redhat.com schrieb:
>Send libvirt-users mailing list submissions to
> libvirt-users@redhat.com
>
>To subscribe or unsubscribe via the World Wide Web, visit
> https://www.redhat.com/mailman/listinfo/libvirt-users
>or, via email, send a message with subject or body 'help' to
> libvirt-users-request@redhat.com
>
>You can reach the
2013 Jul 02
0
Not able to create two cpusets with exclusive access
Hi all,
I am trying to set up exclusive cpu access for two different VMs. Now, in the hierarchy, the directories of both the VM's are inside /libvirt/qemu/$VM. I have 3 cpus on my machine. I have done echo 0 > cpuset.cpus and echo 1 > cpuset.cpu_exclusive for one VM. Now, I am launching another VM using virt-install and I have given the option --cpuset 1. There is no overlapping of cpus
2013 Aug 01
3
Re: Installing libvirt
Hi,
Sorry, I will keep the instructions in mind.
I tried ./autogen.sh with --system but there was a version mismatch.
I guess someone should write a patch for debian based system.
I tried to install libvirt 1.1.1 with Fedora and when I did make, I got the
following error:
Making all in src
make[2]: Entering directory `/home/peeyush/Downloads/libvirt-1.1.1/src'
GEN
2013 Jul 24
0
Re: API to set cpuset.cpu_exclusive flag
On Wed, Jul 24, 2013 at 06:59:29PM +0800, Peeyush Gupta wrote:
> Hi all,
>
> I have been trying to set cpu_exclusive flag. Now I can do it
> using "echo". I want to know is there any other way (an API)
> to set this flag? Is it possible to set this flag using API?
There's no API in libvirt for setting this, and I don't really see the
point in this cgroup setting
2013 Jul 31
3
Installing libvirt
Hi,
I am trying to install new libvirt version on Ubuntu 12.04 LTS. Now I downloaded libvirt 1.0.5 from libvirt.org/sources then I issued three commands:
./autogen.sh
make
make install
This installs the libvirt on my system. But there are some issues, I have to run libvirtd explicitly everytime I reboot my system. And whenever I try to run virt-manager from terminal, it says "No D-Bus
2013 Sep 17
2
Finding out CPU topology.
Hi all,
I have been trying to find out cpu topology using libvirt. When
I do 'virsh capabilites', I find this inside <topology> tag:
<topology>
<cells num='1'>
<cell id='0'>
<memory unit='KiB'>3908488</memory>
<cpus num='4'>
<cpu id='0' socket_id='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
2012 Oct 16
1
cpuset not affecting real pid placement
Hi,
At least on 0.10.2 setting a cpuset doesn`t match a real process
placement - VM still consumes all available cores.
VM config:
.snip.
<vcpu placement='static' cpuset='0-5,12-17'>12</vcpu>
.snip.
for cpuset in $(find /cgroup/cpuset/libvirt/qemu/vmid/ -name
cpuset.cpus) ; do grep 0-5 $cpuset ; done
got: empty responce, e.g. 0-23 in my setup
expected: at least
2013 Jun 14
0
can virsh set the cpuset attribute of <vcpu ..> (CPU Allocation) ?
Is it possible to use virsh to set the cpuset attribute of the CPU
Allocation element in a domain ?
<domain>
...
<vcpu placement='static' cpuset="1-4,^3,6" current="1">2</vcpu>
...
</domain>
I have seen that virsh vcpupin and virsh emulatorpin can be used to query
and set
the cpusets of the <vcpupin> and <emulatorpin>
2018 Sep 05
0
Re: Domain vCPU threads affinity
On Wed, Sep 05, 2018 at 03:48:45PM +0300, Nikos Anastopoulos wrote:
>Hello,
>
>According to the docs, vcpupin will use either cgroups or sched_setaffinity
>to pin vcpu threads to cpus. How is this decision made?
>I observe differences even on different hosts featuring the same version of
>libvirtd (1.3.1): on one host vcpupin affects cpuset.cpus (cgroup), and on
>the other it
2014 Jan 15
0
Re: Does libvirt lxc driver support "cpuset" attribute?
On Wed, Jan 15, 2014 at 05:49:23AM +0000, WANG Cheng D wrote:
> Dear all
>
> I allocate only one vcpu for the container by the following
> statement, that is, I want to pin the vcpu to physical core "2".
> <vcpu placement='static' cpuset="2" >1</vcpu>
> My host has 4 physical cores. Before test, all the 4 cores are
> idle. After I run 4
2013 Sep 09
0
Re: How to insert vcpupin in guest xml file
On 07/19/2013 04:51 PM, Peeyush Gupta wrote:
> 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
2013 Aug 27
1
Finding out CPU topology
Hi,
I have been trying to find out CPU topology using libvirt.
I understand that I can find out the number of cores/sockets/
threads etc through getCapabilities() function. What I am wondering
is that is there any function that can provide me the exact topology
like how many sockets, how many sockets per core and number of
threads per core, if applicable or may be info about numa cells.
Is there
2018 Sep 05
2
Domain vCPU threads affinity
Hello,
According to the docs, vcpupin will use either cgroups or sched_setaffinity
to pin vcpu threads to cpus. How is this decision made?
I observe differences even on different hosts featuring the same version of
libvirtd (1.3.1): on one host vcpupin affects cpuset.cpus (cgroup), and on
the other it affects vcpu threads affinity (observed through taskset).
Thanks,
Nikos
-------------- next
2013 Aug 21
2
virsh "cpu-stats" not working !!!
>
> Hi All,
>
> Can you please guide us in solving this issue.
>
> Version used : libvirt-1.0.6
> # rpm -qa | egrep "libvirt|qemu"
> qemu-kvm-0.14.1-1_WR4.3.x86_64_XXX.x86_64
> libvirt-1.0.6-1_WR4.3.x86_64_XXX.2.x86_64
>
> Problem :
>
> # virsh cpu-stats CLA-0
> error: Failed to retrieve CPU statistics for domain 'CLA-0'
> *error: