| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/dstat/ |
Upload File : |
Ñò
¦1Kc @ s d e f d „ ƒ YZ d S( t dstat_pluginc B s2 e Z d Z d „ Z d „ Z d „ Z d „ Z RS( s)
Top process with highest total latency.
Displays name and total amount of CPU time waited in milliseconds of
the process that has the highest total amount waited for the measured
timeframe.
For more information see:
http://eaglet.rain.com/rick/linux/schedstat/
c C sX d | _ d | _ d | _ d | _ d | _ t t i ƒ ƒ | _ h | _ h | _
d S( Ns
highest totalt si i s latency process( s latency process( t namet typet widtht scalet varst strt ost getpidt pidt pidset1t pidset2( t self( ( s% /usr/share/dstat/dstat_top_latency.pyt __init__ s c C s' t i d t i ƒ p
t d ‚ n d S( Ns /proc/self/schedstats7 Kernel has no scheduler statistics, use at least 2.6.12( R t accesst R_OKt Exception( R
( ( s% /usr/share/dstat/dstat_top_latency.pyt check s c
C sN d | i d <d | i d <x€t i d ƒ D]o} y“ t | ƒ | | i j o w* n | i i | ƒ p h d d 6| i | <n t d | ƒ i ƒ i ƒ d d d !} t d
| ƒ i ƒ i ƒ } Wn+ t
j
o
q* n t j
o
q* n Xt | ƒ d j o q* n h t
| d ƒ d 6| i | <| i | d | i | d d t } | | i d j o4 | | i d <| | i d
<t | | ƒ | i d <q* q* Wt t i j o9 x6 | i i ƒ D]! } | i | i | i | ƒ q½Wn | i d d j oP d | i d | i d d | i d !t | i d d d d ƒ f | i d <n d S( Ni t resultt t processs /proc/t
wait_tickss
/proc/%s/stati iÿÿÿÿs /proc/%s/schedstati g ð?R
R g s %-*s%si t did s latency process( t valR t listdirt intR
R t has_keyt opent readt splitt
ValueErrort IOErrort lent longR t elapsedt getnamebypidt stept opt delayt keyst updateR t cprint( R
R
R t lt totwait( ( s% /usr/share/dstat/dstat_top_latency.pyt extract s<