Showing revision 22
EtherCAT优化指南 -- EtherCAT Optimization Guide
- 对于中断号每次开机都变化情况使用下面代码获取中断号
- 在四核 CPU 上,CPU 0 到 CPU 3 对应的二进制掩码是:
- CPU 0 -> 0001(十六进制为 0x1)
- CPU 1 -> 0010(十六进制为 0x2)
- CPU 2 -> 0100(十六进制为 0x4)
- CPU 3 -> 1000(十六进制为 0x8) 我绑定的是最后一个核心 所以应该是8
- IRQ_LIST=$(cat /proc/interrupts | grep enp2s0 | awk '{print $1}' | sed 's/://')
- for irq in $IRQ_LIST; do
- echo 8 > /proc/irq/$irq/smp_affinity
- done
- ethtool -C eno1 rx-usecs 0
- ethtool -C eno1 tx-usecs 0
- ethtool --set-eee eno1 eee off
我使用的内核参数
- quiet isolcpus=3 irqaffinity=0,1,2 idle=poll acpi_irq_nobalance nosoftlockup i915.enable_rc6=0 i915.enable_dc=0 i915.disable_power_well=0 i915.enable_execlists=0 i915.powersave=0 cpufreq.off hugepages=1024 numa_balancing=disable nmi_watchdog=0 noht nohalt mce=ignore_ce clocksource=tsc tsc=reliable intel_idle.max_cstate=0 processor.max_cstate=0 intel.max_cstate=0 processor_idle.max_cstate=0 hpet=disable clocksource=tsc tsc=reliable igb.EEE=0 pcie_aspm=off r8169.eee_enable=0 radeon.dpm=0
简单的三轴配置