Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: syslogd problems - fixed?
@ 1998-07-27 15:20 Greg Lindahl
  1998-07-27 16:10 ` Barrett G. Lyon
  1998-07-27 16:13 ` Paul Tomblin
  0 siblings, 2 replies; 6+ messages in thread
From: Greg Lindahl @ 1998-07-27 15:20 UTC (permalink / raw)
  To: axp-list

> > 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


^ permalink raw reply	[flat|nested] 6+ messages in thread
* syslogd problems - fixed?
@ 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
  0 siblings, 2 replies; 6+ messages in thread
From: Barrett G. Lyon @ 1998-07-23 19:51 UTC (permalink / raw)
  To: axp-list


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1998-07-27 16:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-27 15:20 syslogd problems - fixed? Greg Lindahl
1998-07-27 16:10 ` Barrett G. Lyon
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox