Lew Pitcher <
lpit...@teksavvy.com> wrote:
<snip>
> Question: how likely is your scenario? That is, in (say) 1000 reboots of an
> aribtrary machine, how often would NTP radically reset the system clock?
I don't know. Perhaps it's not something to worry about. But "arbitrary
machine" is a significant qualification.
I worked at an appliance company once where a component manufacturer sent
thousands of NICs with identical MAC addresses. The company wasn't equipped
to reflash the NICs individually, so we had to do it in the appliance
firmware. And in any event, certainly this wasn't the first time a huge
batch of such NICs left the factory, so it was probably prudent to handle
this condition anyhow. If somebody asked me the question how often would I
truly need to worry about duplicate MAC addresses I'd have to respond, "all
the time!"
Imagine a run of appliances or motherboards with a bad RTC. The answer could
again be, "all the time!" But perhaps this is common enough to actually be
worrisome without such a pathological scenario.
I've also seen cases where vendors run `ntpdate -b` from a cron job rather
than relying on ntpd to skew the clock, or where ntp isn't used regularly at
all. It's one thing when writing software to rely on the expertise and
sanity of developers whose aim is correctness. It's another thing entirely
to rely on vendors whose aim is to maximize profit, a pursuit which heavily
discounts correctness. Most vendors (by number) rely on _other_ people doing
the correct thing, then writing crappy software on top of that.
I suspect these sorts of clock issues tend to manifest as odd errors that go
away quickly enough that nobody bothers to investigate. Imagine a software
watchdog that restarts an HTTP service because the clock jumped forward 10
seconds. The wrong thing happened, but it was rather benign because HTTP is
stateless and the user habitually resubmitted the form.