Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] load too high
Date: Mon, 11 Feb 2008 20:09:06
Message-Id: 200802112206.47619.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] load too high by James
1 On Monday 11 February 2008, James wrote:
2 > Hello,
3 >
4 > One of the workstations (amd64 2gig ram) has a load that never drops
5 > below 1.0, as seen by top. Looking at a ps nothing stands out. I did
6 > notice that 'X' is at the top of the list, even when the machine is
7 > quiescent (nobody doing anything). Suspiciaous. Clearly I have a run
8 > away or hidden process using resources. Although all my system run
9 > kde 3.5.8 only one shows this problem.
10 >
11 > None of my other Gentoo system suffer this fate. Any ideas on finding
12 > the culprit(proccess)?
13
14 First thing to understand is exactly what the system load is. Maybe you
15 already know this, but I'll post it anyway for the benefit of everyone
16 else reading.
17
18 Load is defined as the number of processes waiting for cpu time averaged
19 over a certain time period. top and uptime measure this in three
20 periods - 1 minute, 5 minutes and 15 minutes. A process can be waiting
21 for cpu time because it is "blocked" - waiting for some I/O to
22 complete. Therefore it's easy to get a high load and low cpu
23 utilization. I find this in fact to be the most common reason (!)
24
25 vmstat is your friend here. It's all in the man page, so use it and
26 narrow down the process that's blocking. Maybe you have a threading
27 race condition or similar.
28
29 Also look into a hardware difference between this machine and the
30 others, and differences in the kernel config and loaded modules.
31
32 If all this reveals nothing, then maybe you do have a suspicious
33 problem. In which case, post back real quick :-)
34
35
36 --
37 Alan McKinnon
38 alan dot mckinnon at gmail dot com
39
40 --
41 gentoo-user@l.g.o mailing list

Replies

Subject Author
[gentoo-user] Re: load too high James <wireless@×××××××××××.com>