Re: Faster getcpu() and sched_getcpu()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: dean gaudet
Date: Monday, September 29, 2008 - 12:27 am

Andi Kleen wrote:

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

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Faster getcpu() and sched_getcpu(), Pardo, (Tue Sep 23, 12:09 pm)
Fwd: Faster getcpu() and sched_getcpu(), Pardo, (Tue Sep 23, 12:48 pm)
Re: Faster getcpu() and sched_getcpu(), Andi Kleen, (Sun Sep 28, 9:42 am)
Re: Faster getcpu() and sched_getcpu(), dean gaudet, (Mon Sep 29, 12:27 am)
Re: Faster getcpu() and sched_getcpu(), Andi Kleen, (Mon Sep 29, 7:54 am)
Re: Faster getcpu() and sched_getcpu(), Pardo, (Mon Sep 29, 11:02 am)