[Home]Onceloved

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Showing revision 24

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

我使用的内核参数

简单的EtherCAT三轴配置


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions | View current revision
Edited February 11, 2025 3:01 am by Onceloved (diff)
Search:
Published under a Creative Commons License