Collaborations

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

Is Your PC Good Enough for LinuxCNC? Latency Test | From Scratch #2
Subscribe to the channelNew chapters of the restoration and LinuxCNC projects
Published
Duration8:13
Views447
SeriesLinuxCNC from scratch
OriginalWatch on YouTube
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

  1. 00:00Will your home PC work?
  2. 00:28What is latency?
  3. 01:17Parallel port vs Mesa card
  4. 02:51Recommended PC hardware
  5. 03:55Can you use a laptop?
  6. 04:08Running the checkup on your real PC
  7. 04:23Check 1: Network card (Intel vs Realtek)
  8. 04:52Check 2: Latency Histogram & stress test
  9. 05:25How to read the results
  10. 05:45Real test: 51 µs (Mesa) vs 72 µs (parallel)
  11. 06:19Eight tuning tests on the same PC
  12. 06:50If you get red: BIOS settings
  13. 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

ComputerDell OptiPlex 7070 Micro of the EMCO F1
Network cardIntel, dedicated to the Mesa
Mesa side (max)51 µs: green
Parallel-port side (max)72 µs: red
Criterion with a MesaUnder 100 µs, green; 100 to 200, amber
Test duration10 minutes with the computer busy

More from LinuxCNC from scratch

What's next comes out on YouTube

Every week: restoration progress, new parts and what goes wrong, told as it is.

Subscribe to DominicZe