From owner-freebsd-stable Tue Feb 20 22:20:47 2001 Delivered-To: freebsd-stable@freebsd.org Received: from cage.simianscience.com (cage.simianscience.com [64.7.134.1]) by hub.freebsd.org (Postfix) with ESMTP id 54F5C37B491 for ; Tue, 20 Feb 2001 22:20:44 -0800 (PST) (envelope-from mike@sentex.net) Received: from chimp (fcage [192.168.0.2]) by cage.simianscience.com (8.11.2/8.11.2) with ESMTP id f1L6Kfg04219; Wed, 21 Feb 2001 01:20:41 -0500 (EST) (envelope-from mike@sentex.net) Message-Id: <4.2.2.20010221011641.0165ec90@marble.sentex.net> X-Sender: mdtancsa@marble.sentex.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Wed, 21 Feb 2001 01:20:40 -0500 To: "Peter Avalos" , From: Mike Tancsa Subject: RE: file: table is full In-Reply-To: References: <4.2.2.20010221004910.01fbce30@marble.sentex.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 12:22 AM 2/21/2001 -0600, Peter Avalos wrote: >I'm not that familiar with lsof, but I definitely got a different result: > >#> lsof | wc -l > 18493 >#> sysctl kern.openfiles >kern.openfiles: 15958 > >Is there an easy way to sort the info from lsof so I can better determine >where these fd's are being used? I don't feel like parsing through 18493 >lines by hand. Check the man pages. | sort can also be handy... Unless you really have thousands of processes running, a pattern should be somewhat obvious. Send the output to a file and do a simple sort based on the command or PID. If you see one program with the vast lion's share start to look at it. even something like lsof | awk '{print $1 "\t" $2}' | sort | uniq -c | sort -n ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Network Administration, mike@sentex.net Sentex Communications www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message