From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] killing rogue processes In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ohqaigesejeuciytbguitbodgo" Date: Thu, 18 Dec 2003 22:07:30 -0500 Topicbox-Message-UUID: ab3c8626-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-ohqaigesejeuciytbguitbodgo Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I updated lsof.c to sources. --upas-ohqaigesejeuciytbguitbodgo Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Thu Dec 18 15:31:06 EST 2003 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Thu Dec 18 15:31:03 EST 2003 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 795DA19D50; Thu, 18 Dec 2003 15:30:51 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.16.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id CBCA119C39; Thu, 18 Dec 2003 15:30:37 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 87FFE19B86; Thu, 18 Dec 2003 15:29:52 -0500 (EST) Received: from octarine.ucalgary.ca (unknown [136.159.220.105]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id B19C119B3A for <9fans@cse.psu.edu>; Thu, 18 Dec 2003 15:29:40 -0500 (EST) 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 Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Thu, 18 Dec 2003 13:29:34 -0700 X-Spam-Status: No, hits=-0.2 required=5.0 tests=IN_REP_TO,NO_REAL_NAME,QUOTED_EMAIL_TEXT version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) >> 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. --upas-ohqaigesejeuciytbguitbodgo--