From: Steven Rostedt <rostedt@goodmis.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
stable <stable@vger.kernel.org>, Christoph Lameter <cl@linux.com>,
Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
Subject: Re: [GIT PULL] ring-buffer: Replace this_cpu_*() with __this_cpu_*()
Date: Mon, 18 May 2015 16:40:33 -0400 [thread overview]
Message-ID: <20150518164033.58fa274a@gandalf.local.home> (raw)
In-Reply-To: <CA+55aFy0-9XQ0eqXC0Tkakds5QCjyhLppY8qCfnP-yJBqVxCtA@mail.gmail.com>
On Mon, 18 May 2015 12:50:43 -0700
Linus Torvalds <torvalds@linux-foundation.org> wrote:
> On Thu, Mar 19, 2015 at 3:16 PM, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
> >
> > So I don't think the ring-buffer change is necessarily _wrong_, but if
> > this is a performance issue, why don't we just fix it up for the
> > generic case rather than for just one user?
>
> This this_cpu_generic_read/this_cpu_generic_write() performance thing
> seems to have dropped off everybody's radar.
>
> Do people still care? Is it an issue?
Note, the ring buffer issues exasperated the problem because the
preempt_disable() itself was being traced (function tracer) and this
was for the code that was to detect recursion. Luckily, the function
tracer had its own recursion detection to prevent an infinite recursion
from happening and crashing the kernel, but the double call was
definitely being noticed.
Now, as for preempt_disable() being called for a simple per cpu read,
that is probably overkill. But I think Christoph is the one to answer
this.
-- Steve
next prev parent reply other threads:[~2015-05-18 20:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 22:02 [GIT PULL] ring-buffer: Replace this_cpu_*() with __this_cpu_*() Steven Rostedt
2015-03-19 22:16 ` Linus Torvalds
2015-03-19 22:34 ` Steven Rostedt
2015-03-19 22:42 ` Steven Rostedt
2015-05-19 15:35 ` Christoph Lameter
2015-05-19 15:42 ` Steven Rostedt
2015-05-19 16:20 ` Christoph Lameter
2015-03-23 17:48 ` Steven Rostedt
2015-03-24 18:47 ` Christoph Lameter
2015-03-24 19:37 ` Christoph Lameter
2015-05-18 19:50 ` Linus Torvalds
2015-05-18 20:40 ` Steven Rostedt [this message]
2015-03-20 7:26 ` Uwe Kleine-König
2015-03-20 11:55 ` Steven Rostedt
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=20150518164033.58fa274a@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=cl@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=stable@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=u.kleine-koenig@pengutronix.de \
/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