public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KSM memory saving amount
@ 2011-09-09  6:38 Mihamina Rakotomandimby
  2011-09-09 16:52 ` Thomas Treutner
  2011-09-09 17:06 ` Marcelo Tosatti
  0 siblings, 2 replies; 4+ messages in thread
From: Mihamina Rakotomandimby @ 2011-09-09  6:38 UTC (permalink / raw)
  To: kvm

Hi all,

Running an Ubuntu Natty where I launched 3 Xubuntu and 1 win 7, I cat see:
/sys/kernel/mm/ksm/full_scans: 34
/sys/kernel/mm/ksm/pages_shared: 8020
/sys/kernel/mm/ksm/pages_sharing: 36098
/sys/kernel/mm/ksm/pages_to_scan: 100
/sys/kernel/mm/ksm/pages_unshared: 247109
/sys/kernel/mm/ksm/pages_volatile: 32716
/sys/kernel/mm/ksm/run: 1
/sys/kernel/mm/ksm/sleep_millisecs: 200

I would like to evaluate the memory amount:
How many byte is a page?

-- 
RMA.

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

* Re: KSM memory saving amount
  2011-09-09  6:38 KSM memory saving amount Mihamina Rakotomandimby
@ 2011-09-09 16:52 ` Thomas Treutner
  2011-09-09 18:19   ` Dan VerWeire
  2011-09-09 17:06 ` Marcelo Tosatti
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Treutner @ 2011-09-09 16:52 UTC (permalink / raw)
  To: Mihamina Rakotomandimby; +Cc: kvm

Am 09.09.2011 08:38, schrieb Mihamina Rakotomandimby:
> How many byte is a page?

Typically, unless you use hugepages, a page is 4 KiB = 4096 Byte.

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

* Re: KSM memory saving amount
  2011-09-09  6:38 KSM memory saving amount Mihamina Rakotomandimby
  2011-09-09 16:52 ` Thomas Treutner
@ 2011-09-09 17:06 ` Marcelo Tosatti
  1 sibling, 0 replies; 4+ messages in thread
From: Marcelo Tosatti @ 2011-09-09 17:06 UTC (permalink / raw)
  To: Mihamina Rakotomandimby; +Cc: kvm

On Fri, Sep 09, 2011 at 09:38:23AM +0300, Mihamina Rakotomandimby wrote:
> Hi all,
> 
> Running an Ubuntu Natty where I launched 3 Xubuntu and 1 win 7, I cat see:
> /sys/kernel/mm/ksm/full_scans: 34
> /sys/kernel/mm/ksm/pages_shared: 8020
> /sys/kernel/mm/ksm/pages_sharing: 36098
> /sys/kernel/mm/ksm/pages_to_scan: 100
> /sys/kernel/mm/ksm/pages_unshared: 247109
> /sys/kernel/mm/ksm/pages_volatile: 32716
> /sys/kernel/mm/ksm/run: 1
> /sys/kernel/mm/ksm/sleep_millisecs: 200
> 
> I would like to evaluate the memory amount:
> How many byte is a page?

4096.


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

* Re: KSM memory saving amount
  2011-09-09 16:52 ` Thomas Treutner
@ 2011-09-09 18:19   ` Dan VerWeire
  0 siblings, 0 replies; 4+ messages in thread
From: Dan VerWeire @ 2011-09-09 18:19 UTC (permalink / raw)
  Cc: Mihamina Rakotomandimby, kvm

On Fri, Sep 9, 2011 at 12:52 PM, Thomas Treutner <thomas@scripty.at> wrote:
> Am 09.09.2011 08:38, schrieb Mihamina Rakotomandimby:
>>
>> How many byte is a page?
>
> Typically, unless you use hugepages, a page is 4 KiB = 4096 Byte.
> --
> 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
>

I wrote a bash script which calculates the KSM savings. I have posted it here:

 https://gist.github.com/1206923

I can not guarantee its accuracy. It was the best I could do with the
knowledge I had. The results seem reasonable to me though.

Hope this is useful to someone.

Dan VerWeire

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

end of thread, other threads:[~2011-09-09 18:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-09  6:38 KSM memory saving amount Mihamina Rakotomandimby
2011-09-09 16:52 ` Thomas Treutner
2011-09-09 18:19   ` Dan VerWeire
2011-09-09 17:06 ` Marcelo Tosatti

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