linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrea Arcangeli <aarcange@redhat.com>
To: Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org
Cc: Evgheni Dereveanchin <ederevea@redhat.com>,
	Andrey Ryabinin <aryabinin@virtuozzo.com>,
	Petr Holasek <pholasek@redhat.com>,
	Hugh Dickins <hughd@google.com>,
	Arjan van de Ven <arjan@linux.intel.com>,
	Davidlohr Bueso <dave@stgolabs.net>,
	Gavin Guo <gavin.guo@canonical.com>,
	Jay Vosburgh <jay.vosburgh@canonical.com>,
	Mel Gorman <mgorman@techsingularity.net>,
	Dan Carpenter <dan.carpenter@oracle.com>
Subject: [PATCH 0/3] KSMscale cleanup/optimizations
Date: Thu, 18 May 2017 19:37:18 +0200	[thread overview]
Message-ID: <20170518173721.22316-1-aarcange@redhat.com> (raw)

Hello,

This is incremental with the two fixes already in -mm.

There are no fixes here it's just minor cleanups and optimizations.

1/3 removes makes the "fix" for the stale stable_node fall in the
standard case without introducing new cases. Setting stable_node to
NULL was marginally safer, but stale pointer is still wiped from the
caller, this looks cleaner.

2/3 should fix the false positive from Dan's static checker. Dan could
you check if it still complains?

3/3 is a microoptimization to apply the the refile of future merge
candidate dups at the head of the chain in all cases and to skip it in
one case where we did it and but it was a noop (to avoid checking if
it was already at the head but now we've to check it anyway so it got
optimized away).

Andrea Arcangeli (3):
  ksm: cleanup stable_node chain collapse case
  ksm: swap the two output parameters of chain/chain_prune
  ksm: optimize refile of stable_node_dup at the head of the chain

 mm/ksm.c | 163 ++++++++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 103 insertions(+), 60 deletions(-)

--
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:[~2017-05-18 17:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 17:37 Andrea Arcangeli [this message]
2017-05-18 17:37 ` [PATCH 1/3] ksm: cleanup stable_node chain collapse case Andrea Arcangeli
2017-05-18 17:37 ` [PATCH 2/3] ksm: swap the two output parameters of chain/chain_prune Andrea Arcangeli
2017-05-18 17:37 ` [PATCH 3/3] ksm: optimize refile of stable_node_dup at the head of the chain Andrea Arcangeli
2017-05-18 20:35 ` [PATCH 0/3] KSMscale cleanup/optimizations Dan Carpenter

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=20170518173721.22316-1-aarcange@redhat.com \
    --to=aarcange@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=arjan@linux.intel.com \
    --cc=aryabinin@virtuozzo.com \
    --cc=dan.carpenter@oracle.com \
    --cc=dave@stgolabs.net \
    --cc=ederevea@redhat.com \
    --cc=gavin.guo@canonical.com \
    --cc=hughd@google.com \
    --cc=jay.vosburgh@canonical.com \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@techsingularity.net \
    --cc=pholasek@redhat.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).