From owner-freebsd-stable@FreeBSD.ORG Sat Apr 12 02:20:14 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F1FA37B401 for ; Sat, 12 Apr 2003 02:20:14 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C38043F75 for ; Sat, 12 Apr 2003 02:20:13 -0700 (PDT) (envelope-from andreas@klemm.apsfilter.org) Received: from srv1.cosmo-project.de (localhost [IPv6:::1]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h3C9KAcx028527 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sat, 12 Apr 2003 11:20:11 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: (from uucp@localhost)h3C9K94d028526 for stable@freebsd.org; Sat, 12 Apr 2003 11:20:09 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: from titan.klemm.apsfilter.org (localhost.klemm.apsfilter.org [127.0.0.1]) by klemm.apsfilter.org (8.12.9/8.12.8) with ESMTP id h3C9G648030310 for ; Sat, 12 Apr 2003 11:16:11 +0200 (CEST) (envelope-from andreas@titan.klemm.apsfilter.org) Received: (from andreas@localhost) by titan.klemm.apsfilter.org (8.12.9/8.12.8/Submit) id h3C9G5M1030309 for stable@freebsd.org; Sat, 12 Apr 2003 11:16:05 +0200 (CEST) Date: Sat, 12 Apr 2003 11:16:05 +0200 From: Andreas Klemm To: stable@freebsd.org Message-ID: <20030412091605.GA30004@titan.klemm.apsfilter.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline X-Operating-System: FreeBSD 4.8-STABLE X-Disclaimer: A free society is one where it is safe to be unpopular User-Agent: Mutt/1.5.3i Subject: ps commandline option woes (-v weired formatting, more power for -m) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2003 09:20:14 -0000 --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--