public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KSM For All Via LD_PRELOAD?
@ 2010-06-08 18:43 Gordan Bobic
  2010-06-09  8:33 ` Dor Laor
  2010-06-10  7:44 ` Jes Sorensen
  0 siblings, 2 replies; 9+ messages in thread
From: Gordan Bobic @ 2010-06-08 18:43 UTC (permalink / raw)
  To: kvm

Is this plausible?

I'm trying to work out if it's even worth considering this approach to 
enable all memory used by in a system to be open to KSM page merging, 
rather than only memory used by specific programs aware of it (e.g. 
kvm/qemu).

Something like this would address the fact that container based 
virtualization (OpenVZ, VServer, LXC) cannot benefit from KSM.

What I'm thinking about is somehow intercepting malloc() and wrapping it 
so that all malloc()-ed memory gets madvise()-d as well.

Has this been done?

Or is this too crazy an idea?

Gordan

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

end of thread, other threads:[~2010-06-10 11:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-08 18:43 KSM For All Via LD_PRELOAD? Gordan Bobic
2010-06-09  8:33 ` Dor Laor
2010-06-09  8:56   ` Paolo Bonzini
2010-06-09 10:31     ` Gordan Bobic
2010-06-10  7:33       ` Dor Laor
2010-06-10  9:03         ` Gordan Bobic
2010-06-10  7:44 ` Jes Sorensen
2010-06-10  9:09   ` Gordan Bobic
2010-06-10 11:27     ` Jes Sorensen

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