Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2003 11:16:05 +0200
From:      Andreas Klemm <andreas@freebsd.org>
To:        stable@freebsd.org
Subject:    ps commandline option woes (-v weired formatting, more power for -m)
Message-ID:  <20030412091605.GA30004@titan.klemm.apsfilter.org>

next in thread | raw e-mail | index | archive | help

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Two issues concerning ps commandline options.

1) -v option, cosmetic !
   currently the formatting is very unsexy, makes this option
   rather unusable, you can't easy follow the columns

2) -m option doesn't have precedence over other options
   forcing the output to be memory sorted.
   i.e. -u option implies -r (-r =3D sort by current cpu usage)
   Now I find the output format of -u very attractive, I often use it.
   But I can't overwrite the sort order from "cpu usage" to "memory
   usage" by additionally typing in -m,
   ps -axum still keeps the sort order "by cpu"

   So, if there is an extra commandline option for "sort by mem"
   why doesn't it have precedence over others ???
   Wouldn't it make sense ?

Would a problem report be justified for 2) as well ?

	Andreas ///

Example:
to 1) ps -v, ps -va and ps -vax look really weired

# ps -v
  PID STAT      TIME  SL  RE PAGEIN   VSZ  RSS   LIM TSIZ %CPU %MEM COMMAND
 9865 I+     0:00,19 421 33639      9  1576 1144     -  596  0,0  0,2 -su (=
tcsh)
29817 S      0:00,15   0 1192      8  1432 1008     -  596  0,0  0,2 -su (t=
csh)
30003 SN     0:00,26   3 509     26  4236 3356     -  200  0,0  0,6 xterm -=
T fb
30151 R+     0:00,00   0   0      0   468  240     -  188  0,0  0,0 ps -v
 7489 Is     0:00,02 34210 43639      6  1268  776     -   20  0,0  0,2 log=
in [pam]
  278 Is+    0:00,01 55492 55492      0   952  576     -   20  0,0  0,1 /us=
r/libexe
  277 Is+    0:00,00 55492 55492      0   952  576     -   20  0,0  0,1 /us=
r/libexe
  279 Is+    0:00,00 55492 55492      0   952  576     -   20  0,0  0,1 /us=
r/libexe


Best regards

	Andreas ///

--=20
Andreas Klemm - Powered by FreeBSD 4.7
Need a magic printfilter today ? -> http://www.apsfilter.org/

--BXVAT5kNtrzKuDFl
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+l9lVd3o+lGxvbLoRAmUmAKC38mra27HGawkNC7Vz52hkI8JjfACgrDLI
eRUDilZETuwb+PRRR39+1js=
=T/TP
-----END PGP SIGNATURE-----

--BXVAT5kNtrzKuDFl--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030412091605.GA30004>