Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2.fluke 9/24/84; site vax4.fluke.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!alberta!ubc-vision!uw-beaver!microsoft!fluke!jeff From: jeff@fluke.UUCP (Jeff Stearns) Newsgroups: net.unix-wizards Subject: Re: ps on SUNs has 51K of text! Message-ID: <2704@vax4.fluke.UUCP> Date: Mon, 23-Sep-85 20:38:37 EDT Article-I.D.: vax4.2704 Posted: Mon Sep 23 20:38:37 1985 Date-Received: Fri, 27-Sep-85 03:15:01 EDT References: <710@wdl1.UUCP> Organization: John Fluke Mfg. Co., Inc., Everett, WA Lines: 27 In article <710@wdl1.UUCP> jbn@wdl1.UUCP writes: > Feeping creatureism strikes again: SUN's version of "ps" has 51K of >text in it! I wondered why "ps" took so long to start. What on earth is >in there? The Bourne shell is less than half that size. > > text data bss dec hex >4.1BSD /bin/ps 16384 3072 26044 45500 b1bc >SUN 2.0 /bin/ps 51200 10240 51536 112976 1b950 > John Nagle For a hint, look at /bin/ps on Sun release 1.4, before the Yellow Pages were employed for uid <-> username translation. This will also give you some hints as to why it's slower. On a Sun release 1.4 system: % size /bin/ps text data bss dec hex 28672 6144 36044 70860 114cc On a related note, I have some simple speedups for /bin/ls on a Sun; it can double the speed of an ls -lg when you have large /etc/passwd and /etc/group files. (The distributed version of /bin/ls uses the Yellow Pages very suboptimally.) Contact me if you're interested. -- Jeff Stearns (206) 356-5064 John Fluke Mfg. Co. P.O. Box C9090 Everett WA 98043 {uw-beaver,decvax!microsof,ucbvax!lbl-csam,allegra,ssc-vax}!fluke!jeff Brought to you by Super Global Mega Corp .com