* top : 35.9% user, 64.0% system!!
@ 1998-09-15 14:50 Seppo Saario
1998-09-15 15:08 ` Paul Tomblin
0 siblings, 1 reply; 14+ messages in thread
From: Seppo Saario @ 1998-09-15 14:50 UTC (permalink / raw)
To: axp-list
Hello there,
Just wondering if someone could explain what could cause a high system
usage of the CPU, I am running some large programs and get this:
% top
CPU states: 35.9% user, 64.0% system, 0.0% nice, 0.3% idle
PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
3743 saario 14 0 113M 113M 912 R 113M 93.7 22.5 23:18 fd
% vmstat 1
procs memory swap io system cpu
r b w swpd free buff cache si so bi bo in cs us sy id
1 0 0 16000 8208 32840 52416 0 0 0 0 1218 362 65 35 0
Is there some way of profiling to see what the system is doing?
What does cs (context switches /sec ) in the system interuupts mean -
could someone direct me to some web pages that explain that a bit better.
It's not swapping or complaining with numerical exceptions
( Sometimes if it runs into NaN's the system cpu load is high )
Any ideas would be appreciated,
Cheers,
Seppo Saario
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-15 15:08 ` Paul Tomblin
@ 1998-09-15 14:59 ` Simon Kenyon
1998-09-16 11:50 ` Seppo Saario
1 sibling, 0 replies; 14+ messages in thread
From: Simon Kenyon @ 1998-09-15 14:59 UTC (permalink / raw)
To: axp-list
i upgraded to 5.1 with all the updates and that problem with klogd went away
so indeed somebody seems to be fixing it :-)
now which part of the rh5.1 updates fixed it is not a question i can answer
--
simon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-15 14:50 Seppo Saario
@ 1998-09-15 15:08 ` Paul Tomblin
1998-09-15 14:59 ` Simon Kenyon
1998-09-16 11:50 ` Seppo Saario
0 siblings, 2 replies; 14+ messages in thread
From: Paul Tomblin @ 1998-09-15 15:08 UTC (permalink / raw)
To: axp-list
Quoting Seppo Saario (saario@rad.me.gu.edu.au):
> Hello there,
>
> Just wondering if someone could explain what could cause a high system
> usage of the CPU, I am running some large programs and get this:
>
> % top
>
> CPU states: 35.9% user, 64.0% system, 0.0% nice, 0.3% idle
> PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
> 3743 saario 14 0 113M 113M 912 R 113M 93.7 22.5 23:18 fd
Look in your /var/log/messages. I'll bet you a quatloo that your syslogd
process is going nuts and spewing out:
Jul 22 11:15:07 canoe syslogd: select: Bad file descriptor
Jul 22 11:15:38 canoe last message repeated 17817 times
Jul 22 11:16:39 canoe last message repeated 79172 times
Jul 22 11:17:40 canoe last message repeated 51971 times
Jul 22 11:18:41 canoe last message repeated 60583 times
This is a known problem with Alphas, and nobody seems to be fixing it.
My solution has been to turn on remote logging and log all system messsages to
an Intel Linux box.
--
Paul Tomblin, ptomblin@xcski.com.
"AOL would be a giant diesel-smoking bus with hundreds of ebola victims on
board throwing dead wombats and rotten cabbage at the other cars"
- Heather Garvey throws the Information Superhighway metaphor into reverse.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
@ 1998-09-15 15:42 Greg Lindahl
1998-09-15 16:27 ` Simon Kenyon
0 siblings, 1 reply; 14+ messages in thread
From: Greg Lindahl @ 1998-09-15 15:42 UTC (permalink / raw)
To: axp-list
> i upgraded to 5.1 with all the updates and that problem with klogd went away
> so indeed somebody seems to be fixing it :-)
> now which part of the rh5.1 updates fixed it is not a question i can answer
Given that the problem seems to randomly come and go, I'd doubt that
it's fixed. But you know me, never an optimist...
-- g
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-15 15:42 Greg Lindahl
@ 1998-09-15 16:27 ` Simon Kenyon
0 siblings, 0 replies; 14+ messages in thread
From: Simon Kenyon @ 1998-09-15 16:27 UTC (permalink / raw)
To: axp-list
> Given that the problem seems to randomly come and go, I'd doubt that
> it's fixed. But you know me, never an optimist...
well it certainly wasn't random for me
cpu cranked up to 90+% and stayed there all the time
i didn't like to admit it - but having spent $1700 on my new
motherboard/cpu/memory i was a bit less that bowled over with the performance
of my new machine - i had a K6-233 which was just as snappy
once i stopped using 90% of my cpu it was a little better (but not a whole lot)
but then again, my cheetah hasn't arrived yet :-)
--
simon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-15 15:08 ` Paul Tomblin
1998-09-15 14:59 ` Simon Kenyon
@ 1998-09-16 11:50 ` Seppo Saario
1998-09-16 15:30 ` Barrett G. Lyon
1 sibling, 1 reply; 14+ messages in thread
From: Seppo Saario @ 1998-09-16 11:50 UTC (permalink / raw)
To: axp-list
Hi Paul,
> > CPU states: 35.9% user, 64.0% system, 0.0% nice, 0.3% idle
> > PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
> > 3743 saario 14 0 113M 113M 912 R 113M 93.7 22.5 23:18 fd
>
> Look in your /var/log/messages. I'll bet you a quatloo that your syslogd
> process is going nuts and spewing out:
> Jul 22 11:15:07 canoe syslogd: select: Bad file descriptor
> Jul 22 11:15:38 canoe last message repeated 17817 times
> Jul 22 11:16:39 canoe last message repeated 79172 times
> Jul 22 11:17:40 canoe last message repeated 51971 times
> Jul 22 11:18:41 canoe last message repeated 60583 times
>
> This is a known problem with Alphas, and nobody seems to be fixing it.
Looks like I got a quatloo! :-), I had a look in /var/log/mess. and it
looks OK, nothing out of the ordinary...
Hmm..
Cheers,
Seppo Saario
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-16 11:50 ` Seppo Saario
@ 1998-09-16 15:30 ` Barrett G. Lyon
1998-09-16 15:42 ` Paul Tomblin
0 siblings, 1 reply; 14+ messages in thread
From: Barrett G. Lyon @ 1998-09-16 15:30 UTC (permalink / raw)
To: axp-list
At 09:50 PM 9/16/98 +1000, you wrote:
>Hi Paul,
>
>> > CPU states: 35.9% user, 64.0% system, 0.0% nice, 0.3% idle
>> > PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
>> > 3743 saario 14 0 113M 113M 912 R 113M 93.7 22.5 23:18 fd
>>
>> Look in your /var/log/messages. I'll bet you a quatloo that your syslogd
>> process is going nuts and spewing out:
>> Jul 22 11:15:07 canoe syslogd: select: Bad file descriptor
>> Jul 22 11:15:38 canoe last message repeated 17817 times
>> Jul 22 11:16:39 canoe last message repeated 79172 times
>> Jul 22 11:17:40 canoe last message repeated 51971 times
>> Jul 22 11:18:41 canoe last message repeated 60583 times
>>
Up your fds, to do that.. add this to your rc.local
echo "4096">/proc/sys/kernel/file-max
echo "4096">/proc/sys/kernel/inode-max
Whatever causes the system to eat up fds is something I can't figure out,
if someone knows.. let me know.
-Barrett
--
Barrett G. Lyon PGP Key: http://www.doxx.net/pgp
Data & Network Security Consultant Fax: 310-737-0196
Network Presence, LLC Email: blyon@netpr.com
--
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-16 15:30 ` Barrett G. Lyon
@ 1998-09-16 15:42 ` Paul Tomblin
1998-09-16 17:02 ` Simon Kenyon
0 siblings, 1 reply; 14+ messages in thread
From: Paul Tomblin @ 1998-09-16 15:42 UTC (permalink / raw)
To: axp-list
Quoting Barrett G. Lyon (blyon@netpr.com):
> At 09:50 PM 9/16/98 +1000, you wrote:
> >>
> >> Look in your /var/log/messages. I'll bet you a quatloo that your syslogd
> >> process is going nuts and spewing out:
> >> Jul 22 11:15:07 canoe syslogd: select: Bad file descriptor
> >> Jul 22 11:15:38 canoe last message repeated 17817 times
> >> Jul 22 11:16:39 canoe last message repeated 79172 times
> >> Jul 22 11:17:40 canoe last message repeated 51971 times
> >> Jul 22 11:18:41 canoe last message repeated 60583 times
> >>
>
> Up your fds, to do that.. add this to your rc.local
> echo "4096">/proc/sys/kernel/file-max
> echo "4096">/proc/sys/kernel/inode-max
>
> Whatever causes the system to eat up fds is something I can't figure out,
> if someone knows.. let me know.
For the thousandth time THAT DOES NOT FIX THE PROBLEM! It might fix it on
your machine (or more likely delay it for a while), but I get that problem
with file-nr never going above 443. If you want to come visit some day, I'll
boot fresh, set the file-max and inode-max to 4096, 8192, or 25 billion, turn
system logging back on, and you can come back in anywhere from a few hours to
three days, and see my syslog going nuts.
What is it with people who think they have *the* answer, and persist in
telling you that answer no matter how many times you tell them it doesn't
work?
--
Paul Tomblin, ptomblin@xcski.com.
"AOL would be a giant diesel-smoking bus with hundreds of ebola victims on
board throwing dead wombats and rotten cabbage at the other cars"
- Heather Garvey throws the Information Superhighway metaphor into reverse.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-16 15:42 ` Paul Tomblin
@ 1998-09-16 17:02 ` Simon Kenyon
1998-09-16 17:38 ` Jeff DeMaagd
1998-09-16 17:58 ` Jeff Sturm
0 siblings, 2 replies; 14+ messages in thread
From: Simon Kenyon @ 1998-09-16 17:02 UTC (permalink / raw)
To: axp-list
> What is it with people who think they have *the* answer, and persist in
> telling you that answer no matter how many times you tell them it doesn't
> work?
you're going to get a lot of help if you go about things that way!
--
simon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-16 17:02 ` Simon Kenyon
@ 1998-09-16 17:38 ` Jeff DeMaagd
1998-09-16 17:58 ` Jeff Sturm
1 sibling, 0 replies; 14+ messages in thread
From: Jeff DeMaagd @ 1998-09-16 17:38 UTC (permalink / raw)
To: axp-list
On Wed, 16 Sep 1998, Simon Kenyon wrote:
> > What is it with people who think they have *the* answer, and persist in
> > telling you that answer no matter how many times you tell them it doesn't
> > work?
I don't know. I had to state that my networking didn't work four times
while someone tried to explain the benefits of FTP vs. something else.
Maybe it should be called the brag or ego factor. Try to state as much of
what you know as possible, no matter that the knowledge doesn't help.
Jeff DeMaagd
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-16 17:02 ` Simon Kenyon
1998-09-16 17:38 ` Jeff DeMaagd
@ 1998-09-16 17:58 ` Jeff Sturm
1998-09-16 18:26 ` Paul Tomblin
1998-09-16 20:59 ` Simon Kenyon
1 sibling, 2 replies; 14+ messages in thread
From: Jeff Sturm @ 1998-09-16 17:58 UTC (permalink / raw)
To: axp-list
On Wed, 16 Sep 1998, Simon Kenyon wrote:
> > What is it with people who think they have *the* answer, and persist in
> > telling you that answer no matter how many times you tell them it doesn't
> > work?
>
> you're going to get a lot of help if you go about things that way!
Ah, frustration speaks...
It's painfully apparent that the Alpha Linux port is not yet as solid as
on x86. Stable, yes. Useable, yes. Solid, no. I've had two kernel
panics now in two days to remind me :(
I guess things should get better when Linux 2.2 is out, and glibc is
out. The kernel patches and glibc migration have been rough for many
users, I'd guess...
What can be done to get at the core of this syslog problem? It never
happens to some users, apparently at least not to the developers who are
the best bet to solve it. Anybody have any useful statistics, like what
machines/kernels/libcs/dists/whatever causes the runaway syslog?
Jeff
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-16 17:58 ` Jeff Sturm
@ 1998-09-16 18:26 ` Paul Tomblin
1998-09-16 20:59 ` Simon Kenyon
1 sibling, 0 replies; 14+ messages in thread
From: Paul Tomblin @ 1998-09-16 18:26 UTC (permalink / raw)
To: axp-list
Quoting Jeff Sturm (jsturm@gatecom.com):
> What can be done to get at the core of this syslog problem? It never
> happens to some users, apparently at least not to the developers who are
> the best bet to solve it. Anybody have any useful statistics, like what
> machines/kernels/libcs/dists/whatever causes the runaway syslog?
Dist: Redhat 5.0, all updates from the ftp site dutifully applied.
Kernel: 2.0.30, 34, and 35.
Machine: UDB/Multia, 96Mb RAM, 80Mb swap, 2Gb SCSI disk, 4Gb SCSI disk, 1x
SCSI CD-ROM, SCSI Zip Drive.
Running: mail server (sendmail 8.8.x, majordomo, procmail, newsx), news
server (innd 1.7), mail clients (mutt and elm), news client (trn), ftp server
(wu-ftpd), httpd (apache), X windows.
Networking: ppp connection to ISP, ethernet connection to local ethernet.
On: 24 hours a day, 7 days a week.
Longest Uptime: 39 days
Situation: Running syslog locally will run-away in anywhere from 6 hours to 3
days. Running syslog with logging remote to another Intel Linux box works
fine (that's how I set the personal uptime record). Doesn't seem to matter
what file-max and inode-max are set to (although the first time I set them up
higher it seemed to take longer before it ran-away). Doesn't seem to matter
if I'm running with klogd -s or not. I've never checked *during* a run-away,
but checking at random times shows that file-nr is between 400 and 445 90% of
the time.
--
Paul Tomblin, ptomblin@xcski.com.
"AOL would be a giant diesel-smoking bus with hundreds of ebola victims on
board throwing dead wombats and rotten cabbage at the other cars"
- Heather Garvey throws the Information Superhighway metaphor into reverse.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
1998-09-16 17:58 ` Jeff Sturm
1998-09-16 18:26 ` Paul Tomblin
@ 1998-09-16 20:59 ` Simon Kenyon
1 sibling, 0 replies; 14+ messages in thread
From: Simon Kenyon @ 1998-09-16 20:59 UTC (permalink / raw)
To: axp-list
> What can be done to get at the core of this syslog problem? It never
> happens to some users, apparently at least not to the developers who are
> the best bet to solve it. Anybody have any useful statistics, like what
> machines/kernels/libcs/dists/whatever causes the runaway syslog?
i have just recently joined the alpha ranks
i've had lots of x86 linux boxes with no problems
when i first installed red hat 5.1 i found the syslog thing
well actually it is not syslog, it is klogd which is sending millions of
messages to syslog
i asked around this list and based on the answers i took the decision to
install ALL the updates from red hat that were available at the time (about a
week ago)
the klogd problem went away
this is with the stock 2.0.x (34 or 35 - i forget) which comes with rh5.1
since then i've installed 2.1.117 and still no problems
well that is one set of data points
anyone else?
--
simon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: top : 35.9% user, 64.0% system!!
@ 1998-09-16 21:42 David Levine
0 siblings, 0 replies; 14+ messages in thread
From: David Levine @ 1998-09-16 21:42 UTC (permalink / raw)
To: axp-list
Jeff Sturm writes:
> What can be done to get at the core of this syslog problem?
I'd just love to try glibc-2.0.7-7 again, but I haven't
been able to track it down. Does anyone have a suggestion
on where to look?
Thanks,
David
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~1998-09-16 21:51 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-16 21:42 top : 35.9% user, 64.0% system!! David Levine
-- strict thread matches above, loose matches on Subject: below --
1998-09-15 15:42 Greg Lindahl
1998-09-15 16:27 ` Simon Kenyon
1998-09-15 14:50 Seppo Saario
1998-09-15 15:08 ` Paul Tomblin
1998-09-15 14:59 ` Simon Kenyon
1998-09-16 11:50 ` Seppo Saario
1998-09-16 15:30 ` Barrett G. Lyon
1998-09-16 15:42 ` Paul Tomblin
1998-09-16 17:02 ` Simon Kenyon
1998-09-16 17:38 ` Jeff DeMaagd
1998-09-16 17:58 ` Jeff Sturm
1998-09-16 18:26 ` Paul Tomblin
1998-09-16 20:59 ` Simon Kenyon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox