KSM memory saving amount
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?
Signature · 1 line
RMA.
Am 09.09.2011 08:38, schrieb Mihamina Rakotomandimby:
Quoted 1 line
How many byte is a page?
Typically, unless you use hugepages, a page is 4 KiB = 4096 Byte.
Quoted 10 lines · Thomas Treutner
Am 09.09.2011 08:38, schrieb Mihamina Rakotomandimby:
Quoted 2 lines
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 [email protected]
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
Quoted 12 lines · Mihamina Rakotomandimby
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
Quoted 2 lines
I would like to evaluate the memory amount:
How many byte is a page?
4096.