Thanks for the reply. For issue 1: I do mount the hugetlbfs filesystem. But forget the configure /etc/libvirt/qemu.conf. The default value do not work. :( Sorry for that.
For issue 2: I'm using the default qemu from my OS. qemu-system-x86_64 -version QEMU emulator version 2.1.0 (Debian 2.1+dfsg-4ubuntu6.4), Copyright (c) 2003-2008 Fabrice Bellard >From >https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L341-L381 The highest qemu version requested is 2.0.0 (https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L374) So, I think my qemu version should work. While in the help message: qemu-system-x86_64 -h |grep numa -numa node[,mem=size][,cpus=cpu[-cpu]][,nodeid=node] -numa node[,memdev=id][,cpus=cpu[-cpu]][,nodeid=node] Looks like it do support numa, but the command line is a little different. Because in compute.log, the command is : qemu-system-x86_64: -object memory-backend-file,prealloc=yes,mem-path=/dev/hugepages/libvirt/qemu,size=4096M,id=ram-node0,host-nodes=0,policy=bind I don't know how to solve this. :( Hope can get more help. Thanks. -chen -----Original Message----- From: Daniel P. Berrange [mailto:berra...@redhat.com] Sent: Tuesday, February 03, 2015 5:30 PM To: Li, Chen Cc: openstack@lists.openstack.org Subject: Re: [Openstack] [Nova][virt-driver-numa-placement]How to enbale instance with numa ? On Tue, Feb 03, 2015 at 01:18:05AM +0000, Li, Chen wrote: > > libvirtError: internal error: Unable to find any usable hugetlbfs > mount for 2048 KiB That is saying you have not configured the host to allow use of huge pages - you need the hugetlbfs filesystem mounted, to provide access to the huge pges of the required size. > NUMA node binding are not supported by this QEMU The version of QEMU you have is either too old, or it was built without numa support Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack