* [Qemu-devel] qemu and transparent huge pages
@ 2012-08-15 12:40 Michael Tokarev
0 siblings, 0 replies; 11+ messages in thread
From: Michael Tokarev @ 2012-08-15 12:40 UTC (permalink / raw)
To: Andrea Arcangeli; +Cc: qemu-devel, Avi Kivity
Quite some time ago there was a thread on qemu-devel,
started by Andrea, about modifying qemu to better
use transparent huge pages:
http://lists.gnu.org/archive/html/qemu-devel/2010-03/msg01250.html
That thread hasn't reached any conclusion, but some time
after that Avi implemented a similar change:
commit 36b586284e678da28df3af9fd0907d2b16f9311c
Author: Avi Kivity <avi@redhat.com>
Date: Mon Sep 5 11:07:05 2011 +0300
qemu_vmalloc: align properly for transparent hugepages and KVM
To make good use of transparent hugepages, KVM requires that guest-physical
and host-virtual addresses share the low 21 bits (as opposed to just the low
12 bits normally required).
Adjust qemu_vmalloc() to honor that requirement. Ignore it for small region
to avoid fragmentation.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
diff --git a/oslib-posix.c b/oslib-posix.c
index 196099c..a304fb0 100644
--- a/oslib-posix.c
+++ b/oslib-posix.c
@@ -35,6 +35,13 @@
extern int daemon(int, int);
#endif
+#if defined(__linux__) && defined(__x86_64__)
+ /* Use 2MB alignment so transparent hugepages can be used by KVM */
+# define QEMU_VMALLOC_ALIGN (512 * 4096)
+#else
+# define QEMU_VMALLOC_ALIGN getpagesize()
+#endif
+
#include "config-host.h"
#include "sysemu.h"
#include "trace.h"
@@ -80,7 +87,12 @@ void *qemu_memalign(size_t alignment, size_t size)
void *qemu_vmalloc(size_t size)
{
void *ptr;
- ptr = qemu_memalign(getpagesize(), size);
+ size_t align = QEMU_VMALLOC_ALIGN;
+
+ if (size < align) {
+ align = getpagesize();
+ }
+ ptr = qemu_memalign(align, size);
trace_qemu_vmalloc(size, ptr);
return ptr;
}
(why it is 64bit-only is a different, unrelated question).
But apparently, THP does not work still, even with 2Mb
alignment: when running a guest, AnonHugePages in
/proc/meminfo stays at 0 - either in kvm mode or in tcg
mode. Any idea why? What else is needed for THP to work?
This is quite a frequent question in #kvm IRC channel,
and I always suggested using -mem-path for this, but
I'm curios why it doesn't work automatically when it
probably should?
Thanks,
/mjt
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Qemu-devel] qemu and transparent huge pages
@ 2012-08-15 12:45 Michael Tokarev
2012-08-15 12:51 ` Avi Kivity
0 siblings, 1 reply; 11+ messages in thread
From: Michael Tokarev @ 2012-08-15 12:45 UTC (permalink / raw)
To: Andrea Arcangeli; +Cc: qemu-devel, Avi Kivity
[Reposting with the right email address of Andrea]
Quite some time ago there was a thread on qemu-devel,
started by Andrea, about modifying qemu to better
use transparent huge pages:
http://lists.gnu.org/archive/html/qemu-devel/2010-03/msg01250.html
That thread hasn't reached any conclusion, but some time
after that Avi implemented a similar change:
commit 36b586284e678da28df3af9fd0907d2b16f9311c
Author: Avi Kivity <avi@redhat.com>
Date: Mon Sep 5 11:07:05 2011 +0300
qemu_vmalloc: align properly for transparent hugepages and KVM
To make good use of transparent hugepages, KVM requires that guest-physical
and host-virtual addresses share the low 21 bits (as opposed to just the low
12 bits normally required).
Adjust qemu_vmalloc() to honor that requirement. Ignore it for small region
to avoid fragmentation.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
diff --git a/oslib-posix.c b/oslib-posix.c
index 196099c..a304fb0 100644
--- a/oslib-posix.c
+++ b/oslib-posix.c
@@ -35,6 +35,13 @@
extern int daemon(int, int);
#endif
+#if defined(__linux__) && defined(__x86_64__)
+ /* Use 2MB alignment so transparent hugepages can be used by KVM */
+# define QEMU_VMALLOC_ALIGN (512 * 4096)
+#else
+# define QEMU_VMALLOC_ALIGN getpagesize()
+#endif
+
#include "config-host.h"
#include "sysemu.h"
#include "trace.h"
@@ -80,7 +87,12 @@ void *qemu_memalign(size_t alignment, size_t size)
void *qemu_vmalloc(size_t size)
{
void *ptr;
- ptr = qemu_memalign(getpagesize(), size);
+ size_t align = QEMU_VMALLOC_ALIGN;
+
+ if (size < align) {
+ align = getpagesize();
+ }
+ ptr = qemu_memalign(align, size);
trace_qemu_vmalloc(size, ptr);
return ptr;
}
(why it is 64bit-only is a different, unrelated question).
But apparently, THP does not work still, even with 2Mb
alignment: when running a guest, AnonHugePages in
/proc/meminfo stays at 0 - either in kvm mode or in tcg
mode. Any idea why? What else is needed for THP to work?
This is quite a frequent question in #kvm IRC channel,
and I always suggested using -mem-path for this, but
I'm curios why it doesn't work automatically when it
probably should?
Thanks,
/mjt
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] qemu and transparent huge pages
2012-08-15 12:45 [Qemu-devel] qemu and transparent huge pages Michael Tokarev
@ 2012-08-15 12:51 ` Avi Kivity
2012-08-15 14:22 ` Michael Tokarev
0 siblings, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2012-08-15 12:51 UTC (permalink / raw)
To: Michael Tokarev; +Cc: Andrea Arcangeli, qemu-devel
On 08/15/2012 03:45 PM, Michael Tokarev wrote:
>
> But apparently, THP does not work still, even with 2Mb
> alignment: when running a guest, AnonHugePages in
> /proc/meminfo stays at 0 - either in kvm mode or in tcg
> mode. Any idea why? What else is needed for THP to work?
It does for me:
AnonHugePages: 368640 kB
Note the patch you reference doesn't impact thp, just kvm's ability to
propagate them to the shadow page table.
>
> This is quite a frequent question in #kvm IRC channel,
> and I always suggested using -mem-path for this, but
> I'm curios why it doesn't work automatically when it
> probably should?
>
Please provide extra info, like the setting of
/sys/kernel/mm/transparent_hugepage/enabled.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] qemu and transparent huge pages
2012-08-15 12:51 ` Avi Kivity
@ 2012-08-15 14:22 ` Michael Tokarev
2012-08-15 14:26 ` Avi Kivity
0 siblings, 1 reply; 11+ messages in thread
From: Michael Tokarev @ 2012-08-15 14:22 UTC (permalink / raw)
To: Avi Kivity; +Cc: Andrea Arcangeli, qemu-devel
On 15.08.2012 16:51, Avi Kivity wrote:
> On 08/15/2012 03:45 PM, Michael Tokarev wrote:
>>
>> But apparently, THP does not work still, even with 2Mb
>> alignment: when running a guest, AnonHugePages in
>> /proc/meminfo stays at 0 - either in kvm mode or in tcg
>> mode. Any idea why? What else is needed for THP to work?
>
> It does for me:
>
> AnonHugePages: 368640 kB
>
> Note the patch you reference doesn't impact thp, just kvm's ability to
> propagate them to the shadow page table.
>
>>
>> This is quite a frequent question in #kvm IRC channel,
>> and I always suggested using -mem-path for this, but
>> I'm curios why it doesn't work automatically when it
>> probably should?
>>
>
> Please provide extra info, like the setting of
> /sys/kernel/mm/transparent_hugepage/enabled.
That was it - sort of. Default value here is enabled=madvise.
When setting it to always the effect finally started appearing,
so it is actually working.
But can't qemu set MADV_HUGEPAGE flag too, so it works automatically?
Thanks,
/mjt
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] qemu and transparent huge pages
2012-08-15 14:22 ` Michael Tokarev
@ 2012-08-15 14:26 ` Avi Kivity
2012-08-15 15:03 ` Michael Tokarev
0 siblings, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2012-08-15 14:26 UTC (permalink / raw)
To: Michael Tokarev; +Cc: Andrea Arcangeli, qemu-devel
On 08/15/2012 05:22 PM, Michael Tokarev wrote:
>>
>> Please provide extra info, like the setting of
>> /sys/kernel/mm/transparent_hugepage/enabled.
>
> That was it - sort of. Default value here is enabled=madvise.
> When setting it to always the effect finally started appearing,
> so it is actually working.
>
> But can't qemu set MADV_HUGEPAGE flag too, so it works automatically?
It can and should.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] qemu and transparent huge pages
2012-08-15 14:26 ` Avi Kivity
@ 2012-08-15 15:03 ` Michael Tokarev
2012-08-15 15:06 ` Michael Tokarev
2012-09-16 11:19 ` Michael Tokarev
0 siblings, 2 replies; 11+ messages in thread
From: Michael Tokarev @ 2012-08-15 15:03 UTC (permalink / raw)
To: Avi Kivity; +Cc: Andrea Arcangeli, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 512 bytes --]
On 15.08.2012 18:26, Avi Kivity wrote:
> On 08/15/2012 05:22 PM, Michael Tokarev wrote:
>
>>>
>>> Please provide extra info, like the setting of
>>> /sys/kernel/mm/transparent_hugepage/enabled.
>>
>> That was it - sort of. Default value here is enabled=madvise.
>> When setting it to always the effect finally started appearing,
>> so it is actually working.
>>
>> But can't qemu set MADV_HUGEPAGE flag too, so it works automatically?
>
> It can and should.
Something like the attached patch?
Thanks,
/mjt
[-- Attachment #2: 0001-mark-large-vmalloc-areas-as-MADV_HUGEPAGE-and-allow-.patch --]
[-- Type: text/x-patch, Size: 3044 bytes --]
>From 705b3efb8c0cf06cbf087204fc61863c2bbb9e27 Mon Sep 17 00:00:00 2001
From: Michael Tokarev <mjt@tls.msk.ru>
Date: Wed, 15 Aug 2012 18:55:16 +0400
Subject: [PATCH] mark large vmalloc areas as MADV_HUGEPAGE and allow
hugepages on i386
A followup to commit 36b586284e678d.
On linux only (which supports transparent hugepages), explicitly mark
large vmalloced areas with madvise(MADV_HUGEPAGES). The patch changes
previous logic a bit to allow inserting the call to madvise(), but keeps
the code the same (and saves one call to getpagesize() per allocation).
The code also adds #include <sys/mman.h> to the linux-specific part,
to get MADV_HUGEPAGES definition.
While at it, enable transparent hugepages (alignment and the new
explicit marking with madvise()) for 32bit x86 too - it makes good
sense for, say, 32bit userspace on 64bit kernel.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
oslib-posix.c | 35 +++++++++++++++++++++++++----------
1 file changed, 25 insertions(+), 10 deletions(-)
diff --git a/oslib-posix.c b/oslib-posix.c
index dbeb627..ab32d6d 100644
--- a/oslib-posix.c
+++ b/oslib-posix.c
@@ -35,19 +35,23 @@
extern int daemon(int, int);
#endif
-#if defined(__linux__) && defined(__x86_64__)
+#ifdef __linux__
+# include <sys/mman.h>
+
+# if defined(__x86_64__) || defined(__i386__)
/* Use 2 MiB alignment so transparent hugepages can be used by KVM.
Valgrind does not support alignments larger than 1 MiB,
therefore we need special code which handles running on Valgrind. */
-# define QEMU_VMALLOC_ALIGN (512 * 4096)
+# define QEMU_VMALLOC_ALIGN_HUGE (512 * 4096)
# define CONFIG_VALGRIND
-#elif defined(__linux__) && defined(__s390x__)
+# elif defined(__s390x__)
/* Use 1 MiB (segment size) alignment so gmap can be used by KVM. */
-# define QEMU_VMALLOC_ALIGN (256 * 4096)
-#else
-# define QEMU_VMALLOC_ALIGN getpagesize()
+# define QEMU_VMALLOC_ALIGN_HUGE (256 * 4096)
+# endif
#endif
+#define QEMU_VMALLOC_ALIGN getpagesize()
+
#include "config-host.h"
#include "sysemu.h"
#include "trace.h"
@@ -114,7 +118,6 @@ void *qemu_memalign(size_t alignment, size_t size)
void *qemu_vmalloc(size_t size)
{
void *ptr;
- size_t align = QEMU_VMALLOC_ALIGN;
#if defined(CONFIG_VALGRIND)
if (running_on_valgrind < 0) {
@@ -125,10 +128,22 @@ void *qemu_vmalloc(size_t size)
}
#endif
- if (size < align || running_on_valgrind) {
- align = getpagesize();
+#ifdef QEMU_VMALLOC_ALIGN_HUGE
+ /* try to allocate as huge pages if supported and large enough */
+ if (size >= QEMU_VMALLOC_ALIGN_HUGE && !running_on_valgrind) {
+ ptr = qemu_memalign(QEMU_VMALLOC_ALIGN_HUGE, size);
+#ifdef MADV_HUGEPAGE
+#error
+ qemu_madvise(ptr, size, MADV_HUGEPAGE);
+#endif
}
- ptr = qemu_memalign(align, size);
+ else
+#endif
+ {
+ /* if unsupported or small, allocate pagesize-aligned */
+ ptr = qemu_memalign(QEMU_VMALLOC_ALIGN, size);
+ }
+
trace_qemu_vmalloc(size, ptr);
return ptr;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] qemu and transparent huge pages
2012-08-15 15:03 ` Michael Tokarev
@ 2012-08-15 15:06 ` Michael Tokarev
2012-09-16 11:19 ` Michael Tokarev
1 sibling, 0 replies; 11+ messages in thread
From: Michael Tokarev @ 2012-08-15 15:06 UTC (permalink / raw)
To: Avi Kivity; +Cc: Andrea Arcangeli, qemu-devel
On 15.08.2012 19:03, Michael Tokarev wrote:
> +#ifdef MADV_HUGEPAGE
> +#error
Heh. This #error shouldn't be here ofcourse, I were
checking if we really getting there.
> + qemu_madvise(ptr, size, MADV_HUGEPAGE);
> +#endif
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] qemu and transparent huge pages
2012-08-15 15:03 ` Michael Tokarev
2012-08-15 15:06 ` Michael Tokarev
@ 2012-09-16 11:19 ` Michael Tokarev
2012-11-12 15:18 ` Michael Tokarev
1 sibling, 1 reply; 11+ messages in thread
From: Michael Tokarev @ 2012-09-16 11:19 UTC (permalink / raw)
To: Avi Kivity; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 621 bytes --]
So, is the patch okay?
Thanks,
/mjt
On 15.08.2012 19:03, Michael Tokarev wrote:
> On 15.08.2012 18:26, Avi Kivity wrote:
>> On 08/15/2012 05:22 PM, Michael Tokarev wrote:
>>
>>>>
>>>> Please provide extra info, like the setting of
>>>> /sys/kernel/mm/transparent_hugepage/enabled.
>>>
>>> That was it - sort of. Default value here is enabled=madvise.
>>> When setting it to always the effect finally started appearing,
>>> so it is actually working.
>>>
>>> But can't qemu set MADV_HUGEPAGE flag too, so it works automatically?
>>
>> It can and should.
>
> Something like the attached patch?
>
> Thanks,
>
> /mjt
[-- Attachment #2: 0001-mark-large-vmalloc-areas-as-MADV_HUGEPAGE-and-allow-.patch --]
[-- Type: text/x-patch, Size: 3044 bytes --]
>From 705b3efb8c0cf06cbf087204fc61863c2bbb9e27 Mon Sep 17 00:00:00 2001
From: Michael Tokarev <mjt@tls.msk.ru>
Date: Wed, 15 Aug 2012 18:55:16 +0400
Subject: [PATCH] mark large vmalloc areas as MADV_HUGEPAGE and allow
hugepages on i386
A followup to commit 36b586284e678d.
On linux only (which supports transparent hugepages), explicitly mark
large vmalloced areas with madvise(MADV_HUGEPAGES). The patch changes
previous logic a bit to allow inserting the call to madvise(), but keeps
the code the same (and saves one call to getpagesize() per allocation).
The code also adds #include <sys/mman.h> to the linux-specific part,
to get MADV_HUGEPAGES definition.
While at it, enable transparent hugepages (alignment and the new
explicit marking with madvise()) for 32bit x86 too - it makes good
sense for, say, 32bit userspace on 64bit kernel.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
oslib-posix.c | 35 +++++++++++++++++++++++++----------
1 file changed, 25 insertions(+), 10 deletions(-)
diff --git a/oslib-posix.c b/oslib-posix.c
index dbeb627..ab32d6d 100644
--- a/oslib-posix.c
+++ b/oslib-posix.c
@@ -35,19 +35,23 @@
extern int daemon(int, int);
#endif
-#if defined(__linux__) && defined(__x86_64__)
+#ifdef __linux__
+# include <sys/mman.h>
+
+# if defined(__x86_64__) || defined(__i386__)
/* Use 2 MiB alignment so transparent hugepages can be used by KVM.
Valgrind does not support alignments larger than 1 MiB,
therefore we need special code which handles running on Valgrind. */
-# define QEMU_VMALLOC_ALIGN (512 * 4096)
+# define QEMU_VMALLOC_ALIGN_HUGE (512 * 4096)
# define CONFIG_VALGRIND
-#elif defined(__linux__) && defined(__s390x__)
+# elif defined(__s390x__)
/* Use 1 MiB (segment size) alignment so gmap can be used by KVM. */
-# define QEMU_VMALLOC_ALIGN (256 * 4096)
-#else
-# define QEMU_VMALLOC_ALIGN getpagesize()
+# define QEMU_VMALLOC_ALIGN_HUGE (256 * 4096)
+# endif
#endif
+#define QEMU_VMALLOC_ALIGN getpagesize()
+
#include "config-host.h"
#include "sysemu.h"
#include "trace.h"
@@ -114,7 +118,6 @@ void *qemu_memalign(size_t alignment, size_t size)
void *qemu_vmalloc(size_t size)
{
void *ptr;
- size_t align = QEMU_VMALLOC_ALIGN;
#if defined(CONFIG_VALGRIND)
if (running_on_valgrind < 0) {
@@ -125,10 +128,22 @@ void *qemu_vmalloc(size_t size)
}
#endif
- if (size < align || running_on_valgrind) {
- align = getpagesize();
+#ifdef QEMU_VMALLOC_ALIGN_HUGE
+ /* try to allocate as huge pages if supported and large enough */
+ if (size >= QEMU_VMALLOC_ALIGN_HUGE && !running_on_valgrind) {
+ ptr = qemu_memalign(QEMU_VMALLOC_ALIGN_HUGE, size);
+#ifdef MADV_HUGEPAGE
+#error
+ qemu_madvise(ptr, size, MADV_HUGEPAGE);
+#endif
}
- ptr = qemu_memalign(align, size);
+ else
+#endif
+ {
+ /* if unsupported or small, allocate pagesize-aligned */
+ ptr = qemu_memalign(QEMU_VMALLOC_ALIGN, size);
+ }
+
trace_qemu_vmalloc(size, ptr);
return ptr;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] qemu and transparent huge pages
2012-09-16 11:19 ` Michael Tokarev
@ 2012-11-12 15:18 ` Michael Tokarev
2012-11-13 14:30 ` Aurelien Jarno
0 siblings, 1 reply; 11+ messages in thread
From: Michael Tokarev @ 2012-11-12 15:18 UTC (permalink / raw)
To: Avi Kivity; +Cc: qemu-devel
Ping^2 ?
Thanks,
/mjt
16.09.2012 15:19, Michael Tokarev wrote:
> So, is the patch okay?
>
> Thanks,
>
> /mjt
>
> On 15.08.2012 19:03, Michael Tokarev wrote:
>> On 15.08.2012 18:26, Avi Kivity wrote:
>>> On 08/15/2012 05:22 PM, Michael Tokarev wrote:
>>>
>>>>>
>>>>> Please provide extra info, like the setting of
>>>>> /sys/kernel/mm/transparent_hugepage/enabled.
>>>>
>>>> That was it - sort of. Default value here is enabled=madvise.
>>>> When setting it to always the effect finally started appearing,
>>>> so it is actually working.
>>>>
>>>> But can't qemu set MADV_HUGEPAGE flag too, so it works automatically?
>>>
>>> It can and should.
>>
>> Something like the attached patch?
>>
>> Thanks,
>>
>> /mjt
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] qemu and transparent huge pages
2012-11-12 15:18 ` Michael Tokarev
@ 2012-11-13 14:30 ` Aurelien Jarno
2012-11-13 16:38 ` Michael Tokarev
0 siblings, 1 reply; 11+ messages in thread
From: Aurelien Jarno @ 2012-11-13 14:30 UTC (permalink / raw)
To: Michael Tokarev; +Cc: Avi Kivity, qemu-devel
Isn't ad0b5321f1f797274603ebbe20108b0750baee94 enough?
On Mon, Nov 12, 2012 at 07:18:49PM +0400, Michael Tokarev wrote:
> Ping^2 ?
>
> Thanks,
>
> /mjt
>
> 16.09.2012 15:19, Michael Tokarev wrote:
> > So, is the patch okay?
> >
> > Thanks,
> >
> > /mjt
> >
> > On 15.08.2012 19:03, Michael Tokarev wrote:
> >> On 15.08.2012 18:26, Avi Kivity wrote:
> >>> On 08/15/2012 05:22 PM, Michael Tokarev wrote:
> >>>
> >>>>>
> >>>>> Please provide extra info, like the setting of
> >>>>> /sys/kernel/mm/transparent_hugepage/enabled.
> >>>>
> >>>> That was it - sort of. Default value here is enabled=madvise.
> >>>> When setting it to always the effect finally started appearing,
> >>>> so it is actually working.
> >>>>
> >>>> But can't qemu set MADV_HUGEPAGE flag too, so it works automatically?
> >>>
> >>> It can and should.
> >>
> >> Something like the attached patch?
> >>
> >> Thanks,
> >>
> >> /mjt
> >
>
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] qemu and transparent huge pages
2012-11-13 14:30 ` Aurelien Jarno
@ 2012-11-13 16:38 ` Michael Tokarev
0 siblings, 0 replies; 11+ messages in thread
From: Michael Tokarev @ 2012-11-13 16:38 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: Avi Kivity, qemu-devel
On 13.11.2012 18:30, Aurelien Jarno wrote:
> Isn't ad0b5321f1f797274603ebbe20108b0750baee94 enough?
Oh. It has been applied. I expected it will be ignored
just like my patch has been.
No, it is not enough: that patch alone does nothing for
the alignment on at least x86, which is necessary for
hugepages to work. My patch _also_ fixes alignment issue.
Where to apply MADV_HUGEPAGE is a different question.
I don't know which layer it is best to apply it to.
Thanks,
/mjt
> On Mon, Nov 12, 2012 at 07:18:49PM +0400, Michael Tokarev wrote:
>> Ping^2 ?
>>
>> Thanks,
>>
>> /mjt
>>
>> 16.09.2012 15:19, Michael Tokarev wrote:
>>> So, is the patch okay?
>>>
>>> Thanks,
>>>
>>> /mjt
>>>
>>> On 15.08.2012 19:03, Michael Tokarev wrote:
>>>> On 15.08.2012 18:26, Avi Kivity wrote:
>>>>> On 08/15/2012 05:22 PM, Michael Tokarev wrote:
>>>>>
>>>>>>>
>>>>>>> Please provide extra info, like the setting of
>>>>>>> /sys/kernel/mm/transparent_hugepage/enabled.
>>>>>>
>>>>>> That was it - sort of. Default value here is enabled=madvise.
>>>>>> When setting it to always the effect finally started appearing,
>>>>>> so it is actually working.
>>>>>>
>>>>>> But can't qemu set MADV_HUGEPAGE flag too, so it works automatically?
>>>>>
>>>>> It can and should.
>>>>
>>>> Something like the attached patch?
>>>>
>>>> Thanks,
>>>>
>>>> /mjt
>>>
>>
>>
>>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-11-13 16:39 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15 12:45 [Qemu-devel] qemu and transparent huge pages Michael Tokarev
2012-08-15 12:51 ` Avi Kivity
2012-08-15 14:22 ` Michael Tokarev
2012-08-15 14:26 ` Avi Kivity
2012-08-15 15:03 ` Michael Tokarev
2012-08-15 15:06 ` Michael Tokarev
2012-09-16 11:19 ` Michael Tokarev
2012-11-12 15:18 ` Michael Tokarev
2012-11-13 14:30 ` Aurelien Jarno
2012-11-13 16:38 ` Michael Tokarev
-- strict thread matches above, loose matches on Subject: below --
2012-08-15 12:40 Michael Tokarev
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).