From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14510 invoked from network); 23 Jul 1998 19:52:11 -0000 Received: from pop3.foothill.net (HELO ns1.foothill.net) (doxx@206.170.175.1) by mail2.redhat.com with SMTP; 23 Jul 1998 19:52:11 -0000 Received: from localhost (doxx@localhost) by ns1.foothill.net (8.8.5/8.6.12) with SMTP id TAA00266 for ; Thu, 23 Jul 1998 19:51:48 GMT Date: Thu, 23 Jul 1998 19:51:48 +0000 (GMT) From: "Barrett G. Lyon" To: axp-list@redhat.com Subject: syslogd problems - fixed? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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