我想禁止某些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.