pingwindyktator utworzono 1 sierpnia 2015 utworzono 1 sierpnia 2015 No właśnie - jak wyciągnąć z iostat wyłącznie informacje o iowait? Nie mam pomysłu jak to "zgrepować", a chciałbym napisać skrypt zbierający informacje o iowait.
MasterYoghourt komentarz 2 sierpnia 2015 komentarz 2 sierpnia 2015 (edytowane) Te informacje znajdziesz w /proc/stat Opis z manuala: ... /proc/stat kernel/system statistics. Varies with architecture. Common entries include: cpu 3357 0 4313 1362393 The amount of time, measured in units of USER_HZ (1/100ths of a second on most architectures, use sysconf(_SC_CLK_TCK) to obtain the right value), that the system spent in various states: user (1) Time spent in user mode. nice (2) Time spent in user mode with low priority (nice). system (3) Time spent in system mode. idle (4) Time spent in the idle task. This value should be USER_HZ times the second entry in the /proc/uptime pseudo-file. iowait (since Linux 2.5.41) (5) Time waiting for I/O to complete. ... IOWAIT to piąta kolumna i zostaje kwestia prezentacji zebranych danych. Tutaj masz poradnik jak interpretować linie w /proc/stat: https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk65143 (Wrzuć sobie w translate.google.pl jakby co) Jakby co, możesz eksperymentować jeszcze z vmstat i mpstat.
Wciąż szukasz rozwiązania problemu? Napisz teraz na forum!
Możesz zadać pytanie bez konieczności rejestracji - wystarczy, że wypełnisz formularz.