How to find the processor queue length in linux

后端 未结 4 1170
执笔经年
执笔经年 2021-02-06 04:56

Trying to determine the Processor Queue Length (the number of processes that ready to run but currently aren\'t) on a linux machine. There is a WMI call in Windows for this metr

4条回答
  •  时光取名叫无心
    2021-02-06 05:14

    sar -q will report queue length, task list length and three load averages.

    Example:

    matli@tornado:~$ sar -q 1 0
    Linux 2.6.27-9-generic (tornado)    01/13/2009  _i686_
    
    11:38:32 PM   runq-sz  plist-sz   ldavg-1   ldavg-5  ldavg-15
    11:38:33 PM         0       305      1.26      0.95      0.54
    11:38:34 PM         4       305      1.26      0.95      0.54
    11:38:35 PM         1       306      1.26      0.95      0.54
    11:38:36 PM         1       306      1.26      0.95      0.54
    ^C
    

提交回复
热议问题