在监控性能时,仅使用此文件时要小心:在网络活动高峰期,你会期望看到NET_RX的增量增加,但这并不一定是这样。事实证明,这一点有些微妙,因为网络堆栈中有额外的调整旋钮,可以影响NET_RX softirq的触发速率,我们很快就会看到。 你应该了解这一点,以便在调整其他调整旋钮时,知道要检查/proc/softirqs并期望看到变化。
(6)soft:在internal时间段里,软中断时间(%),值为(softirq/total)*100; (7)idle:在internal时间段里,CPU除去等待磁盘IO操作外的因为任何原因而空闲的时间闲置时间(%),值为(idle/total)*100; (8)intr/s:在internal时间段里,每秒CPU接收的中断的次数,值为(intr/total)*100; 1.6sar 1.6.1命令说明 Sar命令...
softirq (5346) 从系统启动开始累计到当前时刻,软中断时间(单位:jiffies) CPU时间=user+system+nice+idle+iowait+irq+softirq “intr”这行给出中断的信息,第一个为自系统启动以来,发生的所有的中断的次数;然后每个数对应一个特定的中断自系统启动以来所发生的次数。 “ctxt”给出了自系统启动以来CPU发生的上下文...
%soft 在internal时间段里,软中断时间(%) (softirq/total)*100 %idle 在internal时间段里,CPU除去等待磁盘IO操作外的因为任何原因而空闲的时间闲置时间(%) (idle/total)*100 计算公式如下 total_cur=user+system+nice+idle+iowait+irq+softirq total_pre=pre_user+ pre_system+ pre_nice+ pre_idle+ pre_io...
cpu.softirq:Percentage of time spent by the CPU or CPUs to service software interrupts. cpu.nice:Percentage of CPU utilization that occurred while executing at the user level with nice priority. cpu.steal:Percentage of time spent in involuntary wait by the virtual CPU or CPUs while the hypervis...
CPU可以处于softirq模式,即系统正在执行同样由中断触发的内核代码,只不过其运行于较低优先级(下半部代码) 一个具有 高“系统”百分比 的系统表明其大部分时间都消耗在了内核上。像oprofile一样的工具可以帮助确定时间都消耗在了哪里。具有 高“用户”时间 的系统则将其大部分时间都用来运行应用程序。
就可以完成的工作,而将那些处理事件比较长的工作,放到中断之后来完成,也就是软中断(softirq)来完成。 导致软中断的情况: 主动中断:在时间片内cpu完成了任务,主动让出cpu 被动中断:在时间片内,cpu没有完成任务,被动让出cpu 用户进程主动发起中断 大量中断导致系统上下文切换,会消耗内核cpu(系统cpu) ...
cpu.softirq:Percentage of time spent by the CPU or CPUs to service software interrupts. cpu.nice:Percentage of CPU utilization that occurred while executing at the user level with nice priority. cpu.steal:Percentage of time spent in involuntary wait by the virtual CPU or CPUs while the hypervis...
√当 irq/softirq 占用率过高的时候,很可能某些外设出现问题,导致产生大量的irq请求,这时候通过检查 /proc/interrupts 文件来深究问题所在; √当 steal 占用率过高的时候,黑心厂商虚拟机超售了吧! 第四行和第五行是物理内存和虚拟内存(交换分区)的信息:
net_dev_init 调用 open_softirq 向软中断系统注册 NET_RX_SOFTIRQ 软中断,被注册的软中断处理函数是 net_rx_action(前文“软中断处理函数初始化”一节)。软中断内核线程会调用此函数来处理 packets。 图1 中的第 5 - 8 步与数据的到达有关,下一节会说。