我想禁止某些CPU的中断。我听说过IRQBALANCE_BANNED_CPUS选项。我看到irqbalance在我的计算机的后台运行。我在哪里进行编辑以及如何配置该选项?例如,我要从中断中排除cpus 2、3、4、5。参数描述符为:
提供cpus的掩码,irqbalance应该忽略该掩码,并且永远不要将中断分配给
口罩是什么意思?以及在哪里使用该选项配置irqbalance?
EDIT1:如何知道我的配置有效,换句话说,我的cpu接收到没有中断?我正在检查/ proc / interrupts,但那里的数字正在增加。
EDIT2:现在,我以IRQBALANCE_BANNED_CPUS = 3e引导了我的机器,因此,只有CPU 0才被禁止中断。因此,我应该期望看到cpo0接收到许多中断,而其他cpus没有接收到中断,对吗?这是我的/ proc / interrupts。粗体字表示所有cpus。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上完全被忽略。我尝试用1、3e重新启动计算机,并全部中断。就在我通过设置ENABLED = 0禁用irqbalance时,我只在cpu0上获得了干净的/ proc / interrupts,而没有其他cpu。