linuxcnc Latency test ambiguous results
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20152
- Thank you received: 6855
30 Apr 2025 21:16 #327386
by tommylight
Replied by tommylight on topic linuxcnc Latency test ambiguous results
Yes that is for parallel port only.
I have to ask, why are you messing with these settings?
What are you trying to do?
What is working and what not?
For configuration you should have asked in the Remora topic, might get better help there.
I have to ask, why are you messing with these settings?
What are you trying to do?
What is working and what not?
For configuration you should have asked in the Remora topic, might get better help there.
The following user(s) said Thank You: DarkPhoinix
Please Log in or Create an account to join the conversation.
- DarkPhoinix
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 5
30 Apr 2025 22:38 - 30 Apr 2025 22:49 #327393
by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
I wanted to see the stepper turn correctly, also to understand how ini and hal work if they are connected to each other. Honestly I would have liked to see the system turn with youtube active without errors.
Last edit: 30 Apr 2025 22:49 by DarkPhoinix.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20152
- Thank you received: 6855
30 Apr 2025 23:33 #327394
by tommylight
Replied by tommylight on topic linuxcnc Latency test ambiguous results
OK, i forgot what this was about, so yes, do continue testing and poking around.
Youtube will use graphic subsystem and that must use interrupts and other resources, causing spikes. Use integrated graphic, usually that works OK.
Youtube will use graphic subsystem and that must use interrupts and other resources, causing spikes. Use integrated graphic, usually that works OK.
The following user(s) said Thank You: DarkPhoinix
Please Log in or Create an account to join the conversation.
- DarkPhoinix
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 5
01 May 2025 00:26 #327397
by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
unfortunately I don't have video outputs on the motherboard, I'm looking for a motherboard to be able to do this, are there any pcie video cards that don't create problems? No to video cards with additional power please!
small OT, I inserted these strings in hal and ini but I continue to have the same movements on the stepper, where should I ask for this problem?
remora-docs.readthedocs.io/en/latest/software/hal-examples.html
Thanks to everyone for the intervention in this post that helped me to improve the management of the IRQs in the system!
small OT, I inserted these strings in hal and ini but I continue to have the same movements on the stepper, where should I ask for this problem?
remora-docs.readthedocs.io/en/latest/software/hal-examples.html
Thanks to everyone for the intervention in this post that helped me to improve the management of the IRQs in the system!
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18511
- Thank you received: 5069
01 May 2025 00:49 #327400
by PCW
Replied by PCW on topic linuxcnc Latency test ambiguous results
Another optimization is to pin the Ethernet IRQ to the last processor
(the one LinuxCNC uses for real time)
Here is a test script to run to temporarily set this:
Download the script
chmod +x pinirq.txt
then
sudo ./pinirq.txt ethernet_device_name
where ethernet device name is something like eth0 or eno1
( ip a to find the device name )
(the one LinuxCNC uses for real time)
Here is a test script to run to temporarily set this:
Download the script
chmod +x pinirq.txt
then
sudo ./pinirq.txt ethernet_device_name
where ethernet device name is something like eth0 or eno1
( ip a to find the device name )
Attachments:
Please Log in or Create an account to join the conversation.
- DarkPhoinix
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 5
01 May 2025 11:27 #327416
by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
this is my situation of IRQ.
I try yesterday morning to move some irq to cpu 0 and 1 but no success.situation next your script of network card:
Thanks for help !!!
I try yesterday morning to move some irq to cpu 0 and 1 but no success.
#!/bin/bash
# Funzione per spostare un IRQ su una specifica CPU core
sposta_irq_su_core() {
local irq_number="$1"
local cpu_core="$2"
local affinity_file="/proc/irq/${irq_number}/smp_affinity_list"
if [ -f "$affinity_file" ]; then
echo "$cpu_core" > "$affinity_file"
echo "IRQ $irq_number spostato sul core $cpu_core."
else
echo "Errore: il file di affinità per l'IRQ $irq_number non esiste."
fi
}
# Ottieni la lista degli IRQ
irqs=$(ls /proc/irq)
# Definisci i core target
core0=0
core1=1
echo "Tentativo di spostare gli IRQ sui core $core0 e $core1..."
# Itera attraverso gli IRQ e distribuiscili sui core 0 e 1
counter=0
for irq in $irqs; do
if [[ "$irq" =~ ^[0-9]+$ ]]; then # Verifica che sia un numero (IRQ)
if (( counter % 2 == 0 )); then
sposta_irq_su_core "$irq" "$core0"
else
sposta_irq_su_core "$irq" "$core1"
fi
((counter++))
fi
done
echo "Operazione completata."
CPU0 CPU1 CPU2 CPU3
8: 0 0 0 0 IR-IO-APIC 8-edge rtc0
9: 0 0 0 0 IR-IO-APIC 9-fasteoi acpi
17: 466 0 0 0 IR-IO-APIC 17-fasteoi snd_hda_intel:card0
18: 5 0 0 0 IR-IO-APIC 18-fasteoi i801_smbus
23: 0 112 0 0 IR-IO-APIC 23-fasteoi ehci_hcd:usb1, ehci_hcd:usb2
24: 0 0 0 0 DMAR-MSI 0-edge dmar0
26: 0 0 13810 0 IR-PCI-MSI 1572864-edge enp3s0
27: 0 0 10628 0 IR-PCI-MSI 512000-edge ahci[0000:00:1f.2]
28: 0 0 0 18 IR-PCI-MSI 360448-edge mei_me
29: 0 26402 0 0 IR-PCI-MSI 524288-edge nvkm
NMI: 2 2 0 0 Non-maskable interrupts
LOC: 176373 127559 836 484 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 2 2 0 0 Performance monitoring interrupts
IWI: 612 299 410 7 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 7385 8439 2 0 Rescheduling interrupts
CAL: 2871 3192 1850 1849 Function call interrupts
TLB: 81 69 0 0 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
DFR: 0 0 0 0 Deferred Error APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 2 3 3 3 Machine check polls
ERR: 0
MIS: 0
PIN: 0 0 0 0 Posted-interrupt notification event
NPI: 0 0 0 0 Nested posted-interrupt event
PIW: 0 0 0 0 Posted-interrupt wakeup event
26: 0 0 39646 4301 IR-PCI-MSI 1572864-edge enp3s0
Thanks for help !!!
Please Log in or Create an account to join the conversation.
- DarkPhoinix
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 5
01 May 2025 12:36 #327423
by DarkPhoinix
Very nice next blacklisted intel backdoor! six windows of youtube no junction error!! But nest use rustdesk error coming
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
28: 0 0 0 18 IR-PCI-MSI 360448-edge mei_me
cat /etc/modprobe.d/mei*
blacklist mei
blacklist mei_hdcp
blacklist mei_me
Very nice next blacklisted intel backdoor! six windows of youtube no junction error!! But nest use rustdesk error coming
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18511
- Thank you received: 5069
01 May 2025 14:32 #327433
by PCW
Replied by PCW on topic linuxcnc Latency test ambiguous results
Did you try pinning the Ethernet IRQ to the last processor?
This usually make a large difference in Network latency
This usually make a large difference in Network latency
The following user(s) said Thank You: DarkPhoinix
Please Log in or Create an account to join the conversation.
- DarkPhoinix
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 5
01 May 2025 16:42 #327440
by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
With your script the irq go to 2,3 core!Did you try pinning the Ethernet IRQ to the last processor?
This usually make a large difference in Network latency
26: 0 0 39646 4301 IR-PCI-MSI 1572864-edge enp3s0
Please Log in or Create an account to join the conversation.
Time to create page: 0.204 seconds