Bug 109841 - Need faster gettimeofday() implementation
Summary: Need faster gettimeofday() implementation
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel
Version: 3.0
Hardware: ia64
OS: Linux
Target Milestone: ---
Assignee: Doug Ledford
QA Contact: Brian Brock
URL: -
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2003-11-12 09:12 UTC by Johan Walles
Modified: 2007-11-30 22:06 UTC (History)
5 users (show)

Clone Of:
Last Closed: 2006-09-19 18:36:01 UTC

Attachments (Terms of Use)

Description Johan Walles 2003-11-12 09:12:37 UTC
When we (BEA) compare JRockit performance numbers (using SpecJBB2000)
between Windows and RHAS21, JRockit on RHAS21 is about 10% behind (a
bit less on ia32 than on ia64).  The main reasons for this are the
implementations of memset() and gettimeofday().

AFAIU, an improved memset() implementation has already gone into RHEL3
(or will be going in RSN).  Improvements to gettimeofday() however
isn't scheduled until RHEL4, with the introduction of 2.6 kernels.

We would very much like to see the 2.6 gettimeofday() backported in
the RHEL3 time frame.

Comment 1 Arjan van de Ven 2003-11-12 09:17:11 UTC
1) have you actually measured how "slow" gettimeofday() is ?
2) due to the variety in PC hardware the vsyscall "fast"
gettimeofday() isn't really feasible anymore. 

Comment 2 Johan Walles 2003-11-12 11:23:37 UTC
Quoting an internal memo:

> Q1:  getimeofday() (system time in mills) is consuming almost 5%
> of extra Kernel CPU cycles.
>      On Win64 as well as Linux32, same call is executed in user
> mode and consumes less
>      than 0.5 % of CPU cycles. What is the status of fast
> gettimeofday() on Linux64 from Red Hat?
> Ans.:
>     Fast gettimeofday() has been implemented on linux-ia64.
>     But the implementation is based on linux-2.6.
>     It'll be a while before RH ships it.
>     The current RH distributions are linux-2.4 based.

Sorry about the platform confusion.

Comment 3 Arjan van de Ven 2003-11-12 11:25:36 UTC
fwiw linux on x86 does not execute the gettimeofday() call in userspace!

Comment 4 Doug Ledford 2006-09-19 18:36:01 UTC
This is a very old bug, and I'm sure whatever GTOD() there is in RHEL3 today is
staying, so closing this as WONTFIX.

Note You need to log in before you can comment on or make changes to this bug.