From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5f8e9e65c58c1864 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-29 00:30:35 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!usc!nic-nac.CSU.net!news.Cerritos.edu!news.Arizona.EDU!CS.Arizona.EDU!davidm From: davidm@cs.arizona.edu (David Mosberger-Tang) Newsgroups: comp.unix.osf.osf1 Subject: Re: top or syd for OSF/1 v3.0? Date: 28 Sep 1994 17:07:41 GMT Organization: The University of Arizona, Tucson, AZ Distribution: world Message-ID: References: <36bgmoINN1m0@usenet.pa.dec.com> NNTP-Posting-Host: baskerville.cs.arizona.edu In-reply-to: neideck@nestvx.enet.dec.com's message of 28 Sep 1994 10:31:52 GMT In article <36bgmoINN1m0@usenet.pa.dec.com> neideck@nestvx.enet.dec.com (Burkhard Neidecker-Lutz) writes: Burkhard> syd works on V3.0 as is. In the top-3.3 sources just Burkhard> eliminate the references to lastpid (the single nlist Burkhard> call) as lastpid really is useless with the new PID Burkhard> allocation scheme in v3.0. Just to clarify (hopefully): I had no luck with my old V1.3 binary of syd. However, the "syd" pointer in: http://www.dec.com/info/misc/pub-domain-osf1.txt.html will lead to source that does compile and work under V3.0. In the case you still want a working top, a patch is now available via anonymous ftp from: ftp://cage.cs.arizona.edu/pub/davidm/top-beta3.3+alpha.patch-v3.0 The patch is relative to top-beta3.3+alpha.tar.Z (also available via the pub-domain-osf1.txt.html page). It fixes the lastpid problem that Burkhard mentioned (although in a slighty different manner: lastpid is now simply the highest pid that top finds will preparing the display). It also fixes a bug in computing process states and in computing whether a process is swapped out. The original version used an uninitialized variable to determine whether a process is swapped out. The patch fixes this to use RSS==0 instead (this isn't the proper algorithm either, but I didn't find a way to access a process's INCORE flag via table() in the little time I was willing to spend on top). In summary, I think it's better to use syd for now, as it provides more information and is probably less buggy than the patched beta version of top. --david -- David Mosberger-Tang; Dept. of CS; The University of Arizona; Tucson, AZ 85721 davidm@cs.arizona.edu; http://www.cs.arizona.edu/xkernel/www/people/davidm.html