From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH 0/3] KVM-userspace: add NUMA support for guests Date: Mon, 01 Dec 2008 09:34:43 -0600 Message-ID: <49340413.9090003@codemonkey.ws> References: <492F1DD9.8030901@amd.com> <49318A10.7080801@redhat.com> <4933F177.5040802@amd.com> <4933F4B0.7040500@redhat.com> <4934027D.8080904@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Andre Przywara , kvm@vger.kernel.org, "Daniel P. Berrange" , Andi Kleen To: Avi Kivity Return-path: Received: from an-out-0708.google.com ([209.85.132.240]:34886 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751693AbYLAPeu (ORCPT ); Mon, 1 Dec 2008 10:34:50 -0500 Received: by an-out-0708.google.com with SMTP id d40so917094and.1 for ; Mon, 01 Dec 2008 07:34:49 -0800 (PST) In-Reply-To: <4934027D.8080904@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: Anthony Liguori wrote: > > numactl --offset=0G --length=1G --membind=0 --file /dev/shm/A --touch > numactl --offset=1G --length=1G --membind=1 --file /dev/shm/A --touch > > And then create the VM with: > > qemu-system-x86_64 -mem-path /dev/shm/A -mem 2G ... > > What's best about this approach, is that you get full access to what > numactl is capable of. Interleaving, rebalancing, etc. Prefaulting, generating an error when NUMA placement can't be satisified, hugetlbfs support, yeah, this very much seems like the right thing to do to me. If you care enough about performance to do NUMA placement, you almost certainly are going to be doing hugetlbfs anyway so you get it practically for free. Regards, Anthony Liguori > Regards, > > Anthony Liguori