【发布时间】:2013-05-08 12:25:11
【问题描述】:
下面是top -b的输出
Mem: 95752K used, 29164K free, 0K shrd, 0K buff, 35176K cached
CPU: 5% usr 9% sys 0% nic 0% idle 0% io 0% irq 84% sirq
我需要持续监控sirq,如何在 shell script(sh) 中做到这一点?
问候, 尤维
【问题讨论】:
-
top建议用于瞬时性能。如果您想随时监控某些内容,最好使用sar。本帖可以帮到你 --> unix.com/solaris/… -
@fedorqui 那是 top 的输出。我只需要grep sirq 值
(84)
标签: linux shell embedded-linux sh