Subject: Re: ps(1) reports negative cpu time
To: None <>
From: Chuck Swiger <>
List: netbsd-users
Date: 08/06/2005 00:42:45
Pavel Cahyna wrote:
> On Wed, 03 Aug 2005 15:45:10 +0200, Martin Husemann wrote:
>>So the kernel threads are already running, and then ntpdate changes the
>>time backwards. This disturbs the process resource accounting.
>>It's harmless, just ignore it.
> But, isn't it wrong? Shouldn't the process resource accounting report the
> time consumed by the process, which should be unaffected by changes of
> time of the day?

Process resource accounting should report the time consumed by the process.

Changing the time-of-day clock should not confuse the statistics, but that 
really depends on using ntpd to slew the clock gradually via adjtime(), rather 
than jumping the time by setting its value directly.