BlogBlog ÜbersichtjailscriptportsoptFreeBSDLinksThermoskanneKontakt

I/O- anstatt CPU-Werte in top anzeigen

Möchte man auf FreeBSD herausfinden, welcher Prozess wieviel I/O-Last verursacht, kann man top im I/O Modus starten:

# top -mio
last pid: 1688; load averages: 0.90, 0.59, 0.40 up 0+03:14:51 21:27:52
51 processes: 3 running, 48 sleeping
CPU states: 28.8% user, 0.0% nice, 55.6% system, 1.2% interrupt, 14.4% idle
Mem: 175M Active, 616M Inact, 167M Wired, 16M Cache, 111M Buf, 21M Free
Swap: 1024M Total, 16K Used, 1024M Free

PID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND
1688 beat 17 643 0 174 0 174 29.15% dd
1004 root 130 8 0 0 0 0 0.00% Xorg
1033 beat 47 10 0 0 0 0 0.00% gkrellm
1676 beat 2595 712 81 60 0 141 23.62% thunderbird-bin
836 root 4 8 0 0 0 0 0.00% powerd
...

In diesem Modus werden nicht nur die Anzahl Lese- und Schreibvorgänge, sondern auch die Anzahl von Voluntary Context Switches (VCSW) und Involuntary Context Switches (IVSW) angezeigt. Ein Voluntary Context Switch wird ausgeführt, wenn ein Thread eine Ressource benötigt, welche zur Zeit nicht vorhanden ist, bei einem Involuntary Context Switch hat ein Thread seine Zeit in der CPU aufgebraucht oder ein höher priorisierter Thread soll ausgeführt werden. Mehr Informationen zu top findet man in der Manpage top(1).

Related Entries:
Abhängigkeiten eines Portes als Baum anzeigen
Tinderbox aufräumen
Wartezeit von tinderd ändern
Zeit beim Systemstart synchronisieren
Verfügbarkeit des Portquellcodes überprüfen
Comments (0)  Permalink

Comments

add a comment

The Trackback URL to this post is:
http://www.chruetertee.ch/blog/plugin=trackback(864).xml
Trackbacks are moderated.

This blog is gravatar enabled.
Your email adress will never be published.
Comment spam will be deleted!

Name*
E-Mail
For Spammers Only
URL
Comment*
Notify me via E-Mail when new comments are made to this entry
Remember me (needs cookies)