Resource load #244
-
@jamwaffles what is normal load when you are running ethercrab binary with like 10 subdevices? I have been testing it and without running any business logic just polling process data every 1 ms it is roughly 25% on Intel Ultra 7 165U. For reference, I have a c++ binary using the soem library with same set of subdevices runs at 4% load, with 1 ms polling on same PC. Resources, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I don't have any data recorded for CPU load, but anecdotally 25% is pretty high. Can I ask what OS your code is running on? I'd also suggest not using If you must use |
Beta Was this translation helpful? Give feedback.
-
I fired up a test system with Debian 12.8, i3-7100T (similar in performance to the CPU in your system), 4GB of RAM and kernel On this setup with no tuning, I saw around 35% CPU load in Some things to try:
I don't know the Arch Linux equivalents but hopefully it's not too hard to find them! After these changes on my test system, I'm now down under 10% CPU utilisation when running the Also, I had a look at |
Beta Was this translation helpful? Give feedback.
I fired up a test system with Debian 12.8, i3-7100T (similar in performance to the CPU in your system), 4GB of RAM and kernel
Linux 6.1.0-27-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux
.On this setup with no tuning, I saw around 35% CPU load in
htop
which is similar to your result.Some things to try:
PREEMPT_RT
realtime kernellatency-performance
profile withtuned-adm profile latency-performance
(apt install tuned-utils
for me). This pushed my CPU from 1600MHz to 3400Mhz, YMMV.sudo ethtool -C <nic name here> tx-usecs 0 rx-usecs 0
--r…