linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Davidlohr Bueso <dave@stgolabs.net>
To: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>,
	linux-mm@kvack.org, Petr Holasek <pholasek@redhat.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH 1/5] mm: add cond_resched() to the rmap walks
Date: Mon, 2 Nov 2015 12:31:28 -0800	[thread overview]
Message-ID: <20151102203128.GC1707@linux-uzut.site> (raw)
In-Reply-To: <1446483691-8494-2-git-send-email-aarcange@redhat.com>

On Mon, 02 Nov 2015, Andrea Arcangeli wrote:

>The rmap walk must reach every possible mapping of the page, so if a
>page is heavily shared (no matter if it's KSM, anon, pagecache) there
>will be tons of entries to walk through. All optimizations with
>prio_tree, anon_vma chains, interval tree, helps to find the right
>virtual mapping faster, but if there are lots of virtual mappings, all
>mapping must still be walked through.
>
>The biggest cost is for the IPIs, but regardless of the IPIs, it's
>generally safer to keep these cond_resched() in all cases, as even if
>we massively reduce the number of IPIs, the number of entries to walk
>IPI-less may still be large and no entry can be possibly skipped in
>the page migration case.
>
>Acked-by: Hugh Dickins <hughd@google.com>
>Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>

Acked-by: Davidlohr Bueso <dbueso@suse.de>

--
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:[~2015-11-02 20:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-02 17:01 [PATCH 0/5] KSM updates v2 Andrea Arcangeli
2015-11-02 17:01 ` [PATCH 1/5] mm: add cond_resched() to the rmap walks Andrea Arcangeli
2015-11-02 20:31   ` Davidlohr Bueso [this message]
2015-11-02 17:01 ` [PATCH 2/5] ksm: don't fail stable tree lookups if walking over stale stable_nodes Andrea Arcangeli
2015-11-02 17:01 ` [PATCH 3/5] ksm: use the helper method to do the hlist_empty check Andrea Arcangeli
2015-11-02 17:01 ` [PATCH 4/5] ksm: use find_mergeable_vma in try_to_merge_with_ksm_page Andrea Arcangeli
2015-11-02 17:01 ` [PATCH 5/5] ksm: unstable_tree_search_insert error checking cleanup Andrea Arcangeli

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=20151102203128.GC1707@linux-uzut.site \
    --to=dave@stgolabs.net \
    --cc=aarcange@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=hughd@google.com \
    --cc=linux-mm@kvack.org \
    --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).