Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* pstat-t, a pstat -T clone.
@ 1994-02-02  6:52 Anthony Baxter
  0 siblings, 0 replies; only message in thread
From: Anthony Baxter @ 1994-02-02  6:52 UTC (permalink / raw)


Ok dokey, I've whipped up a replacement for pstat -T, that gives output
like, for example:

alcomie/root/304 # ./pstat-t
 412/1862 files
 126/ 788 vnodes
 828/2000 00k swap
  96/ 532 processes

Couple of things:

#1 Looking for a couple of suckers^H^H^H^H^H^H^Hvolunteers to test it - the 
source is only about 7K compressed and uuencoded, so anyone who can test it,
let me know, I'll mail it to you. (it requires root privs).

#2 My method for determining when something is 'in use' is maybe a bit
bogus - a 'file' is in use if the refcount is non-zero, which I'm reasonably
happy with, but what about vnodes? Methods I've looked at:
  vnode.v_usecount != 0
  vnode.v_type != VNON
  vnode.v_flag != 0

These all give different answers - which is correct?

Ta,
Anthony
--
anthony baxter @ /\/\||   |= Sarah McLachlan mailing =| australian artificial 
email: anthony@aaii.oz.au |= list: mail fte-request@ =| intelligence institute
phone: +613 663 7922      |= yoyo.cc.monash.edu.au.  =| 1 grattan st, carlton  
Practice random kindness and senseless acts of sarcasm.    australia 3053.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-02-02  6:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-02  6:52 pstat-t, a pstat -T clone Anthony Baxter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox