From: "Barrett G. Lyon" <blyon@netpr.com>
To: axp-list@redhat.com
Subject: Re: syslogd problems - fixed?
Date: Mon, 27 Jul 1998 11:10:39 -0500 [thread overview]
Message-ID: <3.0.5.32.19980727111039.007ba400@mojo.calyx.net> (raw)
In-Reply-To: <199807271520.LAA09012@adder.cs.Virginia.EDU>
[-- Attachment #1: Type: text/plain, Size: 2316 bytes --]
I wrote the orig. message, there must be a fds leak in the Linux kernels.
Thats the only way that I can explane what happens. I can only keep my
machine up for about 10 days before the machine starts to crash. I had
lsof looping every 30 seconds to keep a list of open files in
/var/log/lsof. I was keeping my file-max at around 4096 until 9 days of
uptime where if I cat'd my lsof file and did a wc -l it was near over 4000
lines. Most of the open files where things like httpd, or the bots that my
shell users run, but nothing stuck out as using more than its share. At
that point things started to segfault, so I upped file-max to a rather
large number, and about 30 minutes later the machine crashed with "No free
inodes: contact Linus" on console (or something to that effect).
looks like the syslogd problem is just a result of the fds leak in the
linux kernel?
-Barrett
At 11:20 AM 7/27/98 -0400, you wrote:
>> > This works great, and the machine has been up for weeks with a very very
>> > heavy load, and until yesterday has not crashed. 20 days uptime
(personal
>> > alpha record).
>>
>> I set my file-max to 4096 two days ago, and today I got the syslogd
screw-up.
>> It doesn't seem to fix it, just delay it by a day or two.
>
>Well, that's actually useful information.
>
>When you look in /proc at which processes have files open, are there a
>few processes that keep on opening more and more?
>
>If you cat /proc/sys/kernel/file-nr, do you see the # of fd's in use
>steadily rising? This count seems to represent the size of a data
>structure so it may never shrink, but it's good enough for this
>purpose.
>
>Since (by default) 1 process can only open 256 fd's, the most likely
>explanation at this point is that the kernel isn't properly reusing
>closed fd's -- no one process (only 16) can eat up 4096 fd's. The
>proof of this guess is that you'll see file-nr keep on rising, but the
># of fd's indicated as in-use in /proc will be small.
>
>-- g
>
>--
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
--
Barrett G. Lyon
Data & Network Security Consultant Fax: 310-737-0196
Network Presence, LLC Email: blyon@netpr.com
--
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
next prev parent reply other threads:[~1998-07-27 16:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-27 15:20 syslogd problems - fixed? Greg Lindahl
1998-07-27 16:10 ` Barrett G. Lyon [this message]
1998-07-27 16:13 ` Paul Tomblin
-- strict thread matches above, loose matches on Subject: below --
1998-07-23 19:51 Barrett G. Lyon
1998-07-23 23:27 ` Quant-X Alpha Linux Support
1998-07-27 15:00 ` Paul Tomblin
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