From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,869300ef1ef4e4ad,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-02-01 22:52:05 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!yarra-glen.aaii.oz.au!anthony From: anthony@aaii.oz.au (Anthony Baxter) Subject: pstat-t, a pstat -T clone. Message-ID: Sender: usenet@yarra-glen.aaii.oz.au (Network News) Organization: Australian Artificial Intelligence Institute Date: Wed, 2 Feb 1994 06:52:05 GMT 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.