Lockstat

Page last edited hace 2117 días 3 horas
De Solaris-ES
Saltar a: navegación, buscar
En el man de este comando podemos leer que nos facilita información sobre los bloqueos (locks) en el kernel.

Algunos ejemplo de ejecución[editar]

# lockstat sleep 5
# lockstat -gkIW sleep 15|head -20

Profiling interrupt: 5864 events in 15.103 seconds (388 events/sec)

Count genr cuml rcnt     nsec Hottest CPU+PIL        Caller                 
-------------------------------------------------------------------------------
 3482  59% ---- 0.00     3350 cpu[2]                 (usermode)             
 1283  22% ---- 0.00     3470 cpu[1]                 thread_start           
  910  16% ---- 0.00     2447 cpu[1]                 idle                   
  846  14% ---- 0.00     2505 cpu[1]                 disp_getwork           
  770  13% ---- 0.00     4283 cpu[0]                 current_thread         
  768  13% ---- 0.00     4416 cpu[2]                 zio_execute            
  666  11% ---- 0.00     4318 cpu[1]                 taskq_thread           
  539   9% ---- 0.00     4290 cpu[1]                 fletcher_2_native      
  518   9% ---- 0.00     4258 cpu[1]                 zio_checksum_error     
  518   9% ---- 0.00     4266 cpu[1]                 zio_checksum_verify    
  278   5% ---- 0.00     4448 cpu0                   syscall_trap           
  239   4% ---- 0.00     2537 cpu[1]                 0xed5f0                
  170   3% ---- 0.00     4643 cpu0                   fop_read               
  155   3% ---- 0.00     4813 cpu[1]                 pread                  
  145   2% ---- 0.00     4872 cpu[0]                 zfs_read 


# lockstat -kIW -f zio_execute -s5 sleep 5

Adaptive mutex spin: 14 events in 5.082 seconds (3 events/sec)

Count indv cuml rcnt     nsec Lock                   Caller                 
-------------------------------------------------------------------------------
    6  43%  43% 0.00     9013 0x6001125ede0          bge_intr+0x10          
    3  21%  64% 0.00     5306 0x6001125ede0          bge_chip_factotum+0x70 
    1   7%  71% 0.00      833 0x60010ee1758          ssd_start_cmds+0x4f8   
    1   7%  79% 0.00     3833 0x60010ee1758          ssd_initpkt_for_buf+0xf4
    1   7%  86% 0.00     2833 0x30017a26060          aionotify+0x18         
    1   7%  93% 0.00     3250 0x60010c0fe88          taskq_wait+0xcc        
    1   7% 100% 0.00     1333 0x60010ee1758          ssdstrategy+0x94       
-------------------------------------------------------------------------------

Spin lock spin: 460 events in 5.082 seconds (91 events/sec)

Count indv cuml rcnt     nsec Lock                   Caller                 
-------------------------------------------------------------------------------
  261  57%  57% 0.00      610 0x600112a1960          disp+0x7c              
  183  40%  97% 0.00      759 cpu0_disp              disp+0x7c              
    7   2%  98% 0.00     5547 0x600112a1960          setbackdq+0x240        
    7   2% 100% 0.00     6559 cp_default             disp_getbest+0x4       
    1   0% 100% 0.00      750 0x600112a1960          disp_getbest+0x4       
    1   0% 100% 0.00   140333 cpu0_disp              setbackdq+0x240        
-------------------------------------------------------------------------------
# lockstat -o lockstat.out -C -i 997 -s10 -D20 -n 1000000 sleep 30