public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/9690] New: glibc time functionality broken with kernel 2.6.26 and later
@ 2008-12-28 20:52 hvengel at astound dot net
  2009-01-10  9:11 ` [Bug libc/9690] " vapier at gentoo dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 13+ messages in thread
From: hvengel at astound dot net @ 2008-12-28 20:52 UTC (permalink / raw)
  To: glibc-bugs

Kernel 2.6.26 changed it's time functionality from being microsecond based
(microkernel) to being nanosecond based (nanokernel).  As a result there needs
to be changes made to sysdeps/unix/sysv/linux/sys/timex.h and also to
sysdeps/unix/sysv/linux/ntp_gettime.c to make glibc compatible with these newer
kernel versions.  If this is not done ntp will not function correctly.  Please
see http://sourceware.org/ml/libc-alpha/2008-03/msg00076.html for a set of
patches based on glibc 2.7 that will correct this problem. 

With the current code base ntp builds for a microkernel and it's functions to
set the clocks rate will be off by 3 orders of magnitude since the kernel is
passing and expecting to get nanosecond values.  This results in the clock being
unstable.  This is most noticeable when using a high quality reference clock
like a GPS where it should be possible to get near microsecond offsets with a
properly functioning clock but with the current glibc code it is more typical to
see around 100 microsecond offsets with the clock slewing between positive and
negative offsets and sometimes being off by as much as 500 microseconds. 

I have been using the patches from the above link for several months without
issue and these patches are being widely used by users of the LinuxPPS kernel
patch set.  The LinuxPPS patch set is now appearing in the daily mm kernel
snapshots and it is highly likely that kernel 2.6.29 will be shipped with the
LinuxPPS patches.  This will allow more users to attach reference clocks to
their machines and the issues with glibc and ntp and these newer kernels will
become painfully apparent when these users do not get the clock accuracy that
they were expecting.

-- 
           Summary: glibc time functionality broken with kernel 2.6.26 and
                    later
           Product: glibc
           Version: 2.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: hvengel at astound dot net
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=9690

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <bug-9690-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2014-07-02  7:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-28 20:52 [Bug libc/9690] New: glibc time functionality broken with kernel 2.6.26 and later hvengel at astound dot net
2009-01-10  9:11 ` [Bug libc/9690] " vapier at gentoo dot org
2009-02-07  5:13 ` drepper at redhat dot com
2009-02-07  6:31 ` hvengel at astound dot net
2009-04-26 23:45 ` samuel dot thibault at ens-lyon dot org
2009-04-26 23:52 ` samuel dot thibault at ens-lyon dot org
2009-05-07 21:28 ` johnstul at us dot ibm dot com
2009-05-07 22:59 ` samuel dot thibault at ens-lyon dot org
2009-05-07 23:10 ` hvengel at astound dot net
2009-05-07 23:12 ` johnstul at us dot ibm dot com
2009-05-08 21:07 ` drepper at redhat dot com
2009-05-08 22:15 ` hvengel at astound dot net
     [not found] <bug-9690-131@http.sourceware.org/bugzilla/>
2014-07-02  7:39 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).