NetBSD Problem Report #1287
From gnats Thu Jul 27 16:24:02 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id QAA07228 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 27 Jul 1995 16:24:01 -0400
Message-Id: <199507271614.RAA14635@neutron.city.ac.uk>
Date: Thu, 27 Jul 1995 17:14:29 +0100
From: abs@mono.city.ac.uk
To: gnats-bugs@NetBSD.ORG
Subject: ps -r shows all jobs, not just jobs in run state.
X-Send-Pr-Version: 3.2
>Number: 1287
>Category: bin
>Synopsis: ps -r shows all jobs, not just jobs in run state.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jul 27 16:35:02 +0000 1995
>Closed-Date: Sun May 25 10:42:53 +0000 1997
>Last-Modified: Sun May 25 10:47:54 +0000 1997
>Originator: David Brownlee
>Release: Jun 9th 1995
>Organization:
Monochrome
>Environment:
sparc, 1.0A, current
System: NetBSD gluon.city.ac.uk 1.0A NetBSD 1.0A (GLUON) #1: monoadm@gluon.city.ac.uk:/mono/u1/NetBSD/src/sys/arch/sparc/compile/GLUON sparc
>Description:
On most systems I've used 'ps -r' shows all the processes in run state.
This is very useful for quickly seeing what is chewing up your CPU.
Under NetBSD '-r' shows all processes, not just those in run state.
abs
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: pk
State-Changed-When: Sun May 25 03:42:53 PDT 1997
State-Changed-Why:
It's just one of those things.. `-r' is used to sort on cpu usage.
As a consolation :-), I offer this:
ps `ps -ostate -opid | sed -n 's/.*R.* (.*)$/-p 1/p'`
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.