From: Avi Kivity <avi@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Andre Przywara <andre.przywara@amd.com>,
kvm@vger.kernel.org, "Daniel P. Berrange" <berrange@redhat.com>
Subject: Re: [PATCH 0/3] v2: KVM-userspace: add NUMA support for guests
Date: Fri, 05 Dec 2008 17:27:30 +0200 [thread overview]
Message-ID: <49394862.4090306@redhat.com> (raw)
In-Reply-To: <49393A78.5030601@codemonkey.ws>
Anthony Liguori wrote:
>
> In the event that the VM is larger than a single node, if a user is
> creating it via qemu-system-x86_64, they're going to either not care
> at all about NUMA, or be familiar enough with the numactl tools that
> they'll probably just want to use that. Once you've got your head
> around the fact that VCPUs are just threads and the memory is just a
> shared memory segment, any knowledgable sysadmin will have no problem
> doing whatever sort of NUMA layout they want.
>
The vast majority of production VMs will be created by management tools.
> The other case is where management tools are creating VMs. In this
> case, it's probably better to use numactl as an external tool because
> then it keeps things consistent wrt CPU pinning.
>
> There's also a good argument for not introducing CPU pinning directly
> to QEMU. There are multiple ways to effectively do CPU pinning. You
> can use taskset, you can use cpusets or even something like libcgroup.
>
> If you refactor the series so that the libnuma patch is the very last
> one and submit to qemu-devel, I'll review and apply all of the first
> patches. We can continue to discuss the last patch independently of
> the first three if needed.
We need libnuma integrated in qemu. Using numactl outside of qemu means
we need to start exposing more and more qemu internals (vcpu->thread
mapping, memory in /dev/shm, phys_addr->ram_addr mapping) and lose out
on optimization opportunities (having multiple numa-aware iothreads,
numa-aware kvm mmu). It also means we cause duplication of the numa
logic in management tools instead of consolidation in qemu.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
next prev parent reply other threads:[~2008-12-05 15:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-05 13:29 [PATCH 0/3] v2: KVM-userspace: add NUMA support for guests Andre Przywara
2008-12-05 14:28 ` Anthony Liguori
2008-12-05 15:22 ` Andre Przywara
2008-12-05 15:41 ` Anthony Liguori
2008-12-08 21:46 ` André Przywara
2008-12-08 22:01 ` Anthony Liguori
2008-12-09 14:24 ` Avi Kivity
2008-12-09 14:55 ` Anthony Liguori
2008-12-05 15:27 ` Avi Kivity [this message]
2008-12-05 15:34 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49394862.4090306@redhat.com \
--to=avi@redhat.com \
--cc=andre.przywara@amd.com \
--cc=anthony@codemonkey.ws \
--cc=berrange@redhat.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).