lkml.org 
[lkml]   [2004]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /proc or ps tools bug? 2.6.3, time is off
On Tue, Feb 24, 2004 at 08:58:39PM -0500, David Ford wrote:
> Kernel 2.6.3, procps 3.2.0
>
> Note the change in the timestamp as reported by 'ps' v.s. the time
> reported by 'date'.
>

Hi,

I reported the same problem some time ago. Could you type

grep cpu /proc/stat; cat /proc/uptime

for example, I get

cpu 140708 1489 43735 21209021 292168 4879 4192
cpu0 140708 1489 43735 21209021 292168 4879 4192
216925.15 215037.34

Then add jiffies and divide by uptime:

(140708+1489+43735+21209021+292168+4879+4192)/216925.15 = 100.01695

which is not 100 here as it should be. (On kernel 2.2.* I have it exactly
100). ps uses Hertz=100 but it should be 170 ppm larger which makes an error
of about 15 seconds a day. (Running without ntpd doesn't fix it.)
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [from the cache]
©2003-2011 Jasper Spaans