1

I got a bizarre problem which is the system clock always runs a lot faster than the hardware clock. For example, I set both system clock and hardware clock to20:00. After about 15minutes later, the system clock will probably run to20:17, while the hardware clock remains correct, which is20:15.

9
  • Can you please post the specific C code?
    – initall
    Jan 19, 2011 at 13:39
  • 3
    You do not mention your hardware specifications, or your Linux distribution and kernel version. Without this information it's hard to answer.
    – thkala
    Jan 19, 2011 at 13:44
  • This question would also be better suited for SuperUser.com
    – thkala
    Jan 19, 2011 at 13:44
  • I think you misunderstood me, and there is no C code. The problem is just the system clock always runs faster than the hardware clock on my Linux server. No matter I adjusted it repeatedly. It just runs faster.
    – DavidLiu
    Jan 19, 2011 at 13:51
  • 1
    I think the problem is similar to linuxquestions.org/questions/linux-general-1/…
    – David Liu
    Jan 19, 2011 at 14:22

3 Answers 3

2

There might be an NTP daemon running, which will gradually adjust the system time to the world time. As far as I know, the system time is written to the hardware clock only on shutdown.

1
  • 1
    There is no NTP daemon running.
    – David Liu
    Jan 19, 2011 at 14:10
1

If you're talking about a linux system install the command / package "adjtimex" (In Ubuntu, it's called this way). The command adjtimex gives you access to the kernel time variables and provide you with further hints what's the situation or problem on your system.

You might also take a look into the "hwclock" manpage which discusses a lot of things that might lead you in the correct direction.

0

Your CMOS battery may be running out; try replacing it.

1
  • 2
    The hardware clock is fine! Only the system clock runs fast.
    – David Liu
    Jan 19, 2011 at 14:33

Not the answer you're looking for? Browse other questions tagged .