Results of latency test, list of computers tested for use with LinuxCNC

  • macsddau@linuxcnc
  • macsddau@linuxcnc's Avatar
  • Offline
  • Premium Member
  • Premium Member
More
06 Dec 2020 06:09 #191209 by macsddau@linuxcnc

Hi,
Try to use as describe :
sudo echo "install pcspkr /bin/true" >/etc/modprobe.d/pcspkr.conf
Result :
bash: /etc/modprobe.d/pcspkr.conf: Permission non accordée
(sorry in French)

Done by hand.
Change the script with 100000us to avoid latency message.
Here the result :
LinuxCNC pc tests, version 20200930, started 06.12.2020 01:08:45
********************************************************************************
General info:
ASRock,  To Be Filled By O.E.M.
Bios version P1.90, dated 05/21/2018
Chipset: Harddisk is non-rotational, ie. SSD
The amount of swap currently used is 0
================================================================================
CPU related data:
model name	: Intel(R) Celeron(R) CPU J3355 @ 2.00GHz
cpu cores	: 2
stepping	: 9
cache size	: 1024 KB
================================================================================
RAM related data:
Maximum Capacity: 16 GB
Maximum Voltage: 1.5 V
Maximum Voltage: Unknown
Size: 4096 MB
Size: No Module Installed
================================================================================
GPU related data:
configuration: driver=i915 latency=0
================================================================================
Parallel port related data:
number of parallel ports is 1
parport0: PC-style at 0x378, irq 5 [PCSPP]
================================================================================
Os and desktop related data:
PRETTY_NAME="Debian GNU/Linux 10 (buster)"

Should the info below not match with your machine,
kindly post the output of pstree here, including a brief
desciption of your desktop environment, window manager and
display manager. Tia
https://forum.linuxcnc.org/18-computer/39370-script-for-automated-testing-of-computer-latency

Desktop environment : xfce4
Windowmanager       : Xfwm4
Displaymanager      : lightdm
================================================================================
Kernel related data:
Kernel 4.19.0-13-rt-amd64
GRUB_CMDLINE_LINUX_DEFAULT="quiet isolcpus=1"
Cpu idle driver: intel_idle
================================================================================
Kernel modules data:
Check if pcspkr is loaded: No, which is good!
Check if snd modules are loaded: No, which is good!
================================================================================
Keyboard & Mouse related data:
Number of mice: 1
Mouse 0 : Genius       NetScroll+Mini Traveler
Mice  attached to USB:
KYE Systems Corp. (Mouse Systems) Pocket Mouse LE
Keyboards attached to USB:
Logitech, Inc. Keyboard K120
================================================================================
LinuxCNC related data:
LinuxCNC version is: 2.8.1.1.g5d082d148
================================================================================
Preparing for latency test:
Started glxgears No. 1, 2, 3, 4, 5
..........
Started firefox with 'https://vimeo.com/150574260', WID 27263161
================================================================================
Command for latency test is:
su cnc -c  "latency-histogram --bbinsize 1000 --base 100000 --sbinsize 1000 --nox 2>&1 | tee -a 1607213323.lat &"

Latency testing loop started dimanche 6 décembre 2020, 01:09:01 (UTC+0100), 
should end after dimanche 6 décembre 2020, 03:09:01 (UTC+0100)

================================================================================
Swap useage: prerun: 0, running: 0

================================================================================
CPU core temperatures:
Core 0: Tmin: 34.0°C, Tmax: 46.0°C, (high = +105.0°C, crit = +105.0°C)
Core 2: Tmin: 31.0°C, Tmax: 44.0°C, (high = +105.0°C, crit = +105.0°C)
================================================================================
last latency data is as follows:.
 7201 secs   base min: -25.000 uS max:  25.600 uS sdev:   0.500 uS
 7201 secs  servo min: -21.800 uS max:  21.800 uS sdev:   0.400 uS

Got the latency message when running with 25.600us max jitter in gmoccapy :angry:
The following user(s) said Thank You: seuchato

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

  • tommylight
  • tommylight's Avatar Topic Author
  • Online
  • Moderator
  • Moderator
More
06 Dec 2020 10:15 #191212 by tommylight
Set the base period higher than the latency result shows, at least 20 to 30% higher.
The following user(s) said Thank You: seuchato, macsddau@linuxcnc

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

  • macsddau@linuxcnc
  • macsddau@linuxcnc's Avatar
  • Offline
  • Premium Member
  • Premium Member
More
06 Dec 2020 21:35 - 06 Dec 2020 21:42 #191261 by macsddau@linuxcnc

Set the base period higher than the latency result shows, at least 20 to 30% higher.

Thanks tommylight, I Have integrated this values in my spreadsheet. It will return me a warning if this conditions are not respected.
After a hard week-end I finally get a hardware test with pretty good results. It give me rooms for stepping.
Here the lcnc-hw test results :
LinuxCNC pc tests, version 20200930, started 06.12.2020 20:20:41
********************************************************************************
General info:
ASRock,  To Be Filled By O.E.M.
Bios version P1.90, dated 05/21/2018
Chipset: Harddisk is non-rotational, ie. SSD
The amount of swap currently used is 0
================================================================================
CPU related data:
model name	: Intel(R) Celeron(R) CPU J3355 @ 2.00GHz
cpu cores	: 2
stepping	: 9
cache size	: 1024 KB
================================================================================
RAM related data:
Maximum Capacity: 16 GB
Maximum Voltage: 1.5 V
Maximum Voltage: Unknown
Size: 4096 MB
Size: No Module Installed
================================================================================
GPU related data:
configuration: driver=i915 latency=0
configuration: driver=radeon latency=0
================================================================================
Parallel port related data:
number of parallel ports is 1
parport0: PC-style at 0x378, irq 5 [PCSPP]
================================================================================
Os and desktop related data:
PRETTY_NAME="Debian GNU/Linux 10 (buster)"

Should the info below not match with your machine,
kindly post the output of pstree here, including a brief
desciption of your desktop environment, window manager and
display manager. Tia
https://forum.linuxcnc.org/18-computer/39370-script-for-automated-testing-of-computer-latency

Desktop environment : xfce4
Windowmanager       : Xfwm4
Displaymanager      : lightdm
================================================================================
Kernel related data:
Kernel 4.19.0-13-rt-amd64
GRUB_CMDLINE_LINUX_DEFAULT="quiet isolcpus=1"
Cpu idle driver: intel_idle
================================================================================
Kernel modules data:
Check if pcspkr is loaded: No, which is good!
Check if snd modules are loaded: No, which is good!
================================================================================
Keyboard & Mouse related data:
Number of mice: 1
Mouse 0 : Genius       NetScroll+Mini Traveler
Mice  attached to USB:
KYE Systems Corp. (Mouse Systems) Pocket Mouse LE
Keyboards attached to USB:
Logitech, Inc. Keyboard K120
================================================================================
LinuxCNC related data:
LinuxCNC version is: 2.8.1
================================================================================
Preparing for latency test:
Started glxgears No. 1, 2, 3, 4, 5
..........
Started firefox with 'https://vimeo.com/150574260', WID 50331651
================================================================================
Command for latency test is:
su cnc -c  "latency-histogram --bbinsize 1000 --base 100000 --sbinsize 1000 --nox 2>&1 | tee -a 1607282410.lat &"

Latency testing loop started dimanche 6 décembre 2020, 20:20:57 (UTC+0100), 
should end after dimanche 6 décembre 2020, 22:20:57 (UTC+0100)

================================================================================
Swap useage: prerun: 0, running: 0

================================================================================
CPU core temperatures:
Core 0: Tmin: 35.0°C, Tmax: 41.0°C, (high = +105.0°C, crit = +105.0°C)
Core 2: Tmin: 30.0°C, Tmax: 39.0°C, (high = +105.0°C, crit = +105.0°C)
================================================================================
last latency data is as follows:.
 7205 secs   base min:  -5.400 uS max:   5.500 uS sdev:   0.300 uS
 7205 secs  servo min:  -4.800 uS max:   4.800 uS sdev:   0.300 uS

I haven't test yet with gmoccapy but I will probably start 25000us20000us BASE_PERIOD.
Last edit: 06 Dec 2020 21:42 by macsddau@linuxcnc.
The following user(s) said Thank You: seuchato

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

  • macsddau@linuxcnc
  • macsddau@linuxcnc's Avatar
  • Offline
  • Premium Member
  • Premium Member
More
06 Dec 2020 21:44 #191265 by macsddau@linuxcnc
How Latency test are reliable ?
The following user(s) said Thank You: seuchato

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

  • tommylight
  • tommylight's Avatar Topic Author
  • Online
  • Moderator
  • Moderator
More
06 Dec 2020 21:46 #191266 by tommylight
Dang that is low ! :)
You can use even bad latency PC's for software stepping, but it will limit the speed of the pulse train a lot.
I use some Dell laptops that have very bad latency of over 230000, so i set the base period to 300000 and they work properly since i use them for the Granite/marble/glass engraving machines that are direct driven and never require over 2m/m.
www.forum.linuxcnc.org/plasma-laser/3761...cated-build?start=20
forum.linuxcnc.org/show-your-stuff/31171...have-built-over-time
forum.linuxcnc.org/show-your-stuff/37784...-or-any-hard-surface
The following user(s) said Thank You: seuchato

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

  • macsddau@linuxcnc
  • macsddau@linuxcnc's Avatar
  • Offline
  • Premium Member
  • Premium Member
More
06 Dec 2020 22:12 #191272 by macsddau@linuxcnc

Dang that is low ! :)

Yes it is very low but it doesn't the reality. While I write this message, I have launch a simple Latency Test with 5 glxgears and watching Youtube video. For the moment, the max jitter is 11576us. Very far from lcnc-hw test result.
To work my router will need at least 8kHz frequency (full step driving). Higher frequency is only for µstepping and resonating issue.

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

More
09 Dec 2020 08:27 #191481 by clifo
LinuxCNC pc tests, version 20200930, started 09.12.2020 06:59:30
********************************************************************************
General info:
,  
Bios version , dated Chipset: Harddisk is non-rotational, ie. SSD
The amount of swap currently used is 0
================================================================================
CPU related data:
model name	: Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
cpu cores	: 4
stepping	: 9
cache size	: 1024 KB
================================================================================
RAM related data:
================================================================================
GPU related data:
product: Intel Corporation
product: Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]
configuration: driver=i915 latency=0
configuration: driver=radeon latency=0
================================================================================
Parallel port related data:
number of parallel ports is 1
parport0: PC-style at 0x378, irq 5 [PCSPP,TRISTATE]
================================================================================
Os and desktop related data:
PRETTY_NAME="Debian GNU/Linux 10 (buster)"

Should the info below not match with your machine,
kindly post the output of pstree here, including a brief
desciption of your desktop environment, window manager and
display manager. Tia
https://forum.linuxcnc.org/18-computer/39370-script-for-automated-testing-of-computer-latency

Desktop environment : xfce4
Windowmanager       : Xfwm4
Displaymanager      : lightdm
================================================================================
Kernel related data:
Kernel 4.19.152-rtai-amd64
GRUB_CMDLINE_LINUX_DEFAULT="quiet isolcpus=2,3 idle=poll acpi_irq_nobalance noirqbalance lapic intel_idle.maxcstate=0 processor.max_cstate=0 ipv6.disable=1 pci=routeirq "
Cpu idle driver: ================================================================================
Kernel modules data:
Check if pcspkr is loaded: No, which is good!
Check if snd modules are loaded: No, which is good!
================================================================================
Keyboard & Mouse related data:
Number of mice: 1
Mouse 0 : ImExPS/2 Generic Explorer Mouse
Mice  attached to USB:
Keyboards attached to USB:
================================================================================
LinuxCNC related data:
LinuxCNC version is: 
================================================================================
Preparing for latency test:
Started glxgears No. 1, 2, 3, 4, 5
..........
Started firefox with 'https://vimeo.com/150574260', WID 44040195
================================================================================

Latency testing loop started St dec  9 06:59:47 CET 2020, 
Command for latency test is:
su clifo -c  "latency-histogram --bbinsize 1000 --base 25000 --sbinsize 1000 --nox 2>&1 | tee -a 1607493569.lat &"
should end after St dec  9 08:59:47 CET 2020

================================================================================
Swap useage: prerun: 0, running: 0

================================================================================
CPU core temperatures:
Core 0: Tmin: 36.0°C, Tmax: 42.0°C, (high = +105.0°C, crit = +105.0°C)
Core 1: Tmin: 36.0°C, Tmax: 42.0°C, (high = +105.0°C, crit = +105.0°C)
Core 2: Tmin: 33.0°C, Tmax: 39.0°C, (high = +105.0°C, crit = +105.0°C)
Core 3: Tmin: 33.0°C, Tmax: 39.0°C, (high = +105.0°C, crit = +105.0°C)
================================================================================
last latency data is as follows:.
 7204 secs   base min:  -4.700 uS max:   4.600 uS sdev:   0.100 uS
 7204 secs  servo min:  -3.700 uS max:   3.800 uS sdev:   0.100 uS
The following user(s) said Thank You: seuchato

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

More
24 Dec 2020 19:00 #193142 by faeluke
LinuxCNC pc tests, version 20200930, started 24.12.2020 10:50:50
********************************************************************************
General info:
Hewlett-Packard, HP Compaq Pro 6300 SFF
Bios version K01 v02.90, dated 07/16/2013
Chipset: Intel Corporation 7 Series/C216
Harddisk is non-rotational, ie. SSD
The amount of swap currently used is 0
================================================================================
CPU related data:
model name : Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
cpu cores : 1
stepping : 9
cache size : 8192 KB
================================================================================
RAM related data:
Maximum Capacity: 32 GB
Size: 4096 MB
Size: 4096 MB
Size: 4096 MB
Size: 4096 MB
================================================================================
GPU related data:
product: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
configuration: driver=i915 latency=0
================================================================================
Parallel port related data:
number of parallel ports is 0
================================================================================
Os and desktop related data:
PRETTY_NAME="Linux Mint 20"

Should the info below not match with your machine,
kindly post the output of pstree here, including a brief
desciption of your desktop environment, window manager and
display manager. Tia
forum.linuxcnc.org/18-computer/39370-scr...-of-computer-latency

Desktop environment : gnome
Windowmanager : Metacity (Marco)
Displaymanager : lightdm
================================================================================
Kernel related data:
Kernel 4.9.0-13-rt-amd64
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Cpu idle driver: intel_idle
================================================================================
Kernel modules data:
Check if pcspkr is loaded: No, which is good!
Check if snd modules are loaded: Yes, may cause bigger latency.
can probably be disabled in bios, alternatively, you can run
"./block-snd-modules"
which has just now been created for your convenience.
================================================================================
Keyboard & Mouse related data:
Number of mice: 1
Mouse 0 : USB OPTICAL MOUSE
Mice attached to USB:
Keyboards attached to USB:
================================================================================
LinuxCNC related data:
LinuxCNC version is: 2.8.1.13.ga22256354
================================================================================
Preparing for latency test:
Started glxgears No. 1, 2, 3, 4, 5
..........
Started firefox with 'vimeo.com/150574260', WID 69206019
================================================================================
Command for latency test is:
su luke -c "latency-histogram --nobase --base 25000 --sbinsize 1000 --nox 2>&1 | tee -a HP6300-2020-12-24.lat &"

Latency testing loop started Thu 24 Dec 2020 10:51:05 AM EST,
should end after Thu 24 Dec 2020 12:51:05 PM EST

================================================================================
Swap useage: prerun: 0, running: 0

================================================================================
CPU core temperatures:
Core 0: Tmin: 35.0°C, Tmax: 42.0°C, (high = +85.0°C, crit = +105.0°C)
================================================================================
last latency data is as follows:.
7200 secs servo min: -37.300 uS max: 24.500 uS sdev: 2.200 uS
7201 secs servo min: -37.300 uS max: 24.500 uS sdev: 2.200 uS

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

More
25 Dec 2020 13:26 #193176 by seuchato

...
================================================================================
last latency data is as follows:.
7200 secs servo min: -37.300 uS max: 24.500 uS sdev: 2.200 uS
7201 secs servo min: -37.300 uS max: 24.500 uS sdev: 2.200 uS


I >think< the 6300 is very similar to the 8300 I tested a couple of months ago. while theser results are good, you might get even better results. Thus, for an inspirations, you could try the cmdline options I did here . First, I'd look into the bios. Kindly aloso state, what options you altered.
greez
chris

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

More
25 Dec 2020 16:19 - 25 Dec 2020 21:11 #193182 by faeluke

I >think< the 6300 is very similar to the 8300 I tested a couple of months ago.

Yes, I read through the posts on machines and was about to pull the trigger on an 8300 when Amazon informed me that the machine would come after Christmas. The HP6300 came up in the same search results. I opted for the I7, although I am not sure if it will make difference with everything turned off in the BIOS.

while these results are good, you might get even better results.

I am a noob, so getting this all up and running with Mint on a new PC and posting the results was for me, a Christmas miracle.
I had set multiprocessor -> disabled in the BIOS, Is this the same as running with Isolcpus?

On your machine, BIOS 2.99 appears to have the best numbers. I will update to 2.99 and try that out.

I will also take at modifying the Grub command line to see if I can improve the results further.

Kindly also state, what options you altered.

Are you asking me to post the BIOS settings up to this point or to post the additional changes once I complete additional testing?
Last edit: 25 Dec 2020 21:11 by faeluke.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.110 seconds
Powered by Kunena Forum