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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html