From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] killing rogue processes From: mirtchov@cpsc.ucalgary.ca In-Reply-To: <027001c3c5f8$0fd08170$a4079486@SOMA> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 18 Dec 2003 13:29:34 -0700 Topicbox-Message-UUID: aacf44b2-eacc-11e9-9e20-41e7f4b1d025 >> I have an 'lsof' that lists all file descriptors + process #s.. just > grepping for 'tcp' >> gave me the clues... > > you ported that to plan 9? no, I wrote my own: octarine% wc -l $home/kern/cmd/lsof.c 89 /usr/andrey/kern/cmd/lsof.c octarine% there's also top. for now it is a perl script, but I have been thinking of ways to make it look like stats a bit more (how would you represent different chunks of processor time? pie chart?), it's another 45 lines of code and actually that's what helped me find what was causing all the load on the system.