From: "Barrett G. Lyon" <doxx@ns1.foothill.net>
To: axp-list@redhat.com
Subject: syslogd problems - fixed?
Date: Thu, 23 Jul 1998 19:51:48 +0000 (GMT) [thread overview]
Message-ID: <Pine.BSI.3.95.980723193017.28017A-100000@ns1.foothill.net> (raw)
This email is mostly a FYI,
I had the syslogd problem where it would take-over the machine, and cause
a lockup. I was reading that a few other people were having problems with
syslogd also.
My machine was very unstable, and I noticed that with the v2.1 kernels
there was no "/proc/sys" direcotry structure. I'm not sure if it should
be that way or not, but I did not have anything like
"/proc/sys/kernel/file-max" and other handy information.
What I noticed was linux's default "file-max" was set to only 1024 by.
Now I know that linux's fds are not static, but I am not 100%
sure how they work, yet 1024 is some-what of a limit.
Now, keep in mind that my machine would crash almost on a daily basis,
each time seemingly due to syslogd. Everything in the /var/log/messages
was normal, the machine would just stop. Well one day, I got this:
Jun 8 02:55:21 arsenic last message repeated 503409 times
That message was repeated 506 times!!!
The actual message that was repeating was:
Jun 7 21:10:29 arsenic syslogd: select: Bad file descriptor
When I saw that, I wrote a script that ran lsof, and droped everything to
a file. I would do a "cat lsof-output | wc -l" after a system crash and
sure enough it was about 1000 or so lines long. What I think that means
is that I was almost hitting the max file descriptors that the kernel was
configed for by default.
When it hit the max limit, bad things started happening, and the machine
would just start to die, and the syslogd stuff was just a result of
running out of fds.
I then just ditched the v2.1 kernels and went with the stable kernel
2.0.34. With the 2.0.34 kernel I had the full proc filesystem, and I
could bump up the /proc/sys/kernel/file-max to 4096, rather than 1024.
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).
Yeserday's crash reported "no free inodes contact Linus" on console.
I think there is some ratio with the file-max, inode-max, and inode-nr.
But, I don't know much about that, so someone else will hafta tell me
about that.
Anyway, that is my non-technical fix for my problems, and I may
miss-understand a few things about what was actually going on, but
never-the-less IT WORKS! :)
-Barrett
next reply other threads:[~1998-07-23 19:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-23 19:51 Barrett G. Lyon [this message]
1998-07-23 23:27 ` syslogd problems - fixed? Quant-X Alpha Linux Support
1998-07-27 15:00 ` Paul Tomblin
-- strict thread matches above, loose matches on Subject: below --
1998-07-27 15:20 Greg Lindahl
1998-07-27 16:10 ` Barrett G. Lyon
1998-07-27 16:13 ` 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