linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: CAI Qian <caiqian@redhat.com>
To: Andrea Arcangeli <aarcange@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
	Adam Litke <agl@us.ibm.com>, Avi Kivity <avi@redhat.com>,
	Hugh Dickins <hugh.dickins@tiscali.co.uk>,
	Rik van Riel <riel@redhat.com>, Mel Gorman <mel@csn.ul.ie>,
	Dave Hansen <dave@linux.vnet.ibm.com>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Ingo Molnar <mingo@elte.hu>, Mike Travis <travis@sgi.com>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Christoph Lameter <cl@linux-foundation.org>,
	Chris Wright <chrisw@sous-sol.org>,
	bpicco@redhat.com,
	KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Balbir Singh <balbir@linux.vnet.ibm.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Johannes Weiner <hannes@cmpxchg.org>,
	Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>,
	Chris Mason <chris.mason@oracle.com>,
	Borislav Petkov <bp@alien8.de>,
	linux-mm@kvack.org,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 00 of 66] Transparent Hugepage Support #32
Date: Thu, 4 Nov 2010 04:41:12 -0400 (EDT)	[thread overview]
Message-ID: <2080208615.1392881288860072684.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> (raw)
In-Reply-To: <690735095.1385111288840247360.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>

Thank Andrea for pointing out to me there are ongoing works for KSM and THP integration. Sorry for the noise.

CAI Qian

----- caiqian@redhat.com wrote:

> There were some changes of behaviours with THP and KSM statistics
> demonstrated by this program, http://people.redhat.com/qcai/ksm01.c.
> 
> There are 3 programs (A, B ,C) to allocate 128M memory each using KSM.
> A has memory content = 'c'.
> B has memory content = 'a'.
> C has memory content = 'a'.
> Then without THP,
> pages_shared = 2
> pages_sharing = 98285
> pages_sharing = 98292
> pages_unshared = 0
> pages_volatile = 17
> pages_to_scan = 98304
> sleep_millisecs = 0
> with THP,
> pages_shared is 2.
> pages_sharing is 18422.
> pages_unshared is 0.
> pages_volatile is 8.
> 
> Later,
> A has memory content = 'c'
> B has memory content = 'b'
> C has memory content = 'a'.
> Then without THP,
> pages_shared = 3
> pages_sharing = 98296
> pages_unshared = 0
> pages_volatile = 5
> with THP,
> pages_shared = 3
> pages_sharing = 16358
> pages_unshared = 0
> pages_volatile = 23
> 
> Later,
> A has memory content = 'd'
> B has memory content = 'd'
> C has memory content = 'd'
> Then without THP,
> pages_shared = 1
> pages_sharing = 98274
> pages_unshared = 0
> pages_volatile = 29
> with THP,
> pages_shared = 1
> pages_sharing = 8668
> pages_unshared = 0
> pages_volatile = 35
> 
> Finally,
> A changes one page to 'e'
> Then without THP,
> pages_shared = 1
> pages_sharing = 98274
> pages_unshared = 1
> pages_volatile = 28
> with THP,
> pages_shared = 1
> pages_sharing = 8163
> pages_unshared = 1
> pages_volatile = 27
> 
> Are those differences for pages_sharing between with and without THP
> are expected?
> 
> CAI Qian

--
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/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2010-11-04  8:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1562100965.1384941288839981384.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
2010-11-04  3:10 ` [PATCH 00 of 66] Transparent Hugepage Support #32 caiqian
2010-11-04  8:41   ` CAI Qian [this message]
2010-11-04 16:30     ` Andrea Arcangeli
2010-11-03 15:27 Andrea Arcangeli
2010-11-18 16:39 ` Mel Gorman

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=2080208615.1392881288860072684.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com \
    --to=caiqian@redhat.com \
    --cc=aarcange@redhat.com \
    --cc=agl@us.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=avi@redhat.com \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=benh@kernel.crashing.org \
    --cc=bp@alien8.de \
    --cc=bpicco@redhat.com \
    --cc=chris.mason@oracle.com \
    --cc=chrisw@sous-sol.org \
    --cc=cl@linux-foundation.org \
    --cc=dave@linux.vnet.ibm.com \
    --cc=hannes@cmpxchg.org \
    --cc=hugh.dickins@tiscali.co.uk \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mel@csn.ul.ie \
    --cc=mingo@elte.hu \
    --cc=mst@redhat.com \
    --cc=mtosatti@redhat.com \
    --cc=nishimura@mxp.nes.nec.co.jp \
    --cc=peterz@infradead.org \
    --cc=riel@redhat.com \
    --cc=torvalds@linux-foundation.org \
    --cc=travis@sgi.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;
as well as URLs for NNTP newsgroup(s).