Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-29 Thread Avi Kivity
On 06/28/2010 07:20 PM, Anthony Liguori wrote: To avoid this I'd like to see the pinning done from within QEMU. I am not sure whether calling numactl via system() and friends is OK, I'd prefer to run the syscalls directly (like in patch 3/3) and pull the necessary options into the -numa

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-29 Thread Avi Kivity
On 06/28/2010 07:17 PM, Anthony Liguori wrote: On 06/24/2010 06:12 AM, Avi Kivity wrote: On 06/24/2010 01:58 PM, Andre Przywara wrote: So who would create the /dev/shm/nodeXX files? Currently it is QEMU. It creates a somewhat unique filename, opens and unlinks it. The difference would be to

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-28 Thread Anthony Liguori
On 06/24/2010 06:12 AM, Avi Kivity wrote: On 06/24/2010 01:58 PM, Andre Przywara wrote: So who would create the /dev/shm/nodeXX files? Currently it is QEMU. It creates a somewhat unique filename, opens and unlinks it. The difference would be to name the file after the option and to not

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-28 Thread Anthony Liguori
On 06/24/2010 06:42 AM, Avi Kivity wrote: On 06/24/2010 02:34 PM, Andre Przywara wrote: Non-anonymous memory doesn't work well with ksm and transparent hugepages. Is it possible to use anonymous memory rather than file backed? I'd prefer non-file backed, too. But that is how the current

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-28 Thread Alexander Graf
Anthony Liguori wrote: On 06/24/2010 06:42 AM, Avi Kivity wrote: On 06/24/2010 02:34 PM, Andre Przywara wrote: Non-anonymous memory doesn't work well with ksm and transparent hugepages. Is it possible to use anonymous memory rather than file backed? I'd prefer non-file backed, too. But

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-25 Thread Andre Przywara
Jes Sorensen wrote: On 06/24/10 13:34, Andre Przywara wrote: Avi Kivity wrote: On 06/24/2010 01:58 PM, Andre Przywara wrote: Non-anonymous memory doesn't work well with ksm and transparent hugepages. Is it possible to use anonymous memory rather than file backed? I'd prefer non-file backed,

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Andre Przywara
Anthony Liguori wrote: On 06/23/2010 04:09 PM, Andre Przywara wrote: Hi, these three patches add basic NUMA pinning to KVM. According to a user provided assignment parts of the guest's memory will be bound to different host nodes. This should increase performance in large virtual machines and

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Andre Przywara
Alexander Graf wrote: On 24.06.2010, at 00:21, Anthony Liguori wrote: On 06/23/2010 04:09 PM, Andre Przywara wrote: Hi, these three patches add basic NUMA pinning to KVM. According to a user provided assignment parts of the guest's memory will be bound to different host nodes. This should

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Avi Kivity
On 06/24/2010 01:58 PM, Andre Przywara wrote: So who would create the /dev/shm/nodeXX files? Currently it is QEMU. It creates a somewhat unique filename, opens and unlinks it. The difference would be to name the file after the option and to not unlink it. I can imagine starting numactl

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Andre Przywara
Avi Kivity wrote: On 06/24/2010 01:58 PM, Andre Przywara wrote: So who would create the /dev/shm/nodeXX files? Currently it is QEMU. It creates a somewhat unique filename, opens and unlinks it. The difference would be to name the file after the option and to not unlink it. I can imagine

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Avi Kivity
On 06/24/2010 02:34 PM, Andre Przywara wrote: Non-anonymous memory doesn't work well with ksm and transparent hugepages. Is it possible to use anonymous memory rather than file backed? I'd prefer non-file backed, too. But that is how the current huge pages implementation is done. We could

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Andi Kleen
Anthony Liguori anth...@codemonkey.ws writes: If we extended integrated -mem-path with -numa such that a different path could be used with each numa node (and we let an explicit file be specified instead of just a directory), then if I understand correctly, we could use numactl without any

[PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-23 Thread Andre Przywara
Hi, these three patches add basic NUMA pinning to KVM. According to a user provided assignment parts of the guest's memory will be bound to different host nodes. This should increase performance in large virtual machines and on loaded hosts. These patches are quite basic (but work) and I send

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-23 Thread Anthony Liguori
On 06/23/2010 04:09 PM, Andre Przywara wrote: Hi, these three patches add basic NUMA pinning to KVM. According to a user provided assignment parts of the guest's memory will be bound to different host nodes. This should increase performance in large virtual machines and on loaded hosts. These

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-23 Thread Alexander Graf
On 24.06.2010, at 00:21, Anthony Liguori wrote: On 06/23/2010 04:09 PM, Andre Przywara wrote: Hi, these three patches add basic NUMA pinning to KVM. According to a user provided assignment parts of the guest's memory will be bound to different host nodes. This should increase performance