Latency of parallel port system on decent hardware.

More
18 Nov 2024 17:33 - 18 Nov 2024 17:34 #314776 by langdons
I have LinuxCNC 2.9.3 running on Debian Bookworm installed on a decent old PC.

The latency test returned a max jitter of about 15ns for the top number and 24ns for the bottom number.

I have now removed all unnecessary hardware and peripherals.

I will also blacklist as many kernel modules as possible.

The CPU scaling governor is set to performance.

The PC communicates with the microstep drivers directly through a PCI-e parallel port card, a parallel port cable, and a PMDX-122 buffer board.

Is this latency acceptable?

Would LinuxCNC 2.714 Wheezy work better for my setup?

I will post latency test result after disabling all unnecessary hardware.

Is it worthwhile to disable the Ethernet port (blacklist e1000e) to reduce latency?
Last edit: 18 Nov 2024 17:34 by langdons. Reason: Fixed typo.

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

More
19 Nov 2024 11:56 #314835 by tommylight
Do you get latency warnings when running LinuxCNC?
If not, do not change anything.
If yes, download the Wheezy ISO and boot from USB, start your config by right clicking on the .ini file, open with, type linuxcnc and press enter.

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

More
19 Nov 2024 17:19 #314861 by NTULINUX
For the lowest latency, you might have better luck with RTAI than PREEMPT_RT, assuming the BIOS isn't buggy:

forum.linuxcnc.org/9-installing-linuxcnc...ng-rtai-debs-for-2-9

If you need help, let us know!

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

More
20 Nov 2024 13:57 #314911 by langdons
I managed to lower the latency to about 14000ns max jitter by disabling hardware.

I also set the CPU governor to performance.

I will try to disable more hardware to further reduce latency.

Unfortunately, I am unable to modify and BIOS settings because this is an old scrap computer from my high school.
I tried to get the IT person to change the password, but the BIOS login window is broken :(

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

More
20 Nov 2024 13:59 - 20 Nov 2024 14:01 #314913 by langdons
I also unplugged the front audio and USB ports that I do not use.

(The back of the PC has a plethora of ports)

However, now the BIOS complains every boot :(

Whatever, I'll just press f1 every time I boot up to clear the error.
Last edit: 20 Nov 2024 14:01 by langdons. Reason: Fixed typos

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

More
20 Nov 2024 14:04 #314914 by langdons
Running "sudo apt update && sudo apt install linuxcnc" gives an error.

I blacklisted the Ethernet port.

Debian has no internet connection.

BTW, the system is a dual boot of Ubuntu 24.04 (my preferred OS) and Debian (for LinuxCNC)

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

Time to create page: 0.067 seconds
Powered by Kunena Forum