From: Nicholas Piggin <npiggin@gmail.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: Anton Blanchard <anton@ozlabs.org>,
benh@kernel.crashing.org, paulus@samba.org, mikey@neuling.org,
cyrilbur@gmail.com, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc/64: Use tick accounting by default
Date: Mon, 22 May 2017 14:46:05 +1000 [thread overview]
Message-ID: <20170522144605.587fb632@roar.ozlabs.ibm.com> (raw)
In-Reply-To: <87shjxsf0i.fsf@concordia.ellerman.id.au>
On Mon, 22 May 2017 14:15:57 +1000
Michael Ellerman <mpe@ellerman.id.au> wrote:
> Anton Blanchard <anton@ozlabs.org> writes:
>
> > From: Anton Blanchard <anton@samba.org>
> >
> > ppc64 is the only architecture that turns on VIRT_CPU_ACCOUNTING_NATIVE
> > by default. The overhead of this option is extremely high - a context
> > switch microbenchmark using sched_yield() is almost 20% slower.
>
> Running on what? It should all be nop'ed out unless you're on a platform
> that needs it (SPLPAR).
Not ACCOUNT_CPU_USER_ENTRY/EXIT, which adds a fair cost to kernel
entry/exit (my notes say ~70 cycles on getppid() out of 3-4 hundred).
>
> > To get finer grained user/hardirq/softirq statitics, the
> > IRQ_TIME_ACCOUNTING option can be used instead, which has much lower
> > overhead.
>
> Can it? We don't select HAVE_IRQ_TIME_ACCOUNTING, so AFAICS it can't be
> enabled.
>
> Doesn't dropping this mean we never count stolen time?
>
> cheers
next prev parent reply other threads:[~2017-05-22 4:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-19 14:41 [PATCH] powerpc/64: Use tick accounting by default Anton Blanchard
2017-05-22 4:15 ` Michael Ellerman
2017-05-22 4:46 ` Nicholas Piggin [this message]
2017-05-22 5:13 ` Anton Blanchard
2022-05-25 8:36 ` Christophe Leroy
2017-05-22 7:26 ` Christophe LEROY
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=20170522144605.587fb632@roar.ozlabs.ibm.com \
--to=npiggin@gmail.com \
--cc=anton@ozlabs.org \
--cc=benh@kernel.crashing.org \
--cc=cyrilbur@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mikey@neuling.org \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.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).