ubuntu禁用debug_linux – 如何在Ubuntu上使用IRQBALANCE_BANNED_CPUS禁止硬件中断?

我想禁止某些CPU的中断.我听说过IRQBALANCE_BANNED_CPUS选项.我看到irqbalance正在我的机器后台运行.我在哪里编辑以及如何配置该选项?例如,我想从中断中排除cpus 2,3,4,5.参数

descriptor是:

Provides a mask of cpus which irqbalance should ignore and never

assign interrupts to

面具是什么意思?我在哪里配置irqbalance与该选项?

编辑1:如何知道我的配置生效,换句话说我的CPU没有收到中断?我正在检查/ proc / interrupts但是有些数字正在增加.

EDIT2:现在我用IRQBALANCE_BANNED_CPUS = 3e启动了我的机器,所以只有CPU 0不被禁止中断.所以我应该期待看到cpo0收到很多中断而另一个cpus没有收到中断,对吧?这是我的/ proc / interrupts.粗体的行正在改变所有cpu.第22,24,35和LOC行正在改变.

CPU0 CPU1 CPU2 CPU3 CPU4 CPU5

0: 26 0 0 0 0 0 IO-APIC-edge timer

1: 2 0 0 0 0 0 IO-APIC-edge i8042

6: 3 0 0 0 0 0 IO-APIC-edge floppy

8: 1 0 0 0 0 0 IO-APIC-edge rtc0

9: 0 0 0 0 0 0 IO-APIC-fasteoi acpi

12: 4 0 0 0 0 0 IO-APIC-edge i8042

14: 13556 0 0 0 0 0 IO-APIC-edge ata_piix

15: 0 0 0 0 0 0 IO-APIC-edge ata_piix

18: 0 0 0 0 0 0 IO-APIC-fasteoi ata_piix

19: 2 0 0 0 0 0 IO-APIC-fasteoi ohci1394

20: 3 0 0 0 0 0 IO-APIC-fasteoi ehci_hcd:usb2,uhci_hcd:usb3,uhci_hcd:usb6

21: 197 635 39 0 0 0 IO-APIC-fasteoi uhci_hcd:usb4,uhci_hcd:usb7,HDA Intel

22: 344 3506 0 702 0 0 IO-APIC-fasteoi ehci_hcd:usb1,uhci_hcd:usb5,uhci_hcd:usb8

24: 162 48 0 0 0 0 IO-APIC-fasteoi nvidia

35: 174 0 47 0 0 0 IO-APIC-fasteoi nvidia

53: 3517 0 0 0 0 0 PCI-MSI-edge eth0

NMI: 0 0 0 0 0 0 Non-maskable interrupts

LOC: 11007 8840 6480 5652 4272 3046 Local timer interrupts

SPU: 0 0 0 0 0 0 Spurious interrupts

PMI: 0 0 0 0 0 0 Performance monitoring interrupts

PND: 0 0 0 0 0 0 Performance pending work

RES: 292 169 217 125 122 126 Rescheduling interrupts

CAL: 86 280 254 292 293 291 Function call interrupts

TLB: 1147 1031 1348 616 177 322 TLB shootdowns

TRM: 0 0 0 0 0 0 Thermal event interrupts

THR: 0 0 0 0 0 0 Threshold APIC interrupts

MCE: 0 0 0 0 0 0 Machine check exceptions

MCP: 2 2 2 2 2 2 Machine check polls

ERR: 5

MIS: 0

EDIT3:看起来IRQBALANCE_BANNED_CPUS选项在Ubuntu上完全是IGNORED.我尝试用1,3e重启我的机器并且全部中断了.就在我通过设置ENABLED = 0来禁用irqbalance时,我在cpu0上得到一个干净/ proc /中断而没有其他cpu.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值