Is Your PC Good Enough for LinuxCNC? Latency Test | From Scratch #2

Subscribe to the channelNew chapters of the restoration and LinuxCNC projects
Find out in 10 minutes whether your PC can run a milling machine or lathe with LinuxCNC: what latency is, parallel port vs Mesa Ethernet cards, what hardware to buy, and how to run the two real checks (network card and Latency Histogram).
Full written guide & technical benchmarks on my website:
https://dominicze.com/en/articles/linuxcnc-latency/
Episode 2 of "LinuxCNC From Scratch" — clear, animated, step by step.
Full series page: https://dominicze.com/en/projects/linuxcnc-from-scratch/
Command to check your network card in Linux:
lspci | grep -i ether
Full playlist
https://www.youtube.com/playlist?list=PLCny_PNTGDWo
Episode 1 · How to install LinuxCNC 2.9 step by step
LinuxCNC 2.9: step-by-step installation | LinuxCNC From Scratch #1
Sources & guides
Latency article (DominicZe) · https://dominicze.com/en/articles/linuxcnc-latency/
Mesa 7i76E guide (DominicZe) · https://dominicze.com/en/articles/mesa-7i76e-from-scratch/
Official LinuxCNC Latency docs · https://linuxcnc.org/docs/stable/html/install/latency-test.html
Chapters
- 00:00Will your home PC work?
- 00:28What is latency?
- 01:17Parallel port vs Mesa card
- 02:51Recommended PC hardware
- 03:55Can you use a laptop?
- 04:08Running the checkup on your real PC
- 04:23Check 1: Network card (Intel vs Realtek)
- 04:52Check 2: Latency Histogram & stress test
- 05:25How to read the results
- 05:45Real test: 51 µs (Mesa) vs 72 µs (parallel)
- 06:19Eight tuning tests on the same PC
- 06:50If you get red: BIOS settings
- 07:21Summary & community PC list
What the video shows
- To drive a machine, the computer doesn't have to be fast, it has to be punctual. LinuxCNC makes it tick at a fixed rate, and how late that tick arrives when it gets distracted by the mouse, the network or the disk is the latency, measured in microseconds.
- Parallel port versus a Mesa card. With the parallel port, the computer makes every motor pulse: it limits the speed and a late tick is a lost step. The Mesa makes the pulses on its own chip, up to 10 million per second, and the computer only talks to it once every millisecond. The series goes with Mesa.
- The computer doesn't need much: 64-bit, 4 GB of memory and a 8 GB disk or larger, preferably SSD, with the stock graphics and no proprietary drivers. With a Mesa over the network, what really matters is the network card: Intel is better, and dedicated to the Mesa only.
- The advice: a small second-hand office computer from Dell, Lenovo or HP, for example a 4-core i5. Newer isn't always better, and laptops, with a Mesa, are a lottery.
- The check is done on the computer that will go in the machine. First, which network card it has: on the F1's Dell, Intel. Then Latency Histogram for 10 minutes with the computer busy: a full-screen video, copying a large folder and moving windows around.
- How to read it: with a Mesa, only the max box on the right. Below 100 microseconds, green; between 100 and 200, amber, and keep an eye on the network.
- The result on the F1's Dell, freshly installed: 51 microseconds on the Mesa side, green without touching anything; 72 on the parallel-port side, red. In eight tests changing settings, with the Mesa they all came out green.
- If it comes out red: in the BIOS, turn off C-states, power saving, turbo and hyperthreading, and repeat the test. If it's still red, the cheapest fix may be a different computer.
- All the numbers from the eight tests are in the article LinuxCNC latency in depth.
Details
| Computer | Dell OptiPlex 7070 Micro of the EMCO F1 |
|---|---|
| Network card | Intel, dedicated to the Mesa |
| Mesa side (max) | 51 µs: green |
| Parallel-port side (max) | 72 µs: red |
| Criterion with a Mesa | Under 100 µs, green; 100 to 200, amber |
| Test duration | 10 minutes with the computer busy |

