public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* KSM kernel interface
@ 2011-02-19  4:07 supercilious.dude
  2011-02-19 18:54 ` Hugh Dickins
  0 siblings, 1 reply; 4+ messages in thread
From: supercilious.dude @ 2011-02-19  4:07 UTC (permalink / raw)
  To: linux-kernel

Hi,

Is there a way to enable KSM globally for all eligible pages in the 
system such that applications need not call madvise() themselves? If 
not, is there a way to do so on behalf of a particular application 
without an ugly LD_PRELOAD hack?

Perhaps there is a small kernel modification that might make this 
possible or provide a sysfs flag that enables it (off by default of course)?

I read through the code very briefly, and as far as I can tell, I need 
to add the VM_MERGEABLE flag to all eligible VMAs at the time they are 
created and also __ksm_enter() the associated mm_struct at creation 
also. Would that work?

Thanks


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

end of thread, other threads:[~2011-02-20  2:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-19  4:07 KSM kernel interface supercilious.dude
2011-02-19 18:54 ` Hugh Dickins
2011-02-19 19:22   ` richard -rw- weinberger
2011-02-20  2:45   ` supercilious.dude

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