[SOLVED]linuxcnc Latency test ambiguous results

More
1 year 6 months ago #327386 by tommylight
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.

Please Log in to join the conversation.

More
1 year 6 months ago #327393 by DarkPhoinix
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.

Please Log in to join the conversation.

More
1 year 6 months ago #327394 by tommylight
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.

Please Log in to join the conversation.

More
1 year 5 months ago #327397 by DarkPhoinix
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!
 

Please Log in to join the conversation.

More
1 year 5 months ago #327400 by PCW
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:

 

Attachment not found



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 )



 

Please Log in to join the conversation.

More
1 year 5 months ago #327416 by DarkPhoinix
this is my situation of IRQ.
I try yesterday morning to move some irq to cpu 0 and 1 but no success.
Code:
#!/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."
Code:
           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
situation next your script of network card:
Code:
 26:          0          0      39646       4301  IR-PCI-MSI 1572864-edge      enp3s0

Thanks for help !!!

Please Log in to join the conversation.

More
1 year 5 months ago #327423 by DarkPhoinix
Code:
 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 to join the conversation.

More
1 year 5 months ago #327433 by PCW
Did you try pinning the Ethernet IRQ to the last processor?

This usually make a large difference in Network latency

Please Log in to join the conversation.

More
1 year 5 months ago #327440 by DarkPhoinix

Did you try pinning the Ethernet IRQ to the last processor?

This usually make a large difference in Network latency
 
With your script the irq go to 2,3 core!
Code:
 26: 0 0 39646 4301 IR-PCI-MSI 1572864-edge enp3s0

Please Log in to join the conversation.

More
1 year 5 months ago #327490 by DarkPhoinix
I can't move IRQ on just core 3, it stays between 2 and 3.
I created 2 startup scripts that do nothing but move irq at startup to be sure I used smp_affinity_list + smp_affinity but nothing core 2 always has to do with IRQ 26! Does anyone know a way to move it? Change kernel version? Now I'm with 6.1. 0-33-rt-amd64 in theory with an upgrade I should have 6.1. 0-34-rt-amd64 but I don't think it solves the problem.

Please Log in to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum