⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 irq-affinity.txt

📁 嵌入式系统设计与实例开发源码
💻 TXT
字号:
SMP IRQ affinity, started by Ingo Molnar <mingo@redhat.com>/proc/irq/IRQ#/smp_affinity specifies which target CPUs are permittedfor a given IRQ source. It's a bitmask of allowed CPUs. It's not allowedto turn off all CPUs, and if an IRQ controller does not support IRQaffinity then the value will not change from the default 0xffffffff.Here is an example of restricting IRQ44 (eth1) to CPU0-3 then restrictingthe IRQ to CPU4-8 (this is an 8-CPU SMP box):[root@moon 44]# cat smp_affinityffffffff[root@moon 44]# echo 0f > smp_affinity[root@moon 44]# cat smp_affinity0000000f[root@moon 44]# ping -f hPING hell (195.4.7.3): 56 data bytes...--- hell ping statistics ---6029 packets transmitted, 6027 packets received, 0% packet lossround-trip min/avg/max = 0.1/0.1/0.4 ms[root@moon 44]# cat /proc/interrupts | grep 44: 44:          0       1785       1785       1783       1783          11          0   IO-APIC-level  eth1[root@moon 44]# echo f0 > smp_affinity[root@moon 44]# ping -f hPING hell (195.4.7.3): 56 data bytes..--- hell ping statistics ---2779 packets transmitted, 2777 packets received, 0% packet lossround-trip min/avg/max = 0.1/0.5/585.4 ms[root@moon 44]# cat /proc/interrupts | grep 44: 44:       1068       1785       1785       1784       1784       1069       1070       1069   IO-APIC-level  eth1[root@moon 44]#

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -