From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20211 invoked from network); 31 Jul 1998 14:59:29 -0000 Received: from relay.la.tis.com (198.51.22.11) by mail2.redhat.com with SMTP; 31 Jul 1998 14:59:29 -0000 Received: by relay.la.tis.com; id IAA08704; Fri, 31 Jul 1998 08:19:55 -0700 (PDT) Received: from unknown(205.242.228.209) by relay.la.tis.com via smap (3.2) id xma008702; Fri, 31 Jul 98 08:19:54 -0700 Message-Id: <3.0.5.32.19980731095533.007c0930@mojo.calyx.net> X-Sender: blyon@mojo.calyx.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Fri, 31 Jul 1998 09:55:33 -0500 To: axp-list@redhat.com From: "Barrett G. Lyon" Subject: Re: FDS, file-max? In-Reply-To: <199807311432.KAA09059@adder.cs.Virginia.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >The folks who know how to investigate this apparently don't have the >problem at all. I've been making suggestions as to how anyone seeing >the problem could isolate it; you could follow them and report back. > >Recipe: > >1) Increase file-max and inode-max >2) Monitor your system over time to see if: > 2a) some processes have many fd's open, by checking /proc/* > 2b) the actual number of fd's used (/proc/sys/kernel/file-nr) > steadily increases over time I had to up file-max and inode-max, or my machine would crash every day. As it is, I have gone beyond the default file-max of 1024. Okay, I started cooking: I wrote and croned this script to run every 12 hours. #!/bin/sh echo "-----------------------------" >>/root/fds-info date >>/root/fds-info echo -n "file-nr: " >>/root/fds-info cat /proc/sys/kernel/file-nr >>/root/fds-info echo -n "lsof: " >>/root/fds-info lsof | wc -l >>/root/fds-info echo "-----------------------------" >>/root/fds-info Now, if the kernel is busted; the difference between file-nr and the lsof line count will relfect it. If lsof shows a lower number than file-nr and file-nr gets larger daily, then we have a problem. I'm kinda unsure if lsof will double count some FDS, I guess we will find out. - -Barrett -----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.5.3 iQA/AwUBNcHa5Sav2qq1X8TaEQI5oACgl1SjfZL1R9LutPMTVl+UNgPFjW8AoPBk H74qwdykgKNyb9zTgIWKuVHr =IBu6 -----END PGP SIGNATURE----- -- Barrett G. Lyon Data & Network Security Consultant Fax: 310-737-0196 Network Presence, LLC Email: blyon@netpr.com --