From: Petri Kaukasoina <kaukasoi@elektroni.ee.tut.fi>
To: john stultz <johnstul@us.ibm.com>, lkml <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.1: process start times by procps
Date: Thu, 29 Jan 2004 22:13:15 +0200 [thread overview]
Message-ID: <20040129201315.GA9814@elektroni.ee.tut.fi> (raw)
In-Reply-To: <20040129143847.GA4544@elektroni.ee.tut.fi>
On Thu, Jan 29, 2004 at 04:38:47PM +0200, Petri Kaukasoina wrote:
> I'll do an experiment and boot to linux-2.6.1 without ntpd next...
The problem does not seem to be connected to ntpd. btime goes backwards and
ps process start times forwards even without ntp.
I tried both linux-2.6.1 and linux-2.4.24 without ntpd. I read the values of
several variables, waited some time, read them again, and subtracted to
obtain the differences. Results below. The references to ntp time were taken
using 'ntpdate -q', so the clock was running freely and not controlled by
ntp.
Linux-2.6.1 without ntpd:
passed time according to 'date': 1988.941515 s
timer interrupts: 1989244
interrupts per second: 1000.152
error compared to 1000 interrupts per second: +152 ppm
(ps times go towards future about 2.1 s in 13479 s of uptime: about 160 ppm)
(Bootup time 'btime' similarly goes backwards about 2 s in the same time)
clock too fast compared to ntp time by: +0.045162 s
so 'date' is too fast compared to UT by: +22.7 ppm
Linux-2.4.24 without ntpd:
passed time according to 'date': 2711.294952 s
timer interrupts: 271129
interrupts per second: 100.000
error compared to 100 interrupts per second: 0 ppm
(ps times stay correct)
(btime stays constant)
clock too fast compared to ntp time by: +0.019216 s
so 'date' is too fast compared to UT by: +7.1 ppm
I would like to interpret these numbers so that in linux-2.6.1 the constant
HZ is 152 ppm too large and when procps doesn't know it, it calculates
process start times wrong in ps output. The timeofday somehow is not
affected because time goes only 15.6 ppm faster compared to linux-2.4.24.
Thanks,
-Petri
next prev parent reply other threads:[~2004-01-29 20:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-23 19:47 2.6.1: process start times by procps Petri Kaukasoina
2004-01-25 11:08 ` Petri Kaukasoina
2004-01-27 15:52 ` Petri Kaukasoina
2004-01-27 17:31 ` Petri Kaukasoina
2004-01-29 2:21 ` john stultz
2004-01-29 14:38 ` Petri Kaukasoina
2004-01-29 19:48 ` john stultz
2004-01-29 20:33 ` Petri Kaukasoina
2004-01-29 22:51 ` Andrew Morton
2004-01-30 12:42 ` Petri Kaukasoina
2004-01-29 20:13 ` Petri Kaukasoina [this message]
2004-02-01 20:18 ` Bill Davidsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040129201315.GA9814@elektroni.ee.tut.fi \
--to=kaukasoi@elektroni.ee.tut.fi \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox