linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh.dickins@tiscali.co.uk>
To: Moussa Ba <moussa.a.ba@gmail.com>
Cc: Izik Eidus <ieidus@redhat.com>,
	Andrea Arcangeli <aarcange@redhat.com>,
	Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
	linux-mm@kvack.org, jaredeh@gmail.com
Subject: Re: improving checksum cpu consumption in ksm
Date: Sat, 5 Sep 2009 12:33:52 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0909051225450.5114@sister.anvils> (raw)
In-Reply-To: <7928e7bd0909041529i6d745955paa636206b9409587@mail.gmail.com>

On Fri, 4 Sep 2009, Moussa Ba wrote:

> Just to add to the discussion, we have also seen a high cpu usage for
> KSM.  In our case however it is more serious as the system that KSM is
> running on is battery powered  with a weaker processor.  With KSM
> constantly running, the effect on the battery life is significant.

Sounds like it would be a good idea for us to throttle back ksmd
when the system is otherwise idle.  Though quite a bit of thought
should go into how we decide "idle" for that.

> 
> I like the idea of dirty bit tracking as it would obviate the need to
> rehash once we know the page has not been dirtied.  We have been
> working on a patch that adds dirty bit clearing from user space,
> similar to the clear_refs entry under /proc/pid/.  In our instance we
> use this mechanism to measure page accesses and write frequency on
> ANONYMOUS pages, file backed pages or both.  Could this potentially
> pose a problem if KSM decides to use that mechanism for page state
> tracking?

Yes, KSM's use of the bit would interfere with your statistics, and
your use of the bit would interfere with KSM's efficiency: better
not use them both together (or keep yours off MADV_MERGEABLE areas).

Hugh

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2009-09-05 11:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-28 20:21 Izik Eidus
2009-08-31 22:49 ` Hugh Dickins
2009-09-01 12:12   ` Izik Eidus
2009-09-03 12:36   ` Izik Eidus
2009-09-03 15:20     ` Hugh Dickins
2009-09-03 15:42       ` Izik Eidus
2009-09-04 22:29       ` Moussa Ba
2009-09-05 11:33         ` Hugh Dickins [this message]
2009-09-12 16:33       ` Izik Eidus

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=Pine.LNX.4.64.0909051225450.5114@sister.anvils \
    --to=hugh.dickins@tiscali.co.uk \
    --cc=aarcange@redhat.com \
    --cc=ieidus@redhat.com \
    --cc=jaredeh@gmail.com \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=linux-mm@kvack.org \
    --cc=moussa.a.ba@gmail.com \
    /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