Subject: bin/36295: ps displays 0:00.00 for CPU time of all processes
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <hbent@cs.oberlin.edu>
List: netbsd-bugs
Date: 05/08/2007 06:20:01
>Number:         36295
>Category:       bin
>Synopsis:       ps displays 0:00.00 for CPU time of all processes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 08 06:20:00 +0000 2007
>Originator:     Henry Bent
>Release:        4.99.17
>Organization:
Oberlin College CIT
>Environment:
NetBSD aelfric 4.99.17 NetBSD 4.99.17 (AELFRIC) #1: Tue Apr 10 17:23:39 EDT 2007  root@aelfric:/usr/obj/src-current/sys/arch/i386/compile/AELFRIC i386
>Description:
ps displays 0:00.00 for CPU time of all processes.  For example, here is a line from "top":

676 root       2    0    20M   75M select/0   4:27  1.42%  1.42% XFree86

and here is its corresponding line from "ps ax":

676 ?     S    0:00.00 X :0 (XFree86)

This also happens on my other 4.99.17 box, but with one interesting difference: a multi-threaded program is being reported correctly while none of the others are:

10376 ttyp0 Rl+  716:11.72 mencoder


>How-To-Repeat:
Nothing special, just run some processes that take up CPU time and notice that "ps" does not report that CPU time.
>Fix:
none known, sorry.