7i96s Watchdog Ethernet

More
03 Mar 2025 19:33 #323105 by ErwinCNC
7i96s Watchdog Ethernet was created by ErwinCNC
Guten Abend zusammen, 

​​​aktuell hänge ich an folgendem Problem.
​​​​​​Mein PC M91p SFF hat an sich eine geringe Latenz jedoch kommt beim fräsen immer wieder die Watchdog Meldung und die Maschine fährt nicht weiter. 
​​​​​​
Mittlerweile bin ich relativ sicher die Ursache liegt in der Ethernet Verbindung 
Terminal
cnc@cnc:~$ halcmd show param *.tmax 
184004924 hm2_7i96s.0.read.tmax125691892 hm2_7i96s.0.write.tmax
Alle anderen Werte sind sehr deutlich kleiner. 

Bisher habe ich folgendes gemacht
Installation Linux CNC 2.94 über das fertige Image
Bios update auf die aktuelle Version und die gängigen Einstellungen 
Grub Parameter zur Verbesserung der Latenz  
(Nach dem YouTube Video von TooTall18T)
Grub Config: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"

Kann eine PCI Netzwerkkarte das Problem beheben? 
Bei der Grafikkarte hatte ich unerwartet Probleme scheinbar hat Lenovo eine BIOS Whitelist welche Grafikkarten akzeptiert werden. Ich bin nicht sicher ob dies für die Netzwerkkarten auch relevant ist?

Vielen Dank für eure Hilfe 

Grüße Erwin 
 

  

Please Log in or Create an account to join the conversation.

More
03 Mar 2025 20:02 #323109 by PCW
Replied by PCW on topic 7i96s Watchdog Ethernet
What is the result of:

chrt 99 ping -i .001 -c 60000 -q 10.10.10.10

(will take ~ 1 minute and print statistics, replace 10.10.10.10 by 7I96S card IP address if it differs)
 
The following user(s) said Thank You: ErwinCNC

Please Log in or Create an account to join the conversation.

More
04 Mar 2025 06:39 - 06 Mar 2025 19:05 #323126 by ErwinCNC
Replied by ErwinCNC on topic 7i96s Watchdog Ethernet
hier stand Unsinn 
Last edit: 06 Mar 2025 19:05 by ErwinCNC. Reason: Bild ergänzt + Text

Please Log in or Create an account to join the conversation.

More
06 Mar 2025 19:17 #323361 by ErwinCNC
Replied by ErwinCNC on topic 7i96s Watchdog Ethernet
Hallo PCW, 

vielen Dank für deine Hilfe

der Befehl hat folgenden Output 

cnc@cnc:~$ sudo chrt 99 ping -i .001 -c 6000 -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 ---
6000 packets transmitted, 6000 received, 0% packet loss, time 5999ms
rtt min/avg/max/mdev = 0.066/0.078/0.143/0.007 ms

Bezogen auf den Takt von 1ms sind die Ping Zeiten ja eher gering. 

Was sonst kann den Watchdog Fehler auslösen?
Aus dem halcmd show param *.tmax sehe ich die Werte für read.tmax und write.tmax sind ein vielfaches höher als alle anderen Werte zusammen. Deshalb die Vermutung die Ursache liegt in der Verbindung zur Mesa Karte.

Grüße 
Erwin

 

Please Log in or Create an account to join the conversation.

More
06 Mar 2025 20:01 #323364 by PCW
Replied by PCW on topic 7i96s Watchdog Ethernet
The ping times look OK but 6000 is not really enough (60000 is one minute
and a more reliable indicator of timing issues)

Note that 184004924 hm2_7i96s.0.read.tmax means about
6ms delay (at a 3 GHz CPU clock) which is why you would
get a watchdog bite.

What host Ethernet chip do you have?

lspci | grep -i eth

Should show this

Have you run a latency test on the PC?
The following user(s) said Thank You: ErwinCNC

Please Log in or Create an account to join the conversation.

More
07 Mar 2025 06:58 #323406 by ErwinCNC
Replied by ErwinCNC on topic 7i96s Watchdog Ethernet
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 

Please Log in or Create an account to join the conversation.

More
07 Mar 2025 15:22 - 07 Mar 2025 15:40 #323420 by PCW
Replied by PCW on topic 7i96s Watchdog Ethernet
OK ping times look OK

Make sure the servo thread period is set for 1ms (1000000 ns)

What actual error do you get from LinuxCNC?

 
Last edit: 07 Mar 2025 15:40 by PCW.
The following user(s) said Thank You: ErwinCNC

Please Log in or Create an account to join the conversation.

More
07 Mar 2025 19:17 #323449 by ErwinCNC
Replied by ErwinCNC on topic 7i96s Watchdog Ethernet
Es sind 2 Fehlermeldungen 

hm2/hm2_7i96s.0: Wachdog has bit! (set the .has bit pin to False to resume)

Unexpected realtime delay on task 0 with period 1000000
This Message will only display once per session. Run the Latency Test and resolve before continuing.

Die Ursache scheint wieder im Bereich read.tmax zu liegen. 

cnc@cnc:~$ halcmd show param *.tmax
Parameters:
Owner   Type  Dir         Value  Name
    36  s32   RW              0  hm2_7i96s.0.read-request.tmax
    36  s32   RW       96523036  hm2_7i96s.0.read.tmax
    36  s32   RW         390944  hm2_7i96s.0.write.tmax
    29  s32   RW          65448  motion-command-handler.tmax
    29  s32   RW         138712  motion-controller.tmax
    39  s32   RW           6464  pid.s.do-pid-calcs.tmax
    39  s32   RW           6196  pid.x.do-pid-calcs.tmax
    39  s32   RW           4464  pid.x2.do-pid-calcs.tmax
    39  s32   RW           6624  pid.y.do-pid-calcs.tmax
    39  s32   RW           6464  pid.z.do-pid-calcs.tmax
    30  s32   RW       96637576  servo-thread.tmax 


Vielen Dank

Grüße Erwin

Please Log in or Create an account to join the conversation.

More
07 Mar 2025 19:26 #323453 by ErwinCNC
Replied by ErwinCNC on topic 7i96s Watchdog Ethernet
Ergänzung

Die Maschinenkonfiguration ist für die Tests ganz einfach gehalten. Erstellt mit PNCCONF XXYZ mit 1280steps/mm keine Endschalter, Spindel oder sonstige Ein / Ausgänge.
Wirklich minimal gehalten. Außer den Verfahrwegen nur Standardeinstellungen.
Die Karte läuft auf dieIP 10.10.10.10 am PC ist noch ein USB W-Lan Stick eingesteckt. Dieses Netzwerk ist 192.168.1.XX
Als Oberfläche habe ich gmoccapy gewählt.

Please Log in or Create an account to join the conversation.

More
07 Mar 2025 19:33 #323454 by PCW
Replied by PCW on topic 7i96s Watchdog Ethernet
Not sure what's wrong, that's a 31 ms delay!
The following user(s) said Thank You: ErwinCNC

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum