linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Joonsoo Kim <js1304@gmail.com>
To: David Rientjes <rientjes@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Mel Gorman <mgorman@suse.de>, Rik van Riel <riel@redhat.com>,
	Vlastimil Babka <vbabka@suse.cz>,
	Joonsoo Kim <iamjoonsoo.kim@lge.com>,
	Greg Thelen <gthelen@google.com>, Hugh Dickins <hughd@google.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [patch] mm, thp: do not perform sync compaction on pagefault
Date: Thu, 1 May 2014 15:39:12 +0900	[thread overview]
Message-ID: <CAAmzW4Nj04rbdoe8dkA-r14j+5iStUxFLM5BEkTmgEB+tHtsUA@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1404301744580.8415@chino.kir.corp.google.com>

2014-05-01 9:45 GMT+09:00 David Rientjes <rientjes@google.com>:
> Synchronous memory compaction can be very expensive: it can iterate an enormous
> amount of memory without aborting and it can wait on page locks and writeback to
> complete if a pageblock cannot be defragmented.
> Unfortunately, it's too expensive for pagefault for transparent hugepages and
> it's much better to simply fallback to pages.  On 128GB machines, we find that
> synchronous memory compaction can take O(seconds) for a single thp fault.

Hello,

AFAIK, synchronous compaction doesn't wait the page on writeback.
sync compaction pass MIGRATE_SYNC_LIGHT for migrate_mode,
instead of MIGRATE_SYNC. It results in skipping the page on writeback.

Thanks.

--
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:[~2014-05-01  6:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01  0:45 David Rientjes
2014-05-01  6:39 ` Joonsoo Kim [this message]

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=CAAmzW4Nj04rbdoe8dkA-r14j+5iStUxFLM5BEkTmgEB+tHtsUA@mail.gmail.com \
    --to=js1304@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=gthelen@google.com \
    --cc=hughd@google.com \
    --cc=iamjoonsoo.kim@lge.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@suse.de \
    --cc=riel@redhat.com \
    --cc=rientjes@google.com \
    --cc=vbabka@suse.cz \
    /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