Subject: Re: Negative time with ps
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Quentin Garnier <cube@cubidou.net>
List: port-xen
Date: 03/23/2005 20:33:37
--4LFBTxd4L5NLO6ly
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 23, 2005 at 08:17:44PM +0100, Manuel Bouyer wrote:
> On Tue, Mar 22, 2005 at 11:42:26AM +0100, Quentin Garnier wrote:
> > On Tue, Mar 22, 2005 at 10:29:27AM +0200, Martti Kuparinen wrote:
> > > I'm getting weird output from domain0's ps command. Any ideas
> > > what's causing this?
> >=20
> > root         4  0.0 19.2    0 24700 ?? DK   Wed02PM -18516351:-27.18 [p=
agedaemon]
> > root         5  0.0 19.2    0 24700 ?? DK   Wed02PM -18516350:-26.87 [i=
oflush]
> > root         6  0.0 19.2    0 24700 ?? DK   Wed02PM -18516351:-27.70 [a=
iodoned]
> >=20
> > It happens in domU, too.
>=20
> Yes.
> The clock code isn't perfect. Especially, it doesn't compensate for the
> fact that clock interrupts don't run at exacltly hz, because of domain
> scheduling, and also because xen will send extra interrupts from
> time to time, when domain0 updates the master clock. This needs more work.
> Now, I'm not sure if this can cause the process time to become negative.
> BTW, it this seems to happen only for kernel threads.

Actually, I think it only happens for the threads created directly from
main().  All the other kernel threads are fine, but they're created in
two passes, through an evanescent thread.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--4LFBTxd4L5NLO6ly
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQkHEkdgoQloHrPnoAQINgQf+IHJi6B9dGjq+doJ1nDAA19R1D5gJBZ8V
umh47AoYufBKLq6X7wfQ7CLlcWAOjWXIPCoLJsVR0gQGSAj0/nRQtynpLk5SwMs/
ARESENxFjGV0c/Wle8Nn52nmkV9oHY2m0KWDJvgmM3FrW5sv7eo1HZfYY45P+4Qz
6iP7AKllO2V3x64RA4qeWcoh/zinpQjayqDA9yY2lqllFez12EZPT0xHoDZ6Crxr
Mr50iqQOrbUVt3VEgirMceJDT/0N+lunRURErvma0vomBEVgFPrWPqeio+7+YT1+
1kytE8o6M53lKR75mWkZOkeRtBTrI2cMMWtZhy4J26ekWio009L6cA==
=ECP6
-----END PGP SIGNATURE-----

--4LFBTxd4L5NLO6ly--