可以使用 onstat -g sch 命令显示线程迁移和每个虚拟处理器的信号量操作、自旋和忙等待的数量的信息。
图: onstat -g sch 命令输出
VP Scheduler Statistics: vp pid class semops busy waits spins/wait 1 3284 cpu 23997 0 0 2 1340 adm 0 0 0 3 4624 lio 2 0 0 4 3320 pio 2 0 0 5 6076 aio 7710 0 0 6 4580 msc 46 0 0 7 3428 soc 7 0 0 8 2308 soc 1 0 0 Thread Migration Statistics: vp pid class steal-at steal-sc idlvp-at idlvp-sc inl-polls Q-ln 1 3284 cpu 0 0 0 0 0 0 2 1340 adm 0 0 0 0 0 0 3 4624 lio 0 0 0 0 0 0 4 3320 pio 0 0 0 0 0 0 5 6076 aio 0 0 0 0 0 0 6 4580 msc 0 0 0 0 0 0 7 3428 soc 0 0 0 0 0 0 8 2308 soc 0 0 0 0 0 0