Subject: Re: ps(1) reports negative cpu time
To: Jukka Salmi <j+nbsd@2005.salmi.ch>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-users
Date: 08/03/2005 09:36:19
On Wed, 3 Aug 2005, Jukka Salmi wrote:

> on a system running NetBSD/i386 2.0_STABLE, I see:
>
> $ ps -p8
> PID TT STAT TIME COMMAND
>  8 ?? DK   0 :-1.99 [pagedaemon]
>
> Negative time? Is pagedaemon generating time? ;-)
>
> Has anybody seen this before, i.e. is this a known bug?

I also saw similar a couple days ago on NetBSD/i386 2.0.2, but not a 
kernel thread.

USER  PID %CPU %MEM  VSZ   RSS TT STAT STARTED   TIME     COMMAND
mail  268  0.0  1.9  708  1740 ?? Ss   11:26AM   0:-3.36 /usr/pkg/sbin/exim -bd -q30m (exim-4.44-1)

The rc.conf has ntpdate=YES and also runs "/etc/rc.d/ntpdate start" once 
each night.

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/