相关疑难解决方法(0)

CPU0 被 eth1 中断淹没

我有一个 Ubuntu VM,在基于 Ubuntu 的 Xen XCP 中运行。它托管基于 FCGI 的自定义 HTTP 服务,位于nginx.

下从负载ab 第一CPU芯饱和,其余为欠载。

/proc/interrupts我看来,CPU0 提供的中断比任何其他内核都多一个数量级。他们中的大多数来自eth1.

我可以做些什么来提高此 VM 的性能?有没有办法更均衡地平衡中断?


血腥细节:

$ uname -a
Linux MYHOST 2.6.38-15-virtual #59-Ubuntu SMP Fri Apr 27 16:40:18 UTC 2012 i686 i686 i386 GNU/Linux

$ lsb_release -a
没有可用的 LSB 模块。
分销商 ID: Ubuntu
描述:Ubuntu 11.04
发布:11.04
代号:natty

$ cat /proc/interrupts 
           CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7       
283:113720624 0 0 0 0 0 0 0 xen-dyn-event …

linux ubuntu performance-tuning interrupts high-load

12
推荐指数
1
解决办法
2万
查看次数

如何在 Xen XCP 内的 Ubuntu PV domU 上更改 IRQ 的 SMP 关联?

由于这个问题中概述的原因,我想更改 IRQ SMP 关联性:CPU0 is swamped with eth1 interrupts

但我不能——Input/output error当我尝试写信给/proc/irq/*/smp_affinity.

请向我指出有关此事的 HOWTO。(正式参考/proc/irq/*/也很酷。)

血腥细节:

请注意,这是基于 Ubuntu 的 Xen XCP 主机内的 VM (PV domU)。

$ uname -a
Linux MYHOST 2.6.38-15-virtual #59-Ubuntu SMP Fri Apr 27 16:40:18 UTC 2012 i686 i686 i386 GNU/Linux

$ lsb_release -a
没有可用的 LSB 模块。
分销商 ID: Ubuntu
描述:Ubuntu 11.04
发布:11.04
代号:natty

$ sudo cat /proc/irq/*/smp_affinity
01
01
01
01
01
80
80
80
80
80
80
40
40
40
40 …

linux ubuntu troubleshooting smp irq

3
推荐指数
1
解决办法
1万
查看次数