Subject: ps issues with recent NetBSD 4.0_beta2
To: None <netbsd-users@netbsd.org>
From: Dave Tyson <Dave.Tyson@liverpool.ac.uk>
List: netbsd-users
Date: 07/09/2007 08:54:29
Just noticed something peculiar with a recently compiled (after 25th June)
kernel/userland for NetBSD 4.0_beta2. ps seems to report some process
elapsed times to generally be zero which doesn't tally with top etc. say.
e.g
root(anduin)tmp$ ps -ax |head -20
PID TTY STAT TIME COMMAND
0 ? DKs 0:00.00 [swapper]
1 ? Is 0:00.00 init
2 ? DK 0:00.00 [atabus0]
3 ? DK 0:00.00 [atabus1]
4 ? DK 0:00.00 [usb0]
5 ? DK 0:00.00 [usbtask-hc]
6 ? DK 0:00.00 [usbtask-dr]
7 ? DK 0:00.00 [cryptoret]
8 ? DK 0:00.00 [pagedaemon]
9 ? DK 0:00.00 [ioflush]
10 ? DK 0:00.00 [aiodoned]
44 ? DK 0:00.00 [physiod]
97 ? I 0:00.00 /usr/pkg/sbin/httpd -k start
98 ? I 0:00.00 /usr/pkg/sbin/httpd -k start
99 ? I 0:00.00 /usr/pkg/sbin/httpd -k start
253 ? Is 0:00.00 /sbin/dhclient
285 ? I 0:00.00 /usr/pkg/sbin/httpd -k start
315 ? Ss 0:00.00 /usr/sbin/syslogd -s
474 ? Ss 0:00.00 /usr/sbin/ntpd
root(anduin)tmp$ ident /bin/ps
/bin/ps:
$NetBSD: crt0.c,v 1.16 2006/05/17 17:08:54 christos Exp $
$NetBSD: keyword.c,v 1.50 2006/10/29 22:32:53 christos Exp $
$NetBSD: nlist.c,v 1.25 2006/10/16 00:31:47 christos Exp $
$NetBSD: print.c,v 1.96 2006/10/29 22:32:53 christos Exp $
$NetBSD: ps.c,v 1.61 2006/10/02 17:54:35 apb Exp $
Running an older version of ps (NetBSD 4.0_beta from around Oct 2006) shows
more sensible results which actually tally with top.
root(anduin)tmp$ /tmp/ps -ax |head -20
PID TTY STAT TIME COMMAND
0 ? DKs 0:00.08 [swapper]
1 ? Is 0:00.02 init
2 ? DK 0:00.00 [atabus0]
3 ? DK 0:00.01 [atabus1]
4 ? DK 0:00.01 [usb0]
5 ? DK 0:00.00 [usbtask-hc]
6 ? DK 0:00.00 [usbtask-dr]
7 ? DK 0:00.00 [cryptoret]
8 ? DK 0:00.00 [pagedaemon]
9 ? DK 0:13.51 [ioflush]
10 ? DK 0:04.31 [aiodoned]
44 ? DK 0:00.00 [physiod]
97 ? I 0:00.26 /usr/pkg/sbin/httpd -k start
98 ? I 0:00.28 /usr/pkg/sbin/httpd -k start
99 ? I 0:00.25 /usr/pkg/sbin/httpd -k start
253 ? Is 0:00.01 /sbin/dhclient
285 ? I 0:00.23 /usr/pkg/sbin/httpd -k start
315 ? Ss 0:00.25 /usr/sbin/syslogd -s
474 ? Ss 0:09.12 /usr/sbin/ntpd
dtyson(anduin)dtyson$ ident /tmp/ps
/tmp/ps:
$NetBSD: crt0.c,v 1.16 2006/05/17 17:08:54 christos Exp $
$NetBSD: keyword.c,v 1.46 2006/03/18 05:33:31 christos Exp $
$NetBSD: nlist.c,v 1.24 2004/08/22 18:55:44 dsl Exp $
$NetBSD: print.c,v 1.94 2005/06/27 00:46:04 christos Exp $
$NetBSD: ps.c,v 1.59 2005/06/26 19:10:49 christos Exp $
Anyone else seeing this?
TIA,
Dave
--
=====================================================================
Phone: 07772420022
WWW: http://www.liv.ac.uk/~dtyson
Open Source O/S: www.netbsd.org
Caving: http://www.wirralcavinggroup.uk.eu.org
=====================================================================