From: "Barrett G. Lyon" <blyon@netpr.com>
To: axp-list@redhat.com
Subject: Re: FDS, file-max?
Date: Fri, 31 Jul 1998 09:55:33 -0500 [thread overview]
Message-ID: <3.0.5.32.19980731095533.007c0930@mojo.calyx.net> (raw)
In-Reply-To: <199807311432.KAA09059@adder.cs.Virginia.EDU>
-----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
--
next prev parent reply other threads:[~1998-07-31 14:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-31 14:32 FDS, file-max? Greg Lindahl
1998-07-31 14:55 ` Barrett G. Lyon [this message]
1998-07-31 15:13 ` Paul Tomblin
1998-07-31 15:34 ` Barrett G. Lyon
-- strict thread matches above, loose matches on Subject: below --
1998-07-31 12:31 Greg Lindahl
1998-07-31 14:14 ` Barrett G. Lyon
1998-07-30 13:16 Greg Lindahl
1998-07-29 23:16 Barrett G. Lyon
1998-07-30 16:48 ` Keith Baker
1998-07-30 22:09 ` scorpio
[not found] ` <Pine.BSI.3.95.980730124121.7465A-100000@shell1.cybercom.ne t>
1998-07-31 4:32 ` Barrett G. Lyon
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox