- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
IRQ-affinity.txt
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:
Linux/Unix编程
开发平台:
Unix_Linux
- SMP IRQ affinity, started by Ingo Molnar <mingo@redhat.com>
- /proc/irq/IRQ#/smp_affinity specifies which target CPUs are permitted
- for a given IRQ source. It's a bitmask of allowed CPUs. It's not allowed
- to turn off all CPUs, and if an IRQ controller does not support IRQ
- affinity then the value will not change from the default 0xffffffff.
- Here is an example of restricting IRQ44 (eth1) to CPU0-3 then restricting
- the IRQ to CPU4-7 (this is an 8-CPU SMP box):
- [root@moon 44]# cat smp_affinity
- ffffffff
- [root@moon 44]# echo 0f > smp_affinity
- [root@moon 44]# cat smp_affinity
- 0000000f
- [root@moon 44]# ping -f h
- PING hell (195.4.7.3): 56 data bytes
- ...
- --- hell ping statistics ---
- 6029 packets transmitted, 6027 packets received, 0% packet loss
- round-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 1
- 1 0 IO-APIC-level eth1
- [root@moon 44]# echo f0 > smp_affinity
- [root@moon 44]# ping -f h
- PING hell (195.4.7.3): 56 data bytes
- ..
- --- hell ping statistics ---
- 2779 packets transmitted, 2777 packets received, 0% packet loss
- round-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]#