Gentoo Archives: gentoo-user

From: Alan McKinnon <alan@××××××××××××××××.za>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] 100% CPU usage with no processes to blame?
Date: Mon, 19 Feb 2007 08:31:24
Message-Id: 200702191022.56259.alan@linuxholdings.co.za
In Reply to: Re: [gentoo-user] 100% CPU usage with no processes to blame? by Alex Schuster
1 On Saturday 17 February 2007, Alex Schuster wrote:
2 > > Shouldn't top have provided some kind of info for why the CPU usage
3 > > was 100% for 5 minutes straight?  If it does display trends,
4 > > shouldn't it have picked up on that one?
5 >
6 > I bet it was updatedb. This is what top shows me when it is running:
7
8 or eupdatedb, or prelink... :-)
9
10 > Cpu(s): 15.6% us, 12.6% sy,  0.3% ni,  0.0% id, 70.2% wa, 1.3% hi,
11 >  0.0% si PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+
12 >  COMMAND 1563 root      18   0  1936  928  528 R  8.9  0.2   0:09.68
13 > updatedb
14 >
15 > Whatever this "wa" entry is, probably something with I/O related
16 > waiting, it seems is it not being taken into account for the %CPU
17 > culumn entry of the process.
18
19 "wa" is "wait" - a process is trying to do IO and it is being blocked as
20 something else is using a resource the process wants to use. SO it sits
21 and does nothing, much the same way you sometimes sit in your car and
22 do nothing at the McDonalds drive-through queue.
23
24 Usually a blocked process will consume no cpu time (as it's doing
25 nothing), but it can slow the machine down and make it less responsive
26 while many processes sit and wait
27
28 alan
29
30 --
31 Optimists say the glass is half full,
32 Pessimists say the glass is half empty,
33 Developers say wtf is the glass twice as big as it needs to be?
34
35 Alan McKinnon
36 alan at linuxholdings dot co dot za
37 +27 82, double three seven, one nine three five
38 --
39 gentoo-user@g.o mailing list