Guten Morgen Peter,
da hatte ich eine 0 vergessen.
Hier die Resultate für eine längere Zeit:
cnc@cnc:~$ sudo chrt 99 ping -i .001 -c 60000 -q 10.10.10.10
[sudo] Passwort für cnc:
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data
--- 10.10.10.10 ping statistics ---
60000 packets transmitted, 60000 received, 0% packet loss, time 60000ms
rtt min/avg/max/mdev = 0.065/0.078/0.178/0.007 ms
Mein PC hat folgende Netzwerkkarte:
cnc@cnc:~$ lspci | grep -i eth
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 05)
Ich habe die Latenz mehrfach mit verschiedenen Grub Parametern gemessen. Hierfür habe ich folgendes Skript verwendet:
forum.linuxcnc.org/18-computer/39371-res...or-use-with-linuxcnc
Mit der aktuellen Konfiguration erhalte ich folgende Resultate:
Using default parameters:
Result: running as user: cnc,
runtime: 7200 seconds,
parameters: --nobase, ,
prefix for outfiles 1741329147
nglx: 5,
LinuxCNC pc tests, version 20200930, started 07.03.2025 07:32:29
********************************************************************************
Hardware info is logged here: 1741329147.hw.
Latency data is logged here: 1741329147.lat.
General info:
LENOVO, 7033W6G
Bios version 9HKT58AUS, dated 06/10/2014
Chipset: Intel Corporation 6 Series/C200 Series
Harddisk is non-rotational, ie. SSD
The amount of swap currently used is 0
================================================================================
CPU related data:
model name : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
cpu cores : 4
stepping : 7
cache size : 6144 KB
================================================================================
RAM related data:
Maximum Capacity: 32 GB
Size: No Module Installed
Size: 4 GB
Size: No Module Installed
Size: 4 GB
================================================================================
GPU related data:
product: 2nd Generation Core Processor Family Integrated Graphics Controller
configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
================================================================================
Parallel port related data:
number of parallel ports is 0
================================================================================
Os and desktop related data:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
Should the info below not match with your machine,
kindly post the output of pstree here, including a brief
desciption of your desktop environment, window manager and
display manager. Tia
forum.linuxcnc.org/18-computer/39370-scr...-of-computer-latency
Desktop environment : lightdm
Windowmanager : Xfwm4
Displaymanager : lightdm
================================================================================
Kernel related data:
Kernel 6.1.0-31-rt-amd64
GRUB_CMDLINE_LINUX_DEFAULT="quiet console=tty0 console=ttyS0,115200 skew_tick=1 rcu_nocb_poll rcu_nocbs=1-95 nohz=on nohz_full=1-95 kthread_cpus=0,1 irqaffinity=0,1 isolcpus=2,3 intel_pstate=disable nosoftlockup tsc=nowatchdog intel_idle.max_cstate=1 i915.enable_rc6=0"
Cpu idle driver: intel_idle
================================================================================
Kernel modules data:
Check if pcspkr is loaded: Yes, may cause bigger latency.
can be eliminated using:
sudo echo "install pcspkr /bin/true" >/etc/modprobe.d/pcspkr.conf
Check if snd modules are loaded: Yes, may cause bigger latency.
can probably be disabled in bios, alternatively, you can run
"./block-snd-modules"
which has just now been created for your convenience.
================================================================================
Keyboard & Mouse related data:
Number of mice: 1
Mouse 0 : Logitech USB Optical Mouse
Mice attached to USB:
Logitech, Inc. RX1000 Laser Mouse
Keyboards attached to USB:
IBM Corp. NetVista Full Width Keyboard
================================================================================
LinuxCNC related data:
LinuxCNC version is: 2.9.4
================================================================================
Preparing for latency test:
Started glxgears No. 1, 2, 3, 4, 5
Remaining 0d 0h:0m:0s, press ^C to abort...
7200 s servo min: -45.600 us max: 49.200 us sdev: 1.000 us
7201 s servo min: -45.600 us max: 49.200 us sdev: 1.000 us
7202 s servo min: -45.600 us max: 49.200 us sdev: 1.000 us
7202 s servo min: -45.600 us max: 49.200 us sdev: 1.000 us
7203 s servo min: -45.600 us max: 49.200 us sdev: 1.000 us
7204 s servo min: -45.600 us max: 49.200 us sdev: 1.000 us
7204 s servo min: -45.600 us max: 49.200 us sdev: 1.000 us
Core 0: +60.0°C (high = +80.0°C, crit = +99.0°C)
Core 1: +58.0°C (high = +80.0°C, crit = +99.0°C)
Core 2: +63.0°C (high = +80.0°C, crit = +99.0°C)
Core 3: +59.0°C (high = +80.0°C, crit = +99.0°C)
Cleaning up
terminated latency-test ...
Mit anderen Grub Parametern habe ich etwa 27 000us erhalten. Aktuell teste ich verschiedene Einstellungen und Parameter.
Im Beitrag zum Skript sind viele ähnliche Latenzwerte dokumentiert - so schlecht sollte die Maschine also nicht sein?
Muss ich irgendwo noch Werte eintragen? Testweise habe ich im pncconf am Anfang meine Werte + 30% eingetragen.
@tommylight schreibt dazu hier im Forum auf die Frage eines anderen Nutzers das muss nicht gemacht werden?
forum.linuxcnc.org/18-computer/39371-res...h-linuxcnc?start=230
seuchato wrote:
I'd set the value in LinuxCNC to 120 -130% of the obtained latency data ..
That is valid for base period when using parallel port. Mesa boards do not use base period at all, and the servo period should be left at default 1000000 ( 1 mill ).
Vielen Dank
Grüße Erwin