Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: borsburn@codonics.com (Bret Orsburn)
To: axp-list@redhat.com
Subject: Re: syslogd
Date: Fri, 25 Sep 1998 15:39:53 -0400	[thread overview]
Message-ID: <360BF189.C8AE5BBD@codonics.com> (raw)
In-Reply-To: 19980925135927.C582@xcski.com

Paul Tomblin wrote:
> 
> Quoting Barrett G. Lyon (blyon@netpr.com):
> > per minute.  I don't even feel like looking up the exact message, but I
> > have seen lots of people post pastes of the same thing I got.
> 
> Yeah, mostly me.  Repeatedly.
> 
> > The only soution I have/had (and its a very very poor one at that) is to up
> > file-max and inode-max to a huge ungodly number.
> 
> Mine are at 8192 now.
> 
> > I am thinking about trying a dev kernel 2.1.122 maybe that will fix some of
> > my problems.  Ohh, that reminds me, what kernel do you run?
> 
> 2.0.35 from the RedHat updates site, built myself using egcs 1.0.3a.  I've
> also had it with 2.0.34 built with gcc.  I can't remember if I was getting it
> with 2.0.30.

Has anyone ever looked into this report from "Uncle George" to see if it
accounts for this whole class of problem? (My system doesn't fail very often, so
I don't have a lot of motivation/opportunity to pursue it.)

Here's his post:

(Replace the ntpdate with another similar trigger.... Does it fit?)

> Subject: 
>              Re: Inducing the syslogd/klogd syndrome
>  Resent-Date: 
>              21 Jul 1998 22:39:28 -0000
>  Resent-From: 
>              axp-list@redhat.com
>    Resent-CC: 
>              recipient list not shown: ;
>         Date: 
>              Tue, 21 Jul 1998 18:41:06 -0400
>         From: 
>              Uncle George <gatgul@voicenet.com>
>     Reply-To: 
>              axp-list@redhat.com
>  Organization: 
>              None Avail
>           To: 
>              axp-list@redhat.com, greg@wind.rmcc.com
>          CC: 
>              furio ercolessi <furio@spin.it>, "B. James Phillippe" <bryan@terran.org>
>   References: 
>              1
> 
> 
> 
> 
> It was the poll() system call in 2.0.33 kernel that causes a cryptic ( but familiar ) message to be
> printed by the kernel. Unfortunately this error message, from an unimplimented system service, does not
> have a '\n' at the tail end of its message.
> 
> Along comes ntpdate, which really doesnt understand that the poll() function doesn't really work at all in
> either glibc, or the kernel. BUT it tries really hard, at least 300,000 times, and fails at each attempt.
> The kernel, on the other hand is trying to log some 300,000 attempts to this invalid system service. This
> is all fine, with the exception that there are no newlines between each of the messages! - some run on
> sentence.
> 
> Then along comes klogd, which will try to log each of these messages ( via syslogd ). But there are no
> newlines, and klogd really hasn't been tested to handle a 4000 character message with no 'cr' of 'lf' in
> them. this is evident when it tries to move the 4000 character message into a 1024 character line buffer.
> rerally trashes the stack, and also trashes the kmsg channel, so it cant get any more info from the
> kernel. Klogd gets a read error, syslogd gets the report from klogd, and it cycles forever.
> 
> so whats to fix:
>     1) put a '\n' in the kernel message in traps.c:do_entSys(), is printk("msg ... \n");
>         this should keep klogd happy. This is simple to do, and appears to keep klogd
>         happy. If there are any other like-wise type-o's, then u will still get that forever spin
>         problem in klogd/syslogd.
> 
>     2) fix klogd so that longer than 1024 character kernel messages that dont have ( any ) terminating cr
> or lf, to not overwrite the stack, and static variables. If u do get one of these messages that u cant
> handle, or are improbable in nature - then a message should be written into the system log saying that
> something strange has happened. I dont have a perm fix, and this is being reported to the klogd/syslogd
> folks via greg@wind.rmcc.com
> 
> 
> 
> 
> -- 
> 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
>


  reply	other threads:[~1998-09-25 19:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-25 15:26 syslogd Barrett G. Lyon
1998-09-25 16:03 ` syslogd Paul Tomblin
1998-09-25 16:29   ` syslogd Barrett G. Lyon
1998-09-25 17:59     ` syslogd Paul Tomblin
1998-09-25 19:39       ` Bret Orsburn [this message]
1998-09-25 19:57         ` syslogd Paul Tomblin
1998-09-25 23:19       ` syslogd Uncle George
1998-09-26  2:27         ` syslogd Paul Tomblin
1998-09-26  9:30           ` syslogd furio ercolessi
1998-09-25 17:11 ` syslogd Brian E.W. Wood
  -- strict thread matches above, loose matches on Subject: below --
1998-09-25 15:46 syslogd Greg Lindahl
1998-09-26  1:06 syslogd Paul Tomblin
1998-09-26  2:27 syslogd Greg Lindahl
1998-09-26 14:04 ` syslogd Paul Tomblin
1998-09-26 17:29 syslogd Greg Lindahl
1998-09-26 18:25 ` syslogd 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