Re: Time reset





Unruh wrote:
andy.helten@xxxxxxxxxxxx (Andy Helten) writes:

Another disadvantage with preventing steps is that it isn't really a
supported mode (because it's a "tinker") and, as I've found, it doesn't
always work. When I disable time steps on a linux 2.6.18 kernel, the
drift value goes to +/-500 and can actually swap sign from one run to
the next. This happens even though a time step was never needed (i.e.
offset never went >128ms). With time steps enabled the drift value
settles <90ppm (and again, no step actually occurs).


That certainly sounds like a bug to me.



Me too, but disabling time step is a tinker and tinkers are generally
use at your own risk. Besides, after much testing, I'm fairly certain
the problem is indeed with the kernel -- especially considering I did
not have this problem on an older kernel.

From what I've been able to piece together, this different behavior
between step/!step is probably due to the kernel time discipline being
disabled with !step, coupled with a (potential) bug in linux that forces
NTP's "manual" adjustments to have a granularity of 1ms (i.e. somewhere
an adjustment is rounded up or down). I've not verified the bug is
present in my 2.6.18 linux kernel, so don't quote me on it. One might
ask why the kernel time discipline is preemptively disabled in this
manner -- maybe there is a good reason.


AFAIK it is not the kernel that does the time step. Ie, the kernel
discipline is not what demands the step. Also, adjtime certainly does not
have a 1ms granularity.




That is also my understanding, that the kernel does not perform the time
step but it is the kernel that updates the system time every tick. My
understanding of the kernel time discipline is that NTP sets the size of
the update to account for the system clock drift. This mechanism is
apparently disabled when time stepping is disabled. Don't ask me why.
.



Relevant Pages

  • Re: DMA aktivieren
    ... No module symbols loaded - kernel modules not enabled. ... Using ACPI for IRQ routing ... Buffer I/O error on device hdb, logical block 39102336 ... disabling flush barriers on hdb2 ...
    (de.comp.os.unix.linux.misc)
  • [RFC][PATCH] Disabling read-ahead makes I/O of large reads small
    ... NFSv3 on Linux is terrible. ... O_DIRECT which has the side-effect of disabling read-ahead. ... This has a very odd side-effect in the kernel. ...
    (Linux-Kernel)
  • Re: problem whit optic fibre adapter (emulex LP952)
    ... Have you tried building a custom kernel with all the stuff built in, ... Initializing cgroup subsys cpuset ... ACPI: IRQ0 used by override. ...
    (Debian-User)
  • Re: PostgreSQL pgbench performance regression in 2.6.23+
    ... Also, that requires being intrusive into people's setup scripts, which bothers me a lot more than doing a bit of kernel tuning at system startup. ... I did again get useful results here with the stock 2.6.26.git kernel and default parameters using Peter's small patch to adjust se.waker. ... Combining those two but keeping the rest of the features on actually gave the best result I've ever seen here, better than with all the features disabled. ... Mike suggested a patch to 2.6.25 in this thread that backports the feature for disabling SCHED_FEAT_SYNC_WAKEUPS. ...
    (Linux-Kernel)
  • "irq 16: nobody cared!" -errors after motherboard-switch (ABIT IS7-E2 motherboard)
    ... irq 16: nobody cared! ... If I disable the onboard usb in the BIOS, ... "noirqdebug" parameter to the kernel. ... Disabling ACPI support in kernel give the same ...
    (Linux-Kernel)