public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Re: KSM not working on 2.6.28.7 and qemu-kvm 0.12.2 ?
       [not found] <4B81A70A.1010407@gilouweb.com>
@ 2010-02-22  5:40 ` Nikola Ciprich
  2010-02-22 21:02   ` Gilles PIETRI
  0 siblings, 1 reply; 3+ messages in thread
From: Nikola Ciprich @ 2010-02-22  5:40 UTC (permalink / raw)
  To: Gilles PIETRI; +Cc: kvm, nikola.ciprich

Hi Gilles, maybe You have the same problem I experienced?
see http://www.mail-archive.com/kvm@vger.kernel.org/msg28572.html
nik

On Sun, Feb 21, 2010 at 10:35:06PM +0100, Gilles PIETRI wrote:
> Hi,
> 
> I'm running a 2.6.32.7 kernel with KSM enabled (CONFIG_KSM=y), with
> qemu-kvm 0.12.2 that has support for KSM (exec.c checks for
> MADV_MERGEABLE)..
> 
> So I have KSM running, /sys/kernel/mm/ksm/run is at 1, and after a
> few hours running a dozen of VMs, many of them running the same
> OS/base image, I see no page being shared, KSM seems inactive.
> 
> Values are pretty much to their default value, and it seems KSM is
> simply not working.. I see ksmd in the process list though, but here
> are the sysfs values reported:
> ==> /sys/kernel/mm/ksm/full_scans <==
> 0
> 
> ==> /sys/kernel/mm/ksm/max_kernel_pages <==
> 1027257
> 
> ==> /sys/kernel/mm/ksm/pages_shared <==
> 0
> 
> ==> /sys/kernel/mm/ksm/pages_sharing <==
> 0
> 
> ==> /sys/kernel/mm/ksm/pages_to_scan <==
> 100
> 
> ==> /sys/kernel/mm/ksm/pages_unshared <==
> 0
> 
> ==> /sys/kernel/mm/ksm/pages_volatile <==
> 0
> 
> ==> /sys/kernel/mm/ksm/run <==
> 1
> 
> ==> /sys/kernel/mm/ksm/sleep_millisecs <==
> 20
> 
> Any clues?
> 
> Cheers,
> Gilou
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
-------------------------------------
Ing. Nikola CIPRICH
LinuxBox.cz, s.r.o.
28. rijna 168, 709 01 Ostrava

tel.:   +420 596 603 142
fax:    +420 596 621 273
mobil:  +420 777 093 799
www.linuxbox.cz

mobil servis: +420 737 238 656
email servis: servis@linuxbox.cz
-------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: KSM not working on 2.6.28.7 and qemu-kvm 0.12.2 ?
  2010-02-22  5:40 ` KSM not working on 2.6.28.7 and qemu-kvm 0.12.2 ? Nikola Ciprich
@ 2010-02-22 21:02   ` Gilles PIETRI
  2010-02-23 18:21     ` Gilles PIETRI
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles PIETRI @ 2010-02-22 21:02 UTC (permalink / raw)
  To: Nikola Ciprich; +Cc: kvm

Le 22/02/2010 06:40, Nikola Ciprich a écrit :
> Hi Gilles, maybe You have the same problem I experienced?
> see http://www.mail-archive.com/kvm@vger.kernel.org/msg28572.html
> nik
> 

Hi,

The linux headers do include the MADV_MERGEABLE settings, and the libc 
is the debian one which happened to work fine earlier in this regard. 
Anyway I still added the flags just to make sure, and nothing more happens.

Cheers,

Gilou

> On Sun, Feb 21, 2010 at 10:35:06PM +0100, Gilles PIETRI wrote:
>> Hi,
>>
>> I'm running a 2.6.32.7 kernel with KSM enabled (CONFIG_KSM=y), with
>> qemu-kvm 0.12.2 that has support for KSM (exec.c checks for
>> MADV_MERGEABLE)..
>>
>> So I have KSM running, /sys/kernel/mm/ksm/run is at 1, and after a
>> few hours running a dozen of VMs, many of them running the same
>> OS/base image, I see no page being shared, KSM seems inactive.
>>
>> Values are pretty much to their default value, and it seems KSM is
>> simply not working.. I see ksmd in the process list though, but here
>> are the sysfs values reported:
>> ==> /sys/kernel/mm/ksm/full_scans <==
>> 0
>>
>> ==> /sys/kernel/mm/ksm/max_kernel_pages <==
>> 1027257
>>
>> ==> /sys/kernel/mm/ksm/pages_shared <==
>> 0
>>
>> ==> /sys/kernel/mm/ksm/pages_sharing <==
>> 0
>>
>> ==> /sys/kernel/mm/ksm/pages_to_scan <==
>> 100
>>
>> ==> /sys/kernel/mm/ksm/pages_unshared <==
>> 0
>>
>> ==> /sys/kernel/mm/ksm/pages_volatile <==
>> 0
>>
>> ==> /sys/kernel/mm/ksm/run <==
>> 1
>>
>> ==> /sys/kernel/mm/ksm/sleep_millisecs <==
>> 20
>>
>> Any clues?
>>
>> Cheers,
>> Gilou
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: KSM not working on 2.6.28.7 and qemu-kvm 0.12.2 ?
  2010-02-22 21:02   ` Gilles PIETRI
@ 2010-02-23 18:21     ` Gilles PIETRI
  0 siblings, 0 replies; 3+ messages in thread
From: Gilles PIETRI @ 2010-02-23 18:21 UTC (permalink / raw)
  To: Nikola Ciprich; +Cc: kvm

Le 22/02/2010 22:02, Gilles PIETRI a écrit :
> Le 22/02/2010 06:40, Nikola Ciprich a écrit :
>> Hi Gilles, maybe You have the same problem I experienced?
>> see http://www.mail-archive.com/kvm@vger.kernel.org/msg28572.html
>> nik
>>
> 
> Hi,
> 
> The linux headers do include the MADV_MERGEABLE settings, and the libc 
> is the debian one which happened to work fine earlier in this regard. 
> Anyway I still added the flags just to make sure, and nothing more happens.
> 
> Cheers,
> 
> Gilou

OK, I had a doubt, so I did it again, and made sure there wasn't a 
chance for the MADV_* to be missing... And it was the issue actually.. 
Not sure what happened there, given the linux headers are here.. It 
works fine finally, thanks Nikola for your pointer.

Regards,

Gilou

> 
>> On Sun, Feb 21, 2010 at 10:35:06PM +0100, Gilles PIETRI wrote:
>>> Hi,
>>>
>>> I'm running a 2.6.32.7 kernel with KSM enabled (CONFIG_KSM=y), with
>>> qemu-kvm 0.12.2 that has support for KSM (exec.c checks for
>>> MADV_MERGEABLE)..
>>>
>>> So I have KSM running, /sys/kernel/mm/ksm/run is at 1, and after a
>>> few hours running a dozen of VMs, many of them running the same
>>> OS/base image, I see no page being shared, KSM seems inactive.
>>>
>>> Values are pretty much to their default value, and it seems KSM is
>>> simply not working.. I see ksmd in the process list though, but here
>>> are the sysfs values reported:
>>> ==> /sys/kernel/mm/ksm/full_scans <==
>>> 0
>>>
>>> ==> /sys/kernel/mm/ksm/max_kernel_pages <==
>>> 1027257
>>>
>>> ==> /sys/kernel/mm/ksm/pages_shared <==
>>> 0
>>>
>>> ==> /sys/kernel/mm/ksm/pages_sharing <==
>>> 0
>>>
>>> ==> /sys/kernel/mm/ksm/pages_to_scan <==
>>> 100
>>>
>>> ==> /sys/kernel/mm/ksm/pages_unshared <==
>>> 0
>>>
>>> ==> /sys/kernel/mm/ksm/pages_volatile <==
>>> 0
>>>
>>> ==> /sys/kernel/mm/ksm/run <==
>>> 1
>>>
>>> ==> /sys/kernel/mm/ksm/sleep_millisecs <==
>>> 20
>>>
>>> Any clues?
>>>
>>> Cheers,
>>> Gilou
>>> -- 
>>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-23 18:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4B81A70A.1010407@gilouweb.com>
2010-02-22  5:40 ` KSM not working on 2.6.28.7 and qemu-kvm 0.12.2 ? Nikola Ciprich
2010-02-22 21:02   ` Gilles PIETRI
2010-02-23 18:21     ` Gilles PIETRI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox