Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754246AbZAFUAA (ORCPT ); Tue, 6 Jan 2009 15:00:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751734AbZAFT7v (ORCPT ); Tue, 6 Jan 2009 14:59:51 -0500 Received: from bsdimp.com ([199.45.160.85]:63486 "EHLO harmony.bsdimp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644AbZAFT7v (ORCPT ); Tue, 6 Jan 2009 14:59:51 -0500 Date: Tue, 06 Jan 2009 12:50:34 -0700 (MST) Message-Id: <20090106.125034.63059204.imp@bsdimp.com> To: linasvepstas@gmail.com Cc: david@lang.hm, hancockr@shaw.ca, goodgerster@gmail.com, kyle@moffetthome.net, slashdot@jameshallam.info, davidn@davidnewall.com, linux-kernel@vger.kernel.org, ntpwg@lists.ntp.isc.org, pretzalz@techhouse.org, burdell@iruntheinter.net, nick@nick-andrew.net, jeff@kosowsky.org Subject: Re: [ntpwg] Bug: Status/Summary of slashdot leap-second crash on new years 2008-2009 From: "M. Warner Losh" In-Reply-To: <3ae3aa420901050942y56f0ecdei39c091a73e49c1fd@mail.gmail.com> References: <3ae3aa420901050808r100e533fo5f88edfbb5f0747a@mail.gmail.com> <3ae3aa420901050942y56f0ecdei39c091a73e49c1fd@mail.gmail.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3383 Lines: 74 In message: <3ae3aa420901050942y56f0ecdei39c091a73e49c1fd@mail.gmail.com> "Linas Vepstas" writes: : 2009/1/5 : : > On Mon, 5 Jan 2009, Linas Vepstas wrote: : > : >>> Arguably the kernel's responsibility should be to keep track of the : >>> most fundamental representation of time possible for a machine (that's : >>> probably TAI) and it is a userspace responsibility to map from that : >>> value to other time standards including UTC, : >> : >> Yes, this really does seem like the right solution. : >> : >>> using control files : >>> which are updated as leap seconds are declared. : >> : >> Lets be clear on what "control files" means. This does : >> *NOT* mean some config file shipped by some distro : >> for some package. That would be a horrid solution. : >> People don't install updates, patches, etc. Distros : >> ship them late, or never, if the distro is old enough. : >> : >> A more appropriate solution would be to have : >> either the kernel or ntpd track the leap seconds : >> automatically. First, the ntp protocol already provides : >> the needed notification of a leap second to anyone : >> who cares about it (i.e. there is no point in getting a : >> Linux distro involved in this -- a distribution mechanism : >> already exists, and works *better* than having a distro : >> do it). : > : > I disagree with this. NTP will only know about leap seconds if it was : > running and connected to a server that advertised the leap seconds during : > that month. : > : > for example, if you installed a new server today, how would it ever know : > that there was a leap second a couple of days ago? : : OK, good point. Unless your distro was less : than a few days old (unlikely), you are faced with the : same problem. Sure, eventually, the distro will publish : an update (which will add to the existing list of 36 leap List of 24 leap seconds. Although the delta is 34 right now, the first 10 leap seconds were done as tiny steps (~50-100ms) plus frequency offsets. Well, the first 'leap' was 1.4228180s on Jan 1, 1961. Everybody assumes that those seconds don't exist to simplify things (or that there was simply a 10s step between TAI and UTC on 1-Jan-1972). The leapsecond file from NIST doesn't even have them. : seconds -- which is needed in any case, since no one : has a server that's been up since 1958), but this is : unlikely to happen during this install window. : : The long term solution would be write an RFC to extend : NTP to also provide TAI information -- e.g. to add a : message that indicates the current leap-second offset : between UTC and TAI. I'd love that. There's likely going to be some resistance to that because the leapfile is available via the crypto-authenticated means. However, there's no real-time information available... Also, there are many reference clocks that would need this information plugged into it somehow (IRIG doesn't report leap seconds in any meaningful[*] way, let alone UTC-TAI offset). [*] Some IRIG extensions do support reporting leap seconds at the end of the hour, but that's too late... Warner -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/