* syslogd again
@ 1998-05-26 14:02 Paul Tomblin
1998-05-26 18:19 ` William C Bonner
1998-05-28 18:08 ` Paul Tomblin
0 siblings, 2 replies; 9+ messages in thread
From: Paul Tomblin @ 1998-05-26 14:02 UTC (permalink / raw)
To: axp-list
I see from the archives that I'm not the only person suffering from this, but
I wonder if anybody has a good lead on a cure, or if RedHat is working on it?
Even a good work-around would be nice.
The system:
DEC UDB, 166MHz, 96Mb RAM, 2 SCSI drives, SCSI CD-ROM, 17" monitor. Connected
to my ISP via PPP and a crappy old external modem (V.FAST, not V.42).
Connected via 10baseT ethernet to a RedHat/Intel box which NFS mounts some of
its drives, and a Mac which is going to be sharing a printer as soon as I
figure out how to configure netatalk. Both the Intel box and the Mac use the
Alpha as their gateway to the net using IP forwarding.
The software:
RedHat 5.0, all the updates from the Errata ftp site (kept in sync using
autorpm). Mostly set up as a news and mail server, running innd and sendmail,
and several majordomo mailing lists.
The problem:
Frequently, I'll wake up in the morning (or it can happen mid-day too) to find
my machine running at a load average 1.0 and several processes wedged. A look
at /var/log/messages shows the following:
May 25 23:46:16 canoe identd[7368]: Successful lookup: 18718 , 25 : majordomo.majordomo
May 25 23:46:16 canoe syslogd: select: Bad file descriptor
May 25 23:46:47 canoe last message repeated 40770 times
May 25 23:47:48 canoe last message repeated 81780 times
...
When I spotted this in the morning, I attempted to "killall -1 syslogd", which
didn't help:
May 26 06:48:12 canoe last message repeated 45192 times
May 26 06:48:12 canoe syslogd 1.3-3: restart.
May 26 06:48:12 canoe syslogd: select: Bad file descriptor
May 26 06:48:43 canoe last message repeated 21332 times
May 26 06:49:44 canoe last message repeated 47240 times
May 26 06:49:57 canoe last message repeated 10698 times
So I tried to kill syslogd. BIG MISTAKE! The load average climbed into the
stratosphere, and even "shutdown -h now" didn't help. I had to power down.
--
Paul Tomblin, ptomblin@xcski.com.
"The day Microsoft makes something that doesn't suck is probably the day they
start making vacuum cleaners" - Ernst Jan Plugge
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: syslogd again
1998-05-26 14:02 Paul Tomblin
@ 1998-05-26 18:19 ` William C Bonner
1998-05-28 18:08 ` Paul Tomblin
1 sibling, 0 replies; 9+ messages in thread
From: William C Bonner @ 1998-05-26 18:19 UTC (permalink / raw)
To: axp-list
I've seen these same problems on my SX164 machine. I've not gotten any
useful information, and don't even know what package the syslogd is part
of. (if I want to get the sources myself and try to figure out what is
going on)
I was able to avoid the problem simply by not running syslogd, but that
is not a satisfactory condition. That's what I've been doing though
since it seems that the problem occurs when (in my case) the ftp daemon
makes lots of connections to the logger. I'm running this on a heavily
used ftp site, and having the site go down is not good. Killing off the
logger made the site stable, and since I'm getting ftp stats from the
ftpd directly, it seeemd the best policy.
I was able to kill off the syslogd successfully most of the time
though. I simply ran "/etc/rc.d/init.d/syslog stop" to shut it down.
Paul Tomblin wrote:
> I see from the archives that I'm not the only person suffering from this, but
> I wonder if anybody has a good lead on a cure, or if RedHat is working on it?
> Even a good work-around would be nice.
>
> The system:
> DEC UDB, 166MHz, 96Mb RAM, 2 SCSI drives, SCSI CD-ROM, 17" monitor. Connected
> to my ISP via PPP and a crappy old external modem (V.FAST, not V.42).
> Connected via 10baseT ethernet to a RedHat/Intel box which NFS mounts some of
> its drives, and a Mac which is going to be sharing a printer as soon as I
> figure out how to configure netatalk. Both the Intel box and the Mac use the
> Alpha as their gateway to the net using IP forwarding.
>
> The software:
> RedHat 5.0, all the updates from the Errata ftp site (kept in sync using
> autorpm). Mostly set up as a news and mail server, running innd and sendmail,
> and several majordomo mailing lists.
>
> The problem:
> Frequently, I'll wake up in the morning (or it can happen mid-day too) to find
> my machine running at a load average 1.0 and several processes wedged. A look
> at /var/log/messages shows the following:
>
> May 25 23:46:16 canoe identd[7368]: Successful lookup: 18718 , 25 : majordomo.majordomo
> May 25 23:46:16 canoe syslogd: select: Bad file descriptor
> May 25 23:46:47 canoe last message repeated 40770 times
> May 25 23:47:48 canoe last message repeated 81780 times
> ...
>
> When I spotted this in the morning, I attempted to "killall -1 syslogd", which
> didn't help:
>
> May 26 06:48:12 canoe last message repeated 45192 times
> May 26 06:48:12 canoe syslogd 1.3-3: restart.
> May 26 06:48:12 canoe syslogd: select: Bad file descriptor
> May 26 06:48:43 canoe last message repeated 21332 times
> May 26 06:49:44 canoe last message repeated 47240 times
> May 26 06:49:57 canoe last message repeated 10698 times
>
> So I tried to kill syslogd. BIG MISTAKE! The load average climbed into the
> stratosphere, and even "shutdown -h now" didn't help. I had to power down.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: syslogd again
1998-05-26 14:02 Paul Tomblin
1998-05-26 18:19 ` William C Bonner
@ 1998-05-28 18:08 ` Paul Tomblin
1998-05-28 18:29 ` Jim Bourne
1998-05-29 9:52 ` james
1 sibling, 2 replies; 9+ messages in thread
From: Paul Tomblin @ 1998-05-28 18:08 UTC (permalink / raw)
To: axp-list
Quoting Paul Tomblin (ptomblin@xcski.com):
> The problem:
> Frequently, I'll wake up in the morning (or it can happen mid-day too) to find
> my machine running at a load average 1.0 and several processes wedged. A look
> at /var/log/messages shows the following:
>
> May 25 23:46:16 canoe identd[7368]: Successful lookup: 18718 , 25 : majordomo.majordomo
> May 25 23:46:16 canoe syslogd: select: Bad file descriptor
> May 25 23:46:47 canoe last message repeated 40770 times
> May 25 23:47:48 canoe last message repeated 81780 times
> ...
For the last two days in a row, this problem has been happening within a few
hours of noon. It's really pissing me off, because yesterday's attempts to
"fix" the problem caused me to have to come home from work to manually fsck
the disk. Today's solution was to have my wife "killall syslogd", and things
seem to ok now.
Does anybody know of any dire consequences of not running syslogd?
--
Paul Tomblin, ptomblin@xcski.com.
"The day Microsoft makes something that doesn't suck is probably the day they
start making vacuum cleaners" - Ernst Jan Plugge
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: syslogd again
1998-05-28 18:08 ` Paul Tomblin
@ 1998-05-28 18:29 ` Jim Bourne
1998-05-28 18:41 ` Paul Tomblin
1998-05-29 9:52 ` james
1 sibling, 1 reply; 9+ messages in thread
From: Jim Bourne @ 1998-05-28 18:29 UTC (permalink / raw)
To: axp-list
On Thu, 28 May 1998, Paul Tomblin wrote:
> Quoting Paul Tomblin (ptomblin@xcski.com):
>
> For the last two days in a row, this problem has been happening within a few
> hours of noon. It's really pissing me off, because yesterday's attempts to
> "fix" the problem caused me to have to come home from work to manually fsck
> the disk. Today's solution was to have my wife "killall syslogd", and things
> seem to ok now.
We were running into this same problem with syslogd, but only when it remote
logs. Our news spooler would become completely unusable after only a few
hours, same error message etc. Once set to log only locally, it stopped.
I could only trace it to around line 918 of syslogd.c. I was planning on
debugging it more, and fixing the problem (then posting the patch) but
haven't got back to it yet...
The code:
if (nfds < 0) {
if (errno != EINTR)
logerror("select");
dprintf("Select interrupted.\n");
continue;
}
should maybe reset all the file descriptors if errno == EBADF.
Anyone try something like this, or if they have the time could they?
>
> Does anybody know of any dire consequences of not running syslogd?
more free drive space :)
Hope that helps anyone.
Regards
Jim
> Paul Tomblin, ptomblin@xcski.com.
--
James Bourne | E-Mail: jbourne@island.net
Systems Administrator | WWW: http://www.island.net
Island Internet Inc. | Linux - The choice of a GNU generation
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: syslogd again
1998-05-28 18:29 ` Jim Bourne
@ 1998-05-28 18:41 ` Paul Tomblin
0 siblings, 0 replies; 9+ messages in thread
From: Paul Tomblin @ 1998-05-28 18:41 UTC (permalink / raw)
To: axp-list
Quoting Jim Bourne (jbourne@island.net):
>
> We were running into this same problem with syslogd, but only when it remote
> logs. Our news spooler would become completely unusable after only a few
> hours, same error message etc. Once set to log only locally, it stopped.
I'm not running any remote syslogds. One thing that is possibly of interest
though, is that it generally seems to happen around 45 minutes after the hour.
At 30 minutes past the hour, I have a crontab that runs a program called
"newsx" to suck Usenet articles off of my ISP and a friend's news server. I
have no idea how long that takes, but I think it's around 15 minutes. At the
end of the newsx, I start nntpsend to send all the news articles to the
appropriate other servers. I wonder if it's something that nntpsend does
that's driving syslogd insane?
The smoking gun:
grep 'Bad file descriptor' /var/log/message*
/var/log/messages:May 28 12:44:04 canoe syslogd: select: Bad file descriptor
/var/log/messages.1:May 27 13:40:01 canoe syslogd: select: Bad file descriptor
/var/log/messages.3:May 25 23:46:16 canoe syslogd: select: Bad file descriptor
/var/log/messages.3:May 26 06:48:12 canoe syslogd: select: Bad file descriptor
/var/log/messages.5:May 20 15:52:30 canoe syslogd: select: Bad file descriptor
--
Paul Tomblin, ptomblin@xcski.com.
"The day Microsoft makes something that doesn't suck is probably the day they
start making vacuum cleaners" - Ernst Jan Plugge
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: syslogd again
@ 1998-05-28 18:55 M. Nicklaus
1998-05-28 19:02 ` Paul Tomblin
0 siblings, 1 reply; 9+ messages in thread
From: M. Nicklaus @ 1998-05-28 18:55 UTC (permalink / raw)
To: axp-list; +Cc: mn1
On Thu, 28 May 1998 14:41:41, Paul Tomblin <ptomblin@xcski.com> wrote:
> I wonder if it's something that nntpsend does that's driving syslogd insane?
No, I don't think so. We've seen this problem occur with various
number crunching applications, after typically several hours of CPU time.
We now routinely kill syslogd and klogd upon bootup, and all is well
on our Alphas thereafter... :-)
Marc
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: syslogd again
1998-05-28 18:55 syslogd again M. Nicklaus
@ 1998-05-28 19:02 ` Paul Tomblin
0 siblings, 0 replies; 9+ messages in thread
From: Paul Tomblin @ 1998-05-28 19:02 UTC (permalink / raw)
To: axp-list
Quoting M. Nicklaus (mn1@helix.nih.gov):
> On Thu, 28 May 1998 14:41:41, Paul Tomblin <ptomblin@xcski.com> wrote:
> > I wonder if it's something that nntpsend does that's driving syslogd insane?
>
> No, I don't think so. We've seen this problem occur with various
> number crunching applications, after typically several hours of CPU time.
Don't think I have anything that runs for hours at a time that chews up much
CPU time. Just regular system daemons like innd and sendmail. Interesting
that so many of my problems occur around 45 minutes after the hour, though.
> We now routinely kill syslogd and klogd upon bootup, and all is well
> on our Alphas thereafter... :-)
Why don't you just not start it, instead of starting it and killing it?
--
Paul Tomblin, ptomblin@xcski.com.
"The day Microsoft makes something that doesn't suck is probably the day they
start making vacuum cleaners" - Ernst Jan Plugge
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: syslogd again
@ 1998-05-28 19:21 M. Nicklaus
0 siblings, 0 replies; 9+ messages in thread
From: M. Nicklaus @ 1998-05-28 19:21 UTC (permalink / raw)
To: axp-list; +Cc: mn1
On Thu, 28 May 1998 15:02:29, Paul Tomblin <ptomblin@xcski.com> wrote:
> > We now routinely kill syslogd and klogd upon bootup, and all is well
> > on our Alphas thereafter... :-)
>
> Why don't you just not start it, instead of starting it and killing it?
Indeed, same difference. ;-)
Marc
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: syslogd again
1998-05-28 18:08 ` Paul Tomblin
1998-05-28 18:29 ` Jim Bourne
@ 1998-05-29 9:52 ` james
1 sibling, 0 replies; 9+ messages in thread
From: james @ 1998-05-29 9:52 UTC (permalink / raw)
To: axp-list
Paul Tomblin wrote
>
>Quoting Paul Tomblin (ptomblin@xcski.com):
>> The problem:
>> Frequently, I'll wake up in the morning (or it can happen mid-day too) to find
>> my machine running at a load average 1.0 and several processes wedged. A look
>> at /var/log/messages shows the following:
>>
>> May 25 23:46:16 canoe identd[7368]: Successful lookup: 18718 , 25 : majordomo.majordomo
>> May 25 23:46:16 canoe syslogd: select: Bad file descriptor
>> May 25 23:46:47 canoe last message repeated 40770 times
>> May 25 23:47:48 canoe last message repeated 81780 times
>> ...
>
>For the last two days in a row, this problem has been happening within a few
>hours of noon. It's really pissing me off, because yesterday's attempts to
>"fix" the problem caused me to have to come home from work to manually fsck
>the disk. Today's solution was to have my wife "killall syslogd", and things
>seem to ok now.
>
>Does anybody know of any dire consequences of not running syslogd?
this happened to us with the stock rh5 2.0.31 kernel on our selfbuilt
lx164 ( 2meg cache, 533mhz )
It went away when i rebuilt the kernel to 2.0.33 but now we get alignment
faults whenever we move the mouse :) and the kernel wants a TGA graphics
card, which we dont have so no console messages either
--
http://www.maths.ex.ac.uk/~james/tekno
Watch out for "Medium Length Hair" EP on Science City(Sci 12)
Most Intelligent Customers Realize Our Software is Only for Fools and Teenagers
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1998-05-29 9:52 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-28 18:55 syslogd again M. Nicklaus
1998-05-28 19:02 ` Paul Tomblin
-- strict thread matches above, loose matches on Subject: below --
1998-05-28 19:21 M. Nicklaus
1998-05-26 14:02 Paul Tomblin
1998-05-26 18:19 ` William C Bonner
1998-05-28 18:08 ` Paul Tomblin
1998-05-28 18:29 ` Jim Bourne
1998-05-28 18:41 ` Paul Tomblin
1998-05-29 9:52 ` james
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox