Chris Friesen
2015-Jan-23 18:46 UTC
[libvirt-users] questions around using numatune/numa/schedinfo
Hi, I'm running into some problems with libvirt and hoping someone can point me at some instructions or maybe even help me out. First, are there any requirements on qemu version in order to use the "numatune" and/or "cpu/numa/cell" elements? Or do they use cgroups and not the native qemu numa support? Second, are there any instructions on how to set up cgroups? I initially hadn't had cgroups mounted and running "virsh schedinfo <domain>" gave an error. So I mounted "/sys/fs/cgroup/memory" and "/sys/fs/cgroup/cpu" and restarted libvirtd but running "virsh schedinfo <domain>" still gives an error: root@compute-1:~# virsh schedinfo 8 Scheduler : Unknown error: Requested operation is not valid: cgroup CPU controller is not mounted What am I missing? Thanks, Chris
Michal Privoznik
2015-Jan-26 12:08 UTC
Re: [libvirt-users] questions around using numatune/numa/schedinfo
On 23.01.2015 19:46, Chris Friesen wrote:> Hi, > > I'm running into some problems with libvirt and hoping someone can point > me at some instructions or maybe even help me out. > > > First, are there any requirements on qemu version in order to use the > "numatune" and/or "cpu/numa/cell" elements? Or do they use cgroups and > not the native qemu numa support?For numatune you need a qemu with 'memory-backend-{ram,file}' objects. Those were introduced in qemu-2.1.0. As of libvirt, you'll need libvirt-1.2.7 at least. Although the newer the better - there were couple of fixes recently.> > > Second, are there any instructions on how to set up cgroups? I > initially hadn't had cgroups mounted and running "virsh schedinfo > <domain>" gave an error. So I mounted "/sys/fs/cgroup/memory" and > "/sys/fs/cgroup/cpu" and restarted libvirtd but running "virsh schedinfo > <domain>" still gives an error: > > root@compute-1:~# virsh schedinfo 8 > Scheduler : Unknown > error: Requested operation is not valid: cgroup CPU controller is not > mounted > > What am I missing? > >What's the libvirt version? Michal
Kashyap Chamarthy
2015-Jan-26 12:23 UTC
Re: [libvirt-users] questions around using numatune/numa/schedinfo
On Mon, Jan 26, 2015 at 01:08:50PM +0100, Michal Privoznik wrote:> On 23.01.2015 19:46, Chris Friesen wrote: > > Hi, > > > > I'm running into some problems with libvirt and hoping someone can point > > me at some instructions or maybe even help me out. > > > > > > First, are there any requirements on qemu version in order to use the > > "numatune" and/or "cpu/numa/cell" elements? Or do they use cgroups and > > not the native qemu numa support? > > For numatune you need a qemu with 'memory-backend-{ram,file}' objects. > Those were introduced in qemu-2.1.0. As of libvirt, you'll need > libvirt-1.2.7 at least. Although the newer the better - there were > couple of fixes recently.Recently I did a test here with KVM nested virtualization (I was testing from git, so the commits are noted too): https://kashyapc.fedorapeople.org/virt/openstack/nova-libvirt-numa-testing/Notes-test-libvirt-NUMA-with-DevStack.txt The libvirt guest XML configs are in that directory too. The above test is based on upstream notes in context of OpenStack Nova, written by Daniel Berrangé: https://review.openstack.org/#/c/131818/6/doc/source/devref/testing/libvirt-numa.rst -- /kashyap
Chris Friesen
2015-Jan-26 14:56 UTC
Re: [libvirt-users] questions around using numatune/numa/schedinfo
On 01/26/2015 06:08 AM, Michal Privoznik wrote:> On 23.01.2015 19:46, Chris Friesen wrote:>> First, are there any requirements on qemu version in order to use the >> "numatune" and/or "cpu/numa/cell" elements? Or do they use cgroups and >> not the native qemu numa support? > > For numatune you need a qemu with 'memory-backend-{ram,file}' objects. > Those were introduced in qemu-2.1.0. As of libvirt, you'll need > libvirt-1.2.7 at least. Although the newer the better - there were > couple of fixes recently.Okay, thanks. I saw the recent fixes in the git logs.>> Second, are there any instructions on how to set up cgroups? I >> initially hadn't had cgroups mounted and running "virsh schedinfo >> <domain>" gave an error. So I mounted "/sys/fs/cgroup/memory" and >> "/sys/fs/cgroup/cpu" and restarted libvirtd but running "virsh schedinfo >> <domain>" still gives an error: >> >> root@compute-1:~# virsh schedinfo 8 >> Scheduler : Unknown >> error: Requested operation is not valid: cgroup CPU controller is not >> mounted >> >> What am I missing? >> >> > > What's the libvirt version?Libvirt is 1.2.8. Chris
Reasonably Related Threads
- Re: questions around using numatune/numa/schedinfo
- Re: NUMA issues on virtualized hosts
- Re: Help? Running into problems with migrateToURI2() and virDomainDefCheckABIStability()
- NUMA issues on virtualized hosts
- What global_quota option mean? What's its logic?