* Re: syslogd problems
@ 1998-09-25 15:16 Greg Lindahl
0 siblings, 0 replies; 7+ messages in thread
From: Greg Lindahl @ 1998-09-25 15:16 UTC (permalink / raw)
To: axp-list
> BTW: Does anybody know what files syslogd and klogd open? Is it possible
> that there is some race condition causing one part of the program to think a
> file still exists when another part has already closed it?
strace will tell you this, and more.
-- g
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: syslogd problems
@ 1998-09-25 14:18 Greg Lindahl
0 siblings, 0 replies; 7+ messages in thread
From: Greg Lindahl @ 1998-09-25 14:18 UTC (permalink / raw)
To: axp-list
> When that was happening, I was able to run everything I normally run (trn,
> mutt, killall), just very slowly, so there was no problem opening temporary
> files. News and mail was running normally as well, and they create and
> destroy hundreds of file an hour.
Hm, this indicates that the problem might be just that one process
(syslogd), instead of the kernel screwing up and not recycling
fd's. Other processes are OK and file-nr is low.
Now strace syslogd and see what it's doing. Your overall slowness is
due to syslogd chewing up CPU time... it's probably making thousands
of system calls per second.
-- g
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: syslogd problems
@ 1998-09-25 13:35 Greg Lindahl
1998-09-25 14:08 ` Paul Tomblin
0 siblings, 1 reply; 7+ messages in thread
From: Greg Lindahl @ 1998-09-25 13:35 UTC (permalink / raw)
To: axp-list
> without the usual syslogd problem. But it just happened again. The machine
> is running out of inodes (files are fine - file-nr is 704), so I increased
> inode-max to 4096, and it immediately ran out again. So I increased it to
> 8192, and it's almost up there again:
Um, "running out of inodes" is OK, I think. On most systems the # of
inodes shown is the # in the cache. They aren't all actually in use.
There's no way to tell if the # in use is actually near the limit.
If you want to debug the problem, you need to do 2 things:
1) look with lsof to see what files are open
2) examine proc to see how many files various processes have open.
It is interesting that file-nr is so low, yet you are getting "bad
file descriptor? Can you run a program which tries to open a file on
occasion and sees if it works?
-- g
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: syslogd problems
1998-09-25 13:35 Greg Lindahl
@ 1998-09-25 14:08 ` Paul Tomblin
1998-09-25 14:46 ` David Alan Gilbert
0 siblings, 1 reply; 7+ messages in thread
From: Paul Tomblin @ 1998-09-25 14:08 UTC (permalink / raw)
To: axp-list
Quoting Greg Lindahl (lindahl@cs.virginia.edu):
> 2) examine proc to see how many files various processes have open.
I looked at the time, and no process had more than 25 files open. inetd had
the most, followed closely by innd.
> It is interesting that file-nr is so low, yet you are getting "bad
> file descriptor? Can you run a program which tries to open a file on
> occasion and sees if it works?
When that was happening, I was able to run everything I normally run (trn,
mutt, killall), just very slowly, so there was no problem opening temporary
files. News and mail was running normally as well, and they create and
destroy hundreds of file an hour.
--
Paul Tomblin, ptomblin@xcski.com.
Java could allow computer users to run numerous applicatons without Windows, a
scenario Bill Gates once said "scares the hell out of me."
- Dan Goodin, CNET News
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: syslogd problems
1998-09-25 14:08 ` Paul Tomblin
@ 1998-09-25 14:46 ` David Alan Gilbert
1998-09-25 15:05 ` Paul Tomblin
0 siblings, 1 reply; 7+ messages in thread
From: David Alan Gilbert @ 1998-09-25 14:46 UTC (permalink / raw)
To: axp-list
Paul Tomblin wrote:
>
> Quoting Greg Lindahl (lindahl@cs.virginia.edu):
> > 2) examine proc to see how many files various processes have open.
>
> I looked at the time, and no process had more than 25 files open. inetd had
> the most, followed closely by innd.
What are the numbers of the files which are open in syslogd?
Could this be a select() problem with file descriptors > 32 or something?
Dave
--
----------------------------------------------------------------------
- Dr. David Alan Gilbert - WARNING! This is a beta release .signature-
- Work: dg @ cogency.co.uk - +44-(0)161-428-9444 -
- Home: gro.gilbert @ treblig.org - -
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: syslogd problems
1998-09-25 14:46 ` David Alan Gilbert
@ 1998-09-25 15:05 ` Paul Tomblin
0 siblings, 0 replies; 7+ messages in thread
From: Paul Tomblin @ 1998-09-25 15:05 UTC (permalink / raw)
To: axp-list
Quoting David Alan Gilbert (dg@treblig.org):
> Paul Tomblin wrote:
> >
> > Quoting Greg Lindahl (lindahl@cs.virginia.edu):
> > > 2) examine proc to see how many files various processes have open.
> >
> > I looked at the time, and no process had more than 25 files open. inetd had
> > the most, followed closely by innd.
>
> What are the numbers of the files which are open in syslogd?
>
> Could this be a select() problem with file descriptors > 32 or something?
I'll look again when it happens next, but I didn't start poking around
/proc/*/fd until I'd killed off syslogd.
BTW: Does anybody know what files syslogd and klogd open? Is it possible
that there is some race condition causing one part of the program to think a
file still exists when another part has already closed it?
Damn, I've *got* to get the source for syslogd and klogd off the CD and start
poking around. Like I don't have enough problems...
--
Paul Tomblin, ptomblin@xcski.com.
Java could allow computer users to run numerous applicatons without Windows, a
scenario Bill Gates once said "scares the hell out of me."
- Dan Goodin, CNET News
^ permalink raw reply [flat|nested] 7+ messages in thread
* syslogd problems
@ 1998-09-25 1:11 Paul Tomblin
0 siblings, 0 replies; 7+ messages in thread
From: Paul Tomblin @ 1998-09-25 1:11 UTC (permalink / raw)
To: axp
I've been running syslogd with remote logging to an Intel Linux machine, and
I went:
#uptime
9:03pm up 11 days, 6:01, 3 users, load average: 0.81, 2.50, 3.94
without the usual syslogd problem. But it just happened again. The machine
is running out of inodes (files are fine - file-nr is 704), so I increased
inode-max to 4096, and it immediately ran out again. So I increased it to
8192, and it's almost up there again:
#cat /proc/sys/kernel/inode-nr
7840 7611
I can't figure out how to figure out what's chewing up those inodes. Any idea
how I can track that?
I'm not sure if it's significant, but I'm currently getting bombed by newgroup
messages from the HIPCRIME spammers. But I've weathered many of those attacks
in the past without this happening.
--
Paul Tomblin, ptomblin@xcski.com.
Java could allow computer users to run numerous applicatons without Windows, a
scenario Bill Gates once said "scares the hell out of me."
- Dan Goodin, CNET News
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1998-09-25 15:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-25 15:16 syslogd problems Greg Lindahl
-- strict thread matches above, loose matches on Subject: below --
1998-09-25 14:18 Greg Lindahl
1998-09-25 13:35 Greg Lindahl
1998-09-25 14:08 ` Paul Tomblin
1998-09-25 14:46 ` David Alan Gilbert
1998-09-25 15:05 ` Paul Tomblin
1998-09-25 1:11 Paul Tomblin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox