[linux] Re: cpu waiting process opsporen.

Daniel von Asmuth asmuth op bakunin.xs4all.nl
Vr Feb 5 14:56:09 CET 2010


On Fri, Feb 05, 2010 at 02:07:53PM +0100, Robin van Leeuwen wrote:
> Ik heb zo nu en dan last van het volgende. Top laat zien dat mijn processor
> staat te wachten op I/O.
> Er staat dan in de bovenste regel bijvoorbeeld: 89% wa, 3% sy, 8% us
> Nu geeft top standaard wel weer wel process het meeste CPU tijd (sy of us)
> gebruikt, maar hoe kom ik er nu
> achter welk process op I/O staat te wachten en dus die 89% wa, gebruikt?

Het commando 'ps' geeft een lijst van alle processen. Het heeft een
grote lijst opties. Gebruik in dit geval bijvoorbeeld 'ps lax'. 

	PROCESS STATE CODES

Here are the different values that the s, stat and state output specifiers
(header "STAT" or "S") will display to describe the state of a process.
D    Uninterruptible sleep (usually IO)
R    Running or runnable (on run queue)
S    Interruptible sleep (waiting for an event to complete)
T    Stopped, either by a job control signal or because it is being traced.
W    paging (not valid since the 2.6.xx kernel)
X    dead (should never be seen)
Z    Defunct ("zombie") process, terminated but not reaped by its parent.

U zult zien dat de meeste processen zich in toestand 'S' bevinden, maar
het 'ps' proces is waarschijlijk 'R' (runnable). De kolom 'WCHAN' geeft 
aan waar het proces op staat te wachten. Is dat 'SELECT', dan is het
proces gewoon idle. Hooguit een paar processen wachten op (disk) I/O. Als een
proces zich langdurig in status 'D' bevindt, dan hebt u een probleem.   

Met vriendelijke groet,



Daniel von Asmuth.

-- 
		/----------------------------------\
		| overlijden schaadt de gezondheid |
		| het leidt tot stoppen met roken  |
		\----------------------------------/		



More information about the Linux mailing list