linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: Andrea Arcangeli <aarcange@redhat.com>
Cc: linux-mm@kvack.org, Mel Gorman <mel@csn.ul.ie>,
	Johannes Weiner <jweiner@redhat.com>
Subject: Re: [PATCH] thp: mremap support and TLB optimization
Date: Fri, 11 Mar 2011 10:16:23 -0500	[thread overview]
Message-ID: <4D7A3CC7.1010008@redhat.com> (raw)
In-Reply-To: <20110311020410.GH5641@random.random>

On 03/10/2011 09:04 PM, Andrea Arcangeli wrote:
> Hello everyone,
>
> I've been wondering why mremap is sending one IPI for each page that
> it moves. I tried to remove that so we send an IPI for each
> vma/syscall (not for each pte/page). I also added native THP support
> without calling split_huge_page unconditionally if both the source and
> destination alignment allows a pmd_trans_huge to be preserved (the
> mremap extension and truncation already preserved existing hugepages
> but the move into new place didn't yet). If the destination alignment
> isn't ok, split_huge_page is unavoidable but that is an
> userland/hardware limitation, not really something we can optimize
> further in the kernel.
>
> I've no real numbers yet (volanomark results are mostly unchanged,
> it's a tinybit faster but it may be measurement error, and it doesn't
> seem to call mremap enough, but the thp_split number in /proc/vmstat
> seem to go down close to zero, maybe other JIT workloads will
> benefit?).

Reviewed-by: Rik van Riel <riel@redhat.com>

-- 
All rights reversed

--
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 internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2011-03-11 15:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11  2:04 [PATCH] thp: mremap support and TLB optimization Andrea Arcangeli
2011-03-11 15:16 ` Rik van Riel [this message]
2011-03-11 19:44 ` Hugh Dickins
2011-03-11 20:25   ` Hugh Dickins
2011-03-12  4:28     ` Andrea Arcangeli
2011-03-12  4:02   ` Andrea Arcangeli
2011-03-15  9:27 ` Johannes Weiner
2011-03-15 10:01   ` Andrea Arcangeli
2011-03-15 12:07     ` Johannes Weiner

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=4D7A3CC7.1010008@redhat.com \
    --to=riel@redhat.com \
    --cc=aarcange@redhat.com \
    --cc=jweiner@redhat.com \
    --cc=linux-mm@kvack.org \
    --cc=mel@csn.ul.ie \
    /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).