Subject: port-xen/29846: Negative time from ps command
To: None <port-xen-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <martti.kuparinen@iki.fi>
List: netbsd-bugs
Date: 03/31/2005 09:58:00
>Number:         29846
>Category:       port-xen
>Synopsis:       Negative time from ps command
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-xen-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 31 09:58:00 +0000 2005
>Originator:     Martti Kuparinen
>Release:        NetBSD 3.99.2
>Organization:
>Environment:
System: NetBSD  3.99.2 NetBSD 3.99.2 (XENU) #2: Thu Mar 31 14:46:13 EEST 2005  root@localhost:/usr/src/sys/arch/i386/compile/XENU i386
Architecture: i386
Machine: i386
>Description:

ps shows negative times inside NetBSD/xen domU system. dom0
is running NetBSD 3.99.2 as well (XEN0 configuration file).

>How-To-Repeat:

# ps axw
PID TTY STAT    TIME COMMAND
  0 ?   DKs  -18537829:-23.36 [swapper]
  1 ?   Is   0:00.01 init 
  2 ?   DK   0:00.00 [cryptoret]
  3 ?   DK   0:00.00 [xbdc]
  4 ?   DK   -18537829:-23.36 [pagedaemon]
  5 ?   DK   -18537829:-23.37 [ioflush]
  6 ?   DK   -18537829:-23.37 [aiodoned]
311 ?   Ss   0:00.01 sendmail: accepting connections 
344 ?   Is   0:00.00 /usr/sbin/inetd -l 
347 ?   Ss   0:00.00 /usr/sbin/cron 
332 ?   Is   0:00.02 login 
342 ?   S    0:00.01 -sh 
378 ?   R+   0:00.00 ps axw 

>Fix: