I would like to ask question about the output from
sar -q
. I appreciate if someone can help me out with understanding runq-sz
.
I have a system which cpu threads are 8 cpu threads
on RHEL 7.2
.
[ywatanabe@host2 ~]$ cat /proc/cpuinfo | grep processor | wc -l
8
Below is sar -q
result from my system but runq-sz
seems to be **low** compared to ldavg-1
.
runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15 blocked
05:10:01 PM 0 361 0.29 1.68 2.14 0
05:11:01 PM 0 363 1.18 1.61 2.08 2
05:12:01 PM 0 363 7.03 3.15 2.58 1
05:13:01 PM 0 365 8.12 4.15 2.96 1
05:14:01 PM 3 371 7.40 4.64 3.20 1
05:15:01 PM 2 370 7.57 5.26 3.51 1
05:16:01 PM 0 366 8.42 5.90 3.84 1
05:17:01 PM 0 365 8.78 6.45 4.16 1
05:18:01 PM 0 363 7.05 6.40 4.28 2
05:19:02 PM 1 364 8.05 6.74 4.53 0
05:20:01 PM 0 367 7.96 6.96 4.74 1
05:21:01 PM 0 367 7.86 7.11 4.93 1
05:22:01 PM 1 366 7.84 7.31 5.14 0
From the man sar
, I was thinking that runq-sz
represents the number of tasks inside the run queue which states are TASK_RUNNING which corresponds to R sate in ps
.
runq-sz
Run queue length (number of tasks waiting for run time).
What does runq-sz
actually represent ?
Asked by Yu Watanabe
(185 rep)
Aug 23, 2018, 11:30 PM
Last activity: Nov 4, 2023, 04:49 PM
Last activity: Nov 4, 2023, 04:49 PM