lkml.org 
[lkml]   [2011]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectKSM kernel interface
Date
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



\
 
 \ /
  Last update: 2011-02-19 05:13    [W:0.042 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site