From owner-freebsd-bugs Fri May 18 10:50:10 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D7A6337B42C for ; Fri, 18 May 2001 10:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4IHo1O27733; Fri, 18 May 2001 10:50:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A279C37B422 for ; Fri, 18 May 2001 10:43:45 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4IHhj627243; Fri, 18 May 2001 10:43:45 -0700 (PDT) (envelope-from nobody) Message-Id: <200105181743.f4IHhj627243@freefall.freebsd.org> Date: Fri, 18 May 2001 10:43:45 -0700 (PDT) From: kstailey@yahoo.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/27433: ps binary does not do what the man page says. ps output columns are wrecked. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 27433 >Category: bin >Synopsis: ps binary does not do what the man page says. ps output columns are wrecked. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 18 10:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Kenneth Stailey >Release: 4.3-STABLE >Organization: Thomson Financial Corp >Environment: FreeBSD orwell.cda.com 4.3-STABLE FreeBSD 4.3-STABLE #1: Thu May 17 22:03:34 EDT 2001 root@orwell.cda.com:/usr/src/sys/compile/ORWELL i386 >Description: ps(1) man page says: re core residency time (in seconds; 127 = infinity) but the output looks like this instead: PID STAT TIME SL RE PAGEIN VSZ RSS LIM TSIZ %CPU %MEM COMMAND 62934 S 0:00.37 16 1723 1 2912 2256 - 1036 0.0 0.9 /home/httpd 92821 S 0:00.59 16 3184 0 2900 2248 - 1036 0.0 0.9 /home/httpd 96372 S 0:00.47 16 3123 1 2900 2244 - 1036 0.0 0.9 /home/httpd by "127 = infinity" they mean that values higher than 127 are represented as 127 3123 > 127 On NetBSD where someone fixed it the columns are not pushed over too far: PID STAT TIME SL RE PAGEIN VSZ RSS LIM TSIZ %CPU %MEM COMMAND 28398 S 5:07.20 1 127 942 23328 8336 57800 9388 0.1 12.8 /usr/loca 19246 Is 0:04.11 126 127 3900 16828 52 57800 136 0.0 0.1 mount_mfs 23242 Ss 826:29.45 0 127 33405 12312 17504 57800 2604 0.6 26.9 /usr/X11R >How-To-Repeat: Run ps with options that produce the RE and/or SL columns. Try "ps -v" >Fix: begin 644 ps.patch M+2TM(&ME>7=OR)P<&ED(BP@(E!0240B+`H@"0E.54Q,+"`P+"!E M=F%R+"!.54Q,+"!0241,14XL($5/1D8H95]P<&ED*2P@54E.5"P@4$E$1DU4 M?2P*(`E[(G!R:2(L(")04DDB+"!.54Q,+"`P+"!PR)R;&EN:R(L(")23$E.2R(L"D!`("TQ-C,L-R`K,38S+#<@0$`*(`D) M3E5,3"P@,"P@979AR)S=&%T92(L(")35$%4(BP@3E5,3"P@,"P@2!F;W(@ M=6YS:6=N960@9&%T80HK("`@("`@("`@*B\**R-D969I;F4@0TA+7TE.1C$R M-RAN*0D)*"@H;BD@/B`Q,C7!E("HI8G`I"BL* M(`ES=VET8V@@*'8M/G1Y<&4I('L*(`EC87-E($-(05(Z"BT)"2AV;VED*7!R M:6YT9BAO9FUT+"!V+3YW:61T:"P@*BAC:&%R("HI8G`I.PHK"0DH=F]I9"EP M7!E*3L*(`E]"BLC=6YD968@0TA+7TE.1C$R-PHK(W5N9&5F($=% M5`H@?0H@"B!V;VED"BTM+2!P2`Q."`Q,SHR-CHT M.2`R,#`Q"BLK*R!P#`R"0DO*B!L969T(&%D M:G5S="!O;B!O=71P=70@*'1R86EL:6YG(&)L86YK#`T"0DO*B!N965DF4@:7,@9'EN86UI8RHO"BLC9&5F M:6YE($E.1C$R-PDP>#$P"0DO*B`Q,C<@/2!I;F9I;FET>3H@:68@/B`Q,C