linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Michael Neuling <mikey@neuling.org>, benh@kernel.crashing.org
Cc: linuxppc-dev@ozlabs.org, anton@samba.org, Cyril Bur <cyrilbur@gmail.com>
Subject: Re: [v3, 2/2] powerpc: Copy only required pieces of the mm_context_t to the paca
Date: Mon, 11 Jan 2016 20:14:01 +1100 (AEDT)	[thread overview]
Message-ID: <20160111091402.01723140320@ozlabs.org> (raw)
In-Reply-To: <1449786882.29188.32.camel@neuling.org>

On Thu, 2015-10-12 at 22:34:42 UTC, Michael Neuling wrote:
> Currently we copy the whole mm_context_t to the paca but only access a
> few bits of it.  This is wasteful of space paca and also takes quite
> some time in the hot path of context switching.
> 
> This patch pulls in only the required bits from the mm_context_t to
> the paca and on context switch, copies only those.
> 
> Benchmarking this (On top of Anton's recent MSR context switching
> changes [1]) using processes and yield shows an improvement of almost
> 3% on POWER8:
> 
>   http://ozlabs.org/~anton/junkcode/context_switch2.c
>   ./context_switch2 --test=yield --process 0 0
> 
> 1. https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-October/135700.html
> 
> Signed-off-by: Michael Neuling <mikey@neuling.org>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/2fc251a8dda56b71ec491bee4c

cheers

  reply	other threads:[~2016-01-11  9:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-28  4:54 [PATCH 1/2] powerpc: Add function to copy mm_context_t to the paca Michael Neuling
2015-10-28  4:54 ` [PATCH 2/2] powerpc: Copy only required pieces of the " Michael Neuling
2015-12-09 12:17   ` Anton Blanchard
2015-12-10  3:46   ` [PATCH v2 " Michael Neuling
2015-12-10 10:00     ` Michael Ellerman
2015-12-10 22:34       ` [PATCH v3 " Michael Neuling
2016-01-11  9:14         ` Michael Ellerman [this message]
2016-01-11  9:14 ` [1/2] powerpc: Add function to copy " Michael Ellerman

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=20160111091402.01723140320@ozlabs.org \
    --to=mpe@ellerman.id.au \
    --cc=anton@samba.org \
    --cc=benh@kernel.crashing.org \
    --cc=cyrilbur@gmail.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mikey@neuling.org \
    /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).