From: supercilious.dude@gmail.com
To: linux-kernel@vger.kernel.org
Subject: KSM kernel interface
Date: Sat, 19 Feb 2011 04:07:41 +0000 [thread overview]
Message-ID: <ijnfme$snp$1@dough.gmane.org> (raw)
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
next reply other threads:[~2011-02-19 4:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-19 4:07 supercilious.dude [this message]
2011-02-19 18:54 ` KSM kernel interface Hugh Dickins
2011-02-19 19:22 ` richard -rw- weinberger
2011-02-20 2:45 ` supercilious.dude
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ijnfme$snp$1@dough.gmane.org' \
--to=supercilious.dude@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox