All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] x86-64: Simplify and speed up vdso clock_gettime
@ 2012-03-23  4:15 Andy Lutomirski
  2012-03-23  4:15 ` [PATCH 1/2] x86-64: Simplify and optimize vdso clock_gettime monotonic variants Andy Lutomirski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andy Lutomirski @ 2012-03-23  4:15 UTC (permalink / raw)
  To: Thomas Gleixner, x86; +Cc: linux-kernel, john.stultz, Andy Lutomirski

I think clock_gettime is already almost as fast as possible, but every
little bit helps.  Also, I think the diffstat is pretty good for a
speedup.  Here are some approximate timings.

                             Before       After
CLOCK_REALTIME                 16.7        15.2
CLOCK_MONOTONIC                17.3        15.5
CLOCK_REALTIME_COARSE           3.6         3.0
CLOCK_MONOTONIC_COARSE          4.2         3.6

These are extracted from an earlier series that's mostly abandoned now [1-2].
They apply to tip/timers/core commit 57779dc2b3b75bee05ef5d1ada47f615f7a13932.

For the git-inclined, the patches are here:
https://git.kernel.org/?p=linux/kernel/git/luto/linux.git;a=shortlog;h=refs/heads/timing/vclock_speedup/patch_v1

I'm not sure whether these are 3.4 material.  On the pro side, they've
technically been floating around since long before the merge window.
They're also quite straightforward, and they're based on other -tip
changes (which is why I'm submitting now).  On the con side, they don't
fix anything, and they're a little later than ideal.

[1] https://lkml.org/lkml/2011/12/25/26
[2] https://lkml.org/lkml/2011/12/25/27

Andy Lutomirski (2):
  x86-64: Simplify and optimize vdso clock_gettime monotonic variants
  x86-64: Inline vdso clock_gettime helpers

 arch/x86/include/asm/vgtod.h   |   15 +++++++-----
 arch/x86/kernel/vsyscall_64.c  |   10 +++++++-
 arch/x86/vdso/vclock_gettime.c |   47 +++++++++++----------------------------
 3 files changed, 31 insertions(+), 41 deletions(-)

-- 
1.7.7.6


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-23 23:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-23  4:15 [PATCH 0/2] x86-64: Simplify and speed up vdso clock_gettime Andy Lutomirski
2012-03-23  4:15 ` [PATCH 1/2] x86-64: Simplify and optimize vdso clock_gettime monotonic variants Andy Lutomirski
2012-03-23  4:15 ` [PATCH 2/2] x86-64: Inline vdso clock_gettime helpers Andy Lutomirski
2012-03-23 23:47 ` [PATCH 0/2] x86-64: Simplify and speed up vdso clock_gettime John Stultz

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.