From: dean gaudet <odo@google.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: Pardo <pardo@google.com>,
linux-kernel@vger.kernel.org, mbligh@google.com,
briangrant@google.com, nil@google.com, jyasskin@google.com
Subject: Re: Faster getcpu() and sched_getcpu()
Date: Mon, 29 Sep 2008 00:27:09 -0700 [thread overview]
Message-ID: <48E0834D.6010608@google.com> (raw)
In-Reply-To: <87wsgwp6gh.fsf@basil.nowhere.org>
Andi Kleen wrote:
> I'm still not sure why you say no redzone is that expensive? Do you
> have numbers? I know it's a few instructions, but it shouldn't
> be that expensive.
>
>
it depends on the processor involved and the kernel config options --
i.e. if frame pointers are enabled then the stack frame guarantees a
store operation (push rbp) and on processors which do memops in-order
this delays the other memops in the vsyscall (i.e. testing the cache or
executing SIDT). it was 2 or 3 cycles difference in most cases iirc.
-dean
next prev parent reply other threads:[~2008-09-29 7:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <af8810200809111648n55e05ac9g286fcd498690432f@mail.gmail.com>
2008-09-23 19:09 ` Faster getcpu() and sched_getcpu() Pardo
2008-09-23 19:48 ` Fwd: " Pardo
2008-09-28 16:42 ` Andi Kleen
2008-09-29 7:27 ` dean gaudet [this message]
2008-09-29 14:54 ` Andi Kleen
2008-09-29 18:02 ` Pardo
[not found] ` <af8810200809291101r6f3208beua36a4b2d3b5713eb@mail.gmail.com>
2008-09-29 20:50 ` Andi Kleen
[not found] ` <48E14ECE.6080402@google.com>
2008-09-29 21:59 ` dean gaudet
2008-09-29 22:07 ` Andi Kleen
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=48E0834D.6010608@google.com \
--to=odo@google.com \
--cc=andi@firstfloor.org \
--cc=briangrant@google.com \
--cc=jyasskin@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbligh@google.com \
--cc=nil@google.com \
--cc=pardo@google.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.