psutil - Get IO Wait time as % in python -


i writing python script basic system stats. using psutil of , working fine except 1 thing need.

i'd log average cpu wait time @ moment. top output in cpu section under %wa.

i can't seem find how in psutil, know how it? go down road don't want go on....

that entire cpu row rather nice, since totals 100 , easy log , plot.

thanks in advance.

%wa giving iowait of cpu, , if using times = psutil.cpu_times() or times = psutil.cpu_times_percent() under times.iowait variable of returned value (assuming on linux system)


Popular posts from this blog