From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12142 invoked from network); 25 Sep 1998 19:40:49 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 25 Sep 1998 19:40:49 -0000 Received: from codonics.codonics.com (mta@codonics.codonics.com [206.99.131.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA02381 for ; Fri, 25 Sep 1998 15:40:44 -0400 Received: from codonics.com ([206.99.131.162]) by codonics.codonics.com (Post.Office MTA v3.1.2 release (PO203-101c) ID# 0-33978U100L100S0) with ESMTP id AAA8351 for ; Fri, 25 Sep 1998 19:40:06 +0000 Message-ID: <360BF189.C8AE5BBD@codonics.com> Date: Fri, 25 Sep 1998 15:39:53 -0400 From: borsburn@codonics.com (Bret Orsburn) Organization: Codonics, Inc. X-Mailer: Mozilla 4.04 [en] (WinNT; U) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: syslogd References: <3.0.5.32.19980925102631.0087cda0@mojo.calyx.net> <3.0.5.32.19980925102631.0087cda0@mojo.calyx.net> <19980925120320.A27377@xcski.com> <3.0.5.32.19980925112958.008ec100@mojo.calyx.net> <19980925135927.C582@xcski.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > Reply-To: > axp-list@redhat.com > Organization: > None Avail > To: > axp-list@redhat.com, greg@wind.rmcc.com > CC: > furio ercolessi , "B. James Phillippe" > 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 >