Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Craig P Prescott <prescott@phys.ufl.edu>
To: axp-list@redhat.com
Subject: runaway klogd/syslogd happening now
Date: Fri, 02 Oct 1998 15:30:02 -0400	[thread overview]
Message-ID: <199810021930.PAA08906@neptune.phys.ufl.edu> (raw)


Hi, all;

We have 13 533 MHz 164LXs in a producing high energy physics
simulation data.  Two of these nodes are presently suffering from the
"klogd and syslogd are eating all the CPU" problem, so I thought I
would post and ask the readers of this list if there is any more
information I can provide regarding this problem, in the hope that
additional info can help to solve this problem once and for all.
Barring any responses, at least this can be a data point.  I will not
restart the logging daemons on these boxes for at least a few hours to
give time for replies from the group.

Enclosed below is some info which may be helpful.  These are 5.0 boxes
running kernel 2.0.32 with patches.  I know the kernel version is
ancient...  Microway set these boxes up a bit weird when we purchased
them, IMHO - I'll be installing 5.1 from scratch during the next down
time.

This particular problem has never happened here when the nodes are
idling (i.e., not running the big simulation jobs).  This means CPU
load and network access.  

We've been running since May or so, and we switched from hard mounting
all the disks to using amd during the first few weeks of running.  I
mention this since I don't recall us having this problem before we
went to using automount.  I know this is a shot in the dark, but do
the others who suffer from this problem also use amd?  amd -v output
is at the end of this note.

Anyway, if I can provide any more useful info, please tell me what to
do.  Also, as I have never used strace before, any pointers on how to
get the most useful info out of it would be appreciated.

Many thanks in advance,
Craig
---
Craig P Prescott                              (352) 846-3145 (Phone)
2011 New Physics Building                     (352) 392-8863 (Fax)
University of Florida, Gainesville, FL 32611  prescott@phys.ufl.edu


[root@helix01 /root]# uname -a
Linux helix01 2.0.32 #1 Mon Mar 23 12:52:55 EST 1998 alpha unknown
[root@helix01 /root]# cat /etc/redhat-release 
release 5.0 (Hurricane)
[root@helix01 /root]# cat /proc/sys/kernel/file-max
1024
[root@helix01 /root]# cat /proc/sys/kernel/file-nr
320
[root@helix01 /root]# cat /proc/sys/kernel/inode-max 
3072
[root@helix01 /root]# cat /proc/sys/kernel/inode-nr 
920     665
[root@helix01 /root]# grep initdefault /etc/inittab | grep id
id:3:initdefault:
[root@helix01 /root]# ls /etc/rc.d/rc3.d/
K10named        K40snmpd        S30syslog       S60lpd          S80sendmail
K15gpm          K55routed       S40atd          S60nfs          S99local
K15httpd        K98kerneld      S40crond        S60nfs.rpmsave
K15sound        S10network      S40portmap      S60rwhod
K20rusersd      S15nfsfs        S50inet         S72amd
K35smb          S20random       S55ypbind       S75keytable
[root@helix01 /root]# strace -V
strace -- version 3.1
[root@helix01 /root]# top
  2:23pm  up 4 days,  4:23,  3 users,  load average: 2.94, 2.61, 2.60
47 processes: 41 sleeping, 5 running, 1 zombie, 0 stopped
CPU states: 72.4% user, 27.4% system,  0.0% nice,  0.4% idle
Mem:  125760K av, 124312K used,   1448K free,  31536K shrd,   5728K buff
Swap: 523640K av,   1568K used, 522072K free                 66960K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
  165 root      19   0   632  608   488 R     560 26.0  0.2 469:31 klogd
  156 root      19   0   920  800   696 S     728 25.7  0.3 461:07 syslogd
15116 cleomc    20   0 42376  41M  5416 R     35M 23.6 16.8   1:05 cleog
  635 root       4   0  2688 2536  1944 S    2320 14.5  1.0   0:06 xterm
  254 root       3   0   944  928   640 R     816  9.1  0.3 163:38 rpc.nfsd
15150 root       1   0  1072 1072   816 R    1008  0.7  0.4   0:00 top
    1 root       0   0   600  520   472 S     472  0.0  0.2   0:17 init
    2 root       0   0     0    0     0 SW      0  0.0  0.0   0:16 kflushd
    3 root      17  17     0    0     0 SWN     0  0.0  0.0   0:00 kswapd
    4 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 nfsiod
    5 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 nfsiod
    6 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 nfsiod
    7 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 nfsiod
  650 cleomc     0   0  1672 1552  1160 S    1032  0.0  0.6   0:00 tcsh
  341 root       0   0   480  384   376 S     376  0.0  0.1   0:00 mingetty
  342 root       0   0   480  384   376 S     368  0.0  0.1   0:00 mingetty
   27 root       0   0   528  456   416 S     424  0.0  0.1   0:00 kerneld

/var/log/messages containts the standard slew of complaints:

Oct  2 14:21:57 helix01 kernel: Cannot read proc file system: 9 - Bad file descriptor.
Oct  2 14:22:27 helix01 last message repeated 155510 times
Oct  2 14:23:28 helix01 last message repeated 351761 times
Oct  2 14:24:30 helix01 last message repeated 262479 times
Oct  2 14:25:30 helix01 last message repeated 355391 times
Oct  2 14:26:31 helix01 last message repeated 377503 times
Oct  2 14:27:32 helix01 last message repeated 373464 times
Oct  2 14:28:33 helix01 last message repeated 356431 times

and so on.

I "strace -c"'d the klogd and syslogd PIDs.  Here is what they spit
out:

klogd:

write(1, "<3>Oct  2 14:29:51 kernel: Canno"..., 82) = 82
read(15913, 0x120107f84, 4096)          = -1 EBADF (Bad file descriptor)
gettimeofday({907352991, 883789}, NULL) = 0
write(1, "<3>Oct  2 14:29:51 kernel: Canno"..., 82) = 82
read(15913, 0x120107f84, 4096)          = -1 EBADF (Bad file descriptor)
gettimeofday({907352991, 886719}, NULL) = 0

etc., over and over again.  The return value of the write is always
82, and the read is always -1 EBADF.

syslogd:

gettimeofday({907353054, 104492}, NULL) = 0
gettimeofday({907353054, 104492}, NULL) = 0
gettimeofday({907353054, 105469}, NULL) = 0
gettimeofday({907353054, 105469}, NULL) = 0
select(1024, [0 3 8 9 10 11 12 13 14], NULL, NULL, NULL) = 1 (in [3])
read(3, "not read proc file system: 9 - B"..., 1024) = 1024
gettimeofday({907353054, 115235}, NULL) = 0
gettimeofday({907353054, 115235}, NULL) = 0
gettimeofday({907353054, 115235}, NULL) = 0
gettimeofday({907353054, 115235}, NULL) = 0
gettimeofday({907353054, 115235}, NULL) = 0
gettimeofday({907353054, 116211}, NULL) = 0
gettimeofday({907353054, 116211}, NULL) = 0
gettimeofday({907353054, 116211}, NULL) = 0
gettimeofday({907353054, 116211}, NULL) = 0
gettimeofday({907353054, 116211}, NULL) = 0
gettimeofday({907353054, 116211}, NULL) = 0
gettimeofday({907353054, 117188}, NULL) = 0
select(1024, [0 3 8 9 10 11 12 13 14], NULL, NULL, NULL) = 1 (in [3])
read(3, "descriptor.\0<3>Oct  2 14:30:54 "..., 1024) = 1024
gettimeofday({907353054, 118164}, NULL) = 0
gettimeofday({907353054, 118164}, NULL) = 0

etc., over and over again.  There are usually 12 (though sometimes 13)
gettimeofday messages between every select and read.

Not too surprising, I guess...

[root@helix01 /root]# amd -v
Copyright (c) 1997-1998 Erez Zadok
Copyright (c) 1990 Jan-Simon Pendry
Copyright (c) 1990 Imperial College of Science, Technology & Medicine
Copyright (c) 1990 The Regents of the University of California.
am-utils version 6.0a16 (build 1).
Built by root@spacely.redhat.com on date Tue May  5 20:11:27 EDT 1998.
cpu=alphaev5 (little-endian), arch=alpha, karch=alpha.
full_os=linux, os=linux, osver=2.0.30, vendor=unknown.
Map support for: root, passwd, union, ndbm, file, error.
AMFS: nfs, link, nfsx, nfsl, host, linkx, program, union, inherit, 
      ufs, cdfs, pcfs, auto, direct, toplvl, error.
FS: isofs, nfs, vfat, ext2.
Network: wire="npb2-net.phys.ufl.edu" (netnumber=128.227.89).


             reply	other threads:[~1998-10-02 19:32 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-02 19:30 Craig P Prescott [this message]
1998-10-02 22:39 ` runaway klogd/syslogd happening now Uncle George
1998-10-03  0:02   ` Craig P Prescott
1998-10-03  3:00 ` Paul Tomblin
  -- strict thread matches above, loose matches on Subject: below --
1998-10-03  0:29 Greg Lindahl
1998-10-03  0:58 ` B. James Phillippe
1998-10-05  6:11   ` Craig P Prescott
1998-10-03  7:12 Shane Steven Sturrock
1998-10-03 15:03 David Levine
     [not found] <199810030609.CAA23387@neptune.phys.ufl.edu>
1998-10-04 13:41 ` Uncle George
1998-10-04 14:39 Greg Lindahl
1998-10-04 21:20 Greg Lindahl
1998-10-04 21:48 ` B. James Phillippe
1998-10-04 23:24 ` Uncle George
1998-10-05 21:24 Greg Lindahl
1998-10-06  0:09 ` Uncle George
1998-10-06  0:27   ` Barrett G. Lyon
1998-10-06  0:46     ` Uncle George
1998-10-06  0:45       ` Barrett G. Lyon
1998-10-06  7:12   ` Michal Jaegermann
1998-10-06 12:12     ` Craig P Prescott
1998-10-06 22:09   ` Jeff Sturm
1998-10-06 22:52     ` Peter Waltenberg
1998-10-07 10:22     ` Uncle George
1998-10-06 13:15 Greg Lindahl
1998-10-06 13:26 ` Barrett G. Lyon
1998-10-06 15:31 ` Michal Jaegermann
1998-10-06 15:44 Greg Lindahl
1998-10-06 15:47 Greg Lindahl
1998-10-06 16:05 ` Michal Jaegermann
1998-10-06 19:53 ` Quant-X Alpha Linux Support
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