Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Hi CPU with klogd/syslogd
       [not found]   ` <Pine.LNX.3.96.980803101709.28200A-100000@bhalpha1.nibh.go. jp>
@ 1998-06-03  1:27     ` Barrett G. Lyon
  1998-08-03  1:54       ` Paul Tomblin
  0 siblings, 1 reply; 6+ messages in thread
From: Barrett G. Lyon @ 1998-06-03  1:27 UTC (permalink / raw)
  To: axp-list

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>On Sun, 2 Aug 1998, Paul Tomblin wrote:
>
>>You've got the syslogd bug, same as many, many others of us.  I bet
if you
>>look in /var/log/messages, you'll see:
>>Jul 16 15:39:02 canoe syslogd: select: Bad file descriptor
>>Jul 16 15:39:33 canoe last message repeated 32511 times

This is NOT a syslogd bug!!  Please read the threads about: FSD.  What
is happeneing is you are running out of file descriptors!  This
usually crashes the machiens in most cases, yet in others syslogd
looks like it is broken.  When syslogd starts to report bad fds, you
may also experence problems like programs segfaulting, and/or total
machine lockup.

What needs to be done, to fix this is to up the
/proc/sys/kernel/file-max, and inode-max to a much higher number by
default.  I've asked people what they feel is a good number to use, I
can never get any real good feedback on that.  Basically anything
about 4x what is default will get you by.

- -Barrett


-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.5.3

iQA/AwUBNXSmeSav2qq1X8TaEQJ7GACfbcyOa3t+KF7ny2LjvE//eJod20AAnA2N
8ovwfvYkwg7Reya/gDzO4oV1
=nvNk
-----END PGP SIGNATURE-----

--
Barrett G. Lyon                                 
Data & Network Security Consultant                Fax: 310-737-0196
Network Presence, LLC                           Email: blyon@netpr.com
--


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

* Hi CPU with klogd/syslogd
@ 1998-08-02 14:39 Larry Creech
  1998-08-02 18:11 ` Paul Wouters
  1998-08-02 18:53 ` Paul Tomblin
  0 siblings, 2 replies; 6+ messages in thread
From: Larry Creech @ 1998-08-02 14:39 UTC (permalink / raw)
  To: axp-list

I've noticed very high CPU utilization (~50%)using the precompiled 2.0.34 
from redhat on the AS-200 4/233. Is this a proc problem? If I kill klogd 
and not syslog, things look normal.


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

* Re: Hi CPU with klogd/syslogd
  1998-08-02 14:39 Hi CPU with klogd/syslogd Larry Creech
@ 1998-08-02 18:11 ` Paul Wouters
  1998-08-02 18:53 ` Paul Tomblin
  1 sibling, 0 replies; 6+ messages in thread
From: Paul Wouters @ 1998-08-02 18:11 UTC (permalink / raw)
  To: axp-list

On Sun, 2 Aug 1998, Larry Creech wrote:

> I've noticed very high CPU utilization (~50%)using the precompiled 2.0.34 
> from redhat on the AS-200 4/233. Is this a proc problem? If I kill klogd 
> and not syslog, things look normal.

Usually this means something very Bad[tm] is happening. This is generating
so much logging info, that the log daemon hogs the cpu.
The best thing to do is to shoot the daemon and start checking the huge
logfile in /var/log to see the _real_ problem that caused it. When it is
fixed, restart the log daemon.

Paul

(try adding a bad option in /etc/ppp/option while using persistent etc :)


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

* Re: Hi CPU with klogd/syslogd
  1998-08-02 14:39 Hi CPU with klogd/syslogd Larry Creech
  1998-08-02 18:11 ` Paul Wouters
@ 1998-08-02 18:53 ` Paul Tomblin
       [not found]   ` <Pine.LNX.3.96.980803101709.28200A-100000@bhalpha1.nibh.go. jp>
  1998-08-03  1:20   ` Tom Holroyd
  1 sibling, 2 replies; 6+ messages in thread
From: Paul Tomblin @ 1998-08-02 18:53 UTC (permalink / raw)
  To: axp-list

Quoting Larry Creech (lcreech@lonestar.rcclub.org):
> I've noticed very high CPU utilization (~50%)using the precompiled 2.0.34 
> from redhat on the AS-200 4/233. Is this a proc problem? If I kill klogd 
> and not syslog, things look normal.

You've got the syslogd bug, same as many, many others of us.  I bet if you
look in /var/log/messages, you'll see:
Jul 16 15:39:02 canoe syslogd: select: Bad file descriptor
Jul 16 15:39:33 canoe last message repeated 32511 times
Jul 16 15:40:34 canoe last message repeated 79918 times
Jul 16 15:41:35 canoe last message repeated 76453 times
Jul 16 15:42:36 canoe last message repeated 76384 times
Jul 16 15:43:37 canoe last message repeated 81842 times
Jul 16 15:44:38 canoe last message repeated 84954 times

Some people have reported that they could delay the onset of this bug by
increasing the number of file descriptors, but that has *NOT* been the case
for me.

-- 
Paul Tomblin, ptomblin@xcski.com.
"An appointment is an engagement to see someone, while a morningstar is a
large lump of metal used for viciously crushing skulls.  It is important not
to confuse the two, isn't it, Mr. --?" - Terry Pratchett


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

* Re: Hi CPU with klogd/syslogd
  1998-08-02 18:53 ` Paul Tomblin
       [not found]   ` <Pine.LNX.3.96.980803101709.28200A-100000@bhalpha1.nibh.go. jp>
@ 1998-08-03  1:20   ` Tom Holroyd
  1 sibling, 0 replies; 6+ messages in thread
From: Tom Holroyd @ 1998-08-03  1:20 UTC (permalink / raw)
  To: axp-list

On Sun, 2 Aug 1998, Paul Tomblin wrote:

>You've got the syslogd bug, same as many, many others of us.  I bet if you
>look in /var/log/messages, you'll see:
>Jul 16 15:39:02 canoe syslogd: select: Bad file descriptor
>Jul 16 15:39:33 canoe last message repeated 32511 times

It's also been reported that there was a buggy printk() that didn't have
a newline at the end.  Just checking, I notice hundreds of printk()s that
don't have newlines.  (Some of them are of the form
	printk("stuff");
	printk("more stuff\n");
and those are OK, but there are some without any \n.)
Don't know if that's related, but a quick hack in printk() to always do a
newline might shed some light.

Dr. Tom
The 9th Amendment of the U.S. Constitution:
"The enumeration in the Constitution, of certain rights, shall not be
construed to deny or disparage others retained by the people."


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

* Re: Hi CPU with klogd/syslogd
  1998-06-03  1:27     ` Barrett G. Lyon
@ 1998-08-03  1:54       ` Paul Tomblin
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Tomblin @ 1998-08-03  1:54 UTC (permalink / raw)
  To: axp-list

Quoting Barrett G. Lyon (blyon@netpr.com):
> 
> This is NOT a syslogd bug!!  Please read the threads about: FSD.  What
> is happeneing is you are running out of file descriptors!  This
> usually crashes the machiens in most cases, yet in others syslogd
> looks like it is broken.  When syslogd starts to report bad fds, you
> may also experence problems like programs segfaulting, and/or total
> machine lockup.

Bullshit.  I CONSISTENTLY get this problem after 1-3 days of running syslogd,
and file-nr never goes above 450.  It has NOTHING WHAT SO EVER to do with
file-max and inode-max.

-- 
Paul Tomblin, ptomblin@xcski.com.
"An appointment is an engagement to see someone, while a morningstar is a
large lump of metal used for viciously crushing skulls.  It is important not
to confuse the two, isn't it, Mr. --?" - Terry Pratchett


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

end of thread, other threads:[~1998-08-03  1:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-02 14:39 Hi CPU with klogd/syslogd Larry Creech
1998-08-02 18:11 ` Paul Wouters
1998-08-02 18:53 ` Paul Tomblin
     [not found]   ` <Pine.LNX.3.96.980803101709.28200A-100000@bhalpha1.nibh.go. jp>
1998-06-03  1:27     ` Barrett G. Lyon
1998-08-03  1:54       ` Paul Tomblin
1998-08-03  1:20   ` Tom Holroyd

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