Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Negative time with ps



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?
> > 
> > root         4  0.0 19.2    0 24700 ?? DK   Wed02PM -18516351:-27.18 
> > [pagedaemon]
> > root         5  0.0 19.2    0 24700 ?? DK   Wed02PM -18516350:-26.87 
> > [ioflush]
> > root         6  0.0 19.2    0 24700 ?? DK   Wed02PM -18516351:-27.70 
> > [aiodoned]
> > 
> > It happens in domU, too.
> 
> 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.

-- 
Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
"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.

Attachment: pgp0BcFDqFNoy.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index