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

More
26 Dec 2020 12:26 #193221 by seuchato

...I opted for the I7, although I am not sure if it will make difference with everything turned off in the BIOS.

i7s usually have more cache (i7 3770: 8MB, i5 3570: 6 MB), which should/could result in better latency. So, it was a wise decision to take an i7.

... so getting this all up and running with Mint on a new PC and posting the results was for me, a Christmas miracle.

So: congrats! And if you ever were, you are certainly no noob anymore :-)

...I had set multiprocessor -> disabled in the BIOS, Is this the same as running with Isolcpus?

In Bios, the most important part is to disable evrything that smells like power saving and hyperthreading.

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.

while playing with bios version, note: hp says you cannot roll back to an earlier version. Usually because ther seemingly are "security" reasons. Isolcpus does disable cpus, but lets you chose which ones. If you read more, you will see posts where someone got best results isolating the lower cpus and others with isolation the upper cpus. Therefore, I prefore leaving multi core on and use isolcpus. There are machines out there, where isolcpus is of zero effect.

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?

I tried to get a clearcut overview here . That's for a dell optoplex 980 though, but I hope, it is inspiring enough to at least serve as a hint for other pcs.

Greez
chris
The following user(s) said Thank You: faeluke

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

More
26 Dec 2020 12:28 #193222 by seuchato

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


Tommy
I will add a hint stating exactly that when a basethread is being used.
greez
chris
The following user(s) said Thank You: tommylight

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

More
26 Dec 2020 13:05 - 26 Dec 2020 13:11 #193227 by seuchato

How Latency test are reliable ?


As you can see - and that was the very purpose of leaving/protocolling the very call for the latency test in the script's output - the very command is there in every output (quote taken from your post):
================================================================================
Command for latency test is:
su cnc -c  "latency-histogram --bbinsize 1000 --base 100000 --sbinsize 1000 --nox 2>&1 | tee -a 1607213323.lat &"

I myself do have, say a certain doubt too. If you run the test without a base thread, then the servo test results seem to return about double the values as with a base thread. I cannot see areason for that, raised my doubts, but so far, noone jumped in with an explanation.

So, maccsddau, I am with you raising at least an eye brow.

The script does nothing but logging hardware, prepare automatically glxgears, webbrowser, the commandline for latency-test and log the temperature, latency data and later more. I have written lcnc-hw to provide say a "standardized" way to occupy the pc while running the latency test and collect info of the pc. The main goal still is to provide repeatable and comparable results. I did not and will not mess with the core programme: "latency-test". I might later look into the code of latency-test to see or understand what causes double times for servo thread when running without base thread compared to with it.

greez
chris
Last edit: 26 Dec 2020 13:11 by seuchato. Reason: typos

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

More
29 Dec 2020 00:24 - 29 Dec 2020 00:33 #193389 by Project_Hopeless
Dell OptiPlex 9010 i5-3570 CPU 3.40GHz

Linux Buster:
LinuxCNC pc tests, version 20200930, started 28.12.2020 16:43:54
********************************************************************************
General info:
Dell Inc.,  OptiPlex 9010
Bios version A13, dated 03/27/2013
Chipset: Intel Corporation 7 Series/C216 
Harddisk is rotational
The amount of swap currently used is 0
================================================================================
CPU related data:
model name	: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
cpu cores	: 4
stepping	: 9
cache size	: 6144 KB
================================================================================
RAM related data:
Maximum Capacity: 32 GB
Size: No Module Installed
Size: 2048 MB
Size: No Module Installed
Size: 2048 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="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-11-rt-amd64
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
Cpu idle driver: intel_idle
================================================================================
Kernel modules data:
Check if pcspkr is loaded: Yes, may cause bigger latency.
  can be eliminated using:
  sudo echo "install pcspkr /bin/true" >/etc/modprobe.d/pcspkr.conf
Check if snd modules are loaded: No, which is good!
================================================================================
Keyboard & Mouse related data:
Number of mice: 1
Mouse 0 : Logitech Optical USB Mouse
Mice  attached to USB:
Logitech, Inc. Optical Wheel Mouse
Keyboards attached to USB:
Dell Computer Corp. Keyboard
================================================================================
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 33554435
================================================================================
Command for latency test is:
su anto -c  "latency-histogram --nobase  --sbinsize 1000 --nox 2>&1 | tee -a 1609191832.lat &"

Latency testing loop started Mon 28 Dec 2020 04:44:09 PM EST, 
should end after Mon 28 Dec 2020 06:44:09 PM EST

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

================================================================================
CPU core temperatures:
Core 0: Tmin: 30.0°C, Tmax: 53.0°C, (high = +85.0°C, crit = +105.0°C)
Core 1: Tmin: 33.0°C, Tmax: 56.0°C, (high = +85.0°C, crit = +105.0°C)
Core 2: Tmin: 35.0°C, Tmax: 57.0°C, (high = +85.0°C, crit = +105.0°C)
Core 3: Tmin: 26.0°C, Tmax: 50.0°C, (high = +85.0°C, crit = +105.0°C)
================================================================================
last latency data is as follows:.
 7199 secs  servo min: -75.700 uS max:  74.300 uS sdev:   2.900 uS
 7199 secs  servo min: -75.700 uS max:  74.300 uS sdev:   2.900 uS


Linux Mint:
LinuxCNC pc tests, version 20200930, started 28.12.2020 13:48:40
********************************************************************************
General info:
Dell Inc.,  OptiPlex 9010
Bios version A13, dated 03/27/2013
Chipset: Intel Corporation 7 Series/C216 
Harddisk is rotational
The amount of swap currently used is 0
================================================================================
CPU related data:
model name	: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
cpu cores	: 4
stepping	: 9
cache size	: 6144 KB
================================================================================
RAM related data:
Maximum Capacity: 32 GB
Size: No Module Installed
Size: 2048 MB
Size: No Module Installed
Size: 2048 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 19.2"

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 : gnome
Windowmanager       : Metacity (Marco)
Displaymanager      : lightdm
================================================================================
Kernel related data:
Kernel 4.16.12-rt5-kona-rt
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: No, which is good!
================================================================================
Keyboard & Mouse related data:
Number of mice: 1
Mouse 0 : Logitech Optical USB Mouse
Mice  attached to USB:
Logitech, Inc. Optical Wheel Mouse
Keyboards attached to USB:
Dell Computer Corp. Keyboard
================================================================================
LinuxCNC related data:
LinuxCNC version is: 2.8.0~pre1
================================================================================
Preparing for latency test:
Started glxgears No. 1, 2, 3, 4, 5
..........
Started firefox with 'https://vimeo.com/150574260', WID 62914563
================================================================================
Command for latency test is:
su anto -c  "latency-histogram --nobase  --sbinsize 1000 --nox 2>&1 | tee -a 1609181318.lat &"

Latency testing loop started Mon Dec 28 13:48:55 EST 2020, 
should end after Mon Dec 28 15:48:55 EST 2020

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

================================================================================
CPU core temperatures:
Core 0: Tmin: 31.0°C, Tmax: 57.0°C, (high = +85.0°C, crit = +105.0°C)
Core 1: Tmin: 36.0°C, Tmax: 59.0°C, (high = +85.0°C, crit = +105.0°C)
Core 2: Tmin: 37.0°C, Tmax: 60.0°C, (high = +85.0°C, crit = +105.0°C)
Core 3: Tmin: 28.0°C, Tmax: 54.0°C, (high = +85.0°C, crit = +105.0°C)
================================================================================
last latency data is as follows:.
 7202 secs  servo min: -96.200 uS max: 108.000 uS sdev:   6.100 uS
 7203 secs  servo min: -96.200 uS max: 108.000 uS sdev:   6.100 uS

What is a good range? Even with Buster my numbers seem quite a bit higher relatively speaking than other posts here. I am using the onboard GPU, how much of an impact would that be?
Last edit: 29 Dec 2020 00:33 by Project_Hopeless.
The following user(s) said Thank You: seuchato

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

More
29 Dec 2020 00:59 #193391 by faeluke
Did you disable the extra cores in BIOS?

In my testing, I found that that was better than turning them with isolcpus= statement. I took extensive data over the weekend but did not have time to post.

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

More
29 Dec 2020 02:42 #193394 by faeluke
Additional Data for HP Compaq Pro 6300 SFF all data taken with Linux Mint V20

I am running servos, so I am not concerned about the PC... Data uploaded for information purposes.

su luke -c "latency-histogram --nobase --base 25000 --sbinsize 1000 --nox 2>&1 | tee -a 1609028912.lat &"

Does the script report the actual line run? Is there an issue with the --nobase switch appearing in the command line?

Common to All
================================================================================
General info:
Hewlett-Packard, HP Compaq Pro 6300 SFF
model name : Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Kernel 4.9.0-13-rt-amd64
================================================================================

Bios changed with Base Thread
Bios version K01 v02.99, dated 09/15/2015
================================================================================
CPU related data:
cpu cores : 1
================================================================================
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
================================================================================
Command for latency test is:
su luke -c "latency-histogram --nobase --base 25000 --sbinsize 1000 --nox 2>&1 | tee -a 1609093699.lat &"
================================================================================
last latency data is as follows:.
7200 secs servo min: -39.200 uS max: 42.000 uS sdev: 2.200 uS
7200 secs servo min: -39.200 uS max: 42.000 uS sdev: 2.200 uS

No Base Thread
********************************************************************************
Bios version K01 v02.90, dated 07/16/2013
su luke -c "latency-histogram --nobase --sbinsize 1000 --nox 2>&1 | tee -a 1609083174.lat &"
================================================================================
last latency data is as follows:.
7201 secs servo min: -19.600 uS max: 21.300 uS sdev: 2.100 uS
7202 secs servo min: -19.600 uS max: 21.300 uS sdev: 2.100 uS

With Base Thread 4 cores Isolcpus=2,3
********************************************************************************
Bios version K01 v02.90, dated 07/16/2013
cpu cores : 4
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash isolcpus=2,3"
================================================================================
Command for latency test is:
su luke -c "latency-histogram --nobase --base 25000 --sbinsize 1000 --nox 2>&1 | tee -a 1609038229.lat &"
================================================================================
last latency data is as follows:.
7203 secs servo min: -48.500 uS max: 45.100 uS sdev: 2.300 uS
7204 secs servo min: -48.500 uS max: 45.100 uS sdev: 2.300 uS

With Base Thread 4 cores Isolcpus=3
********************************************************************************
Bios version K01 v02.90, dated 07/16/2013
cpu cores : 4
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash isolcpus=3"
================================================================================
Command for latency test is:
su luke -c "latency-histogram --nobase --base 25000 --sbinsize 1000 --nox 2>&1 | tee -a 1609028912.lat &"
================================================================================
last latency data is as follows:.
7200 secs servo min: -41.100 uS max: 38.800 uS sdev: 1.900 uS
7201 secs servo min: -41.100 uS max: 38.800 uS sdev: 1.900 uS
The following user(s) said Thank You: seuchato

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

More
29 Dec 2020 16:43 #193437 by seuchato

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
...
================================================================================
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: 
================================================================================
LinuxCNC related data:
LinuxCNC version is: 
===============================================================================
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


clifo
very low values, especially in regard with the smal cache! This one should run very well for software stepping (par port). Can you shed a light on the mobo used and the ram size you have installed? I also wonder why ny script is not able to detect the rams. Could you run some commands for me (I'll post a question over in the scripts thread , once I can resume working on it {might be late January only I am afraid})?
Your "GRUB_CMDLINE_LINUX_DEFAULT" uses some parameters, that I did not consider so far. So you got me inspired, thanks a ton!

Tia
chris

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

More
29 Dec 2020 16:54 #193439 by seuchato

Additional Data for HP Compaq Pro 6300 SFF all data taken with Linux Mint V20

I am running servos, so I am not concerned about the PC... Data uploaded for information purposes.

su luke -c "latency-histogram --nobase --base 25000 --sbinsize 1000 --nox 2>&1 | tee -a 1609028912.lat &"

Does the script report the actual line run? Is there an issue with the --nobase switch appearing in the command line?

Common to All
================================================================================
General info:
Hewlett-Packard, HP Compaq Pro 6300 SFF
model name : Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Kernel 4.9.0-13-rt-amd64


Faeluke
My 8300 offers the option to disable the parport. Sinceyou're looking for servo performance only, I'suggest you disable it there, if possible.
Does the script report the actual line run?
Absolutely yes. The command logged IS the very command executed.
Is there an issue with the --nobase switch appearing in the command line?
Maybe you are putting the finger on the right spot. But then, I have logged runs, that let me conclude, it should be OK. I came to the conclusion, it could be "--nox". This is noted to be tested, which I cannot do right now. Patience till juanuary, as I plan to provide an option to run the x based diagramm instead of logging latancy to the lat file. I hope I can get a clear conclusion then.

greez
chris
The following user(s) said Thank You: faeluke

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

More
02 Jan 2021 02:19 - 02 Jan 2021 06:22 #193787 by MNJoe
I really have no idea how this looks or suggestions to improve it. Took me long enough just to get the file unzipped and figure out how to run it.
LinuxCNC pc tests, version 20200930, started 01.01.2021 17:34:59
********************************************************************************
General info:
Dell Inc.,  OptiPlex 9020
Bios version A05, dated 12/05/2013
Chipset: Intel Corporation 8 Series/C220 Series 
Harddisk is non-rotational, ie. SSD
The amount of swap currently used is 0
================================================================================
CPU related data:
model name	: Intel(R) Core(TM) i5-4670 CPU @ 3.40GHz
cpu cores	: 4
stepping	: 3
cache size	: 6144 KB
================================================================================
RAM related data:
Maximum Capacity: 32 GB
Size: No Module Installed
Size: 4096 MB
Size: No Module Installed
Size: 4096 MB
================================================================================
GPU related data:
product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
configuration: driver=i915 latency=0
================================================================================
Parallel port related data:
number of parallel ports is 0
================================================================================
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-11-rt-amd64
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
Cpu idle driver: intel_idle
================================================================================
Kernel modules data:
Check if pcspkr is loaded: Yes, may cause bigger latency.
  can be eliminated using:
  sudo echo "install pcspkr /bin/true" >/etc/modprobe.d/pcspkr.conf
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 : No brand Combo Free KVM Mouse
Mice  attached to USB:
Keyboards attached to USB:
================================================================================
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 46137347
================================================================================
Command for latency test is:
su MNJoe -c  "latency-histogram --nobase  --sbinsize 1000 --nox 2>&1 | tee -a 1609544065.lat &"

Latency testing loop started Fri 01 Jan 2021 05:35:12 PM CST, 
should end after Fri 01 Jan 2021 07:35:12 PM CST

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

================================================================================
CPU core temperatures:
Core 0: Tmin: 46.0°C, Tmax: 74.0°C, (high = +80.0°C, crit = +100.0°C)
Core 1: Tmin: 43.0°C, Tmax: 75.0°C, (high = +80.0°C, crit = +100.0°C)
Core 2: Tmin: 41.0°C, Tmax: 74.0°C, (high = +80.0°C, crit = +100.0°C)
Core 3: Tmin: 41.0°C, Tmax: 72.0°C, (high = +80.0°C, crit = +100.0°C)
================================================================================
last latency data is as follows:.
 7200 secs  servo min: -65.300 uS max:  65.600 uS sdev:   2.700 uS
 7201 secs  servo min: -65.300 uS max:  65.600 uS sdev:   2.700 uS

This is from the 2nd run with Sound disabled...

================================================================================
Command for latency test is:
su MNJoe -c  "latency-histogram --nobase  --sbinsize 1000 --nox 2>&1 | tee -a 1609554921.lat &"

Latency testing loop started Fri 01 Jan 2021 08:35:39 PM CST, 
should end after Fri 01 Jan 2021 10:35:39 PM CST

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

================================================================================
CPU core temperatures:
Core 0: Tmin: 41.0°C, Tmax: 74.0°C, (high = +80.0°C, crit = +100.0°C)
Core 1: Tmin: 39.0°C, Tmax: 74.0°C, (high = +80.0°C, crit = +100.0°C)
Core 2: Tmin: 38.0°C, Tmax: 73.0°C, (high = +80.0°C, crit = +100.0°C)
Core 3: Tmin: 38.0°C, Tmax: 74.0°C, (high = +80.0°C, crit = +100.0°C)
================================================================================
last latency data is as follows:.
 7203 secs  servo min: -38.200 uS max:  43.500 uS sdev:   2.200 uS
 7203 secs  servo min: -38.200 uS max:  43.500 uS sdev:   2.200 uS
Last edit: 02 Jan 2021 06:22 by MNJoe. Reason: Added More information
The following user(s) said Thank You: seuchato

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

More
02 Jan 2021 02:41 - 02 Jan 2021 09:32 #193790 by MNJoe
I have an AMD Radeon Graphics card that I removed because it seemed under the basic Latency tests my numbers were worse. Any thoughts on why that would be? I did run the script to shut off my sound so I'm rerunning the test now with the sound shutdown.

Below I've added the changes from the above entry with that Video Card/GPU installed -
From Dell Optiplex 9020...
~~~~~~~~~~~~~~~~~~~~~
================================================================================
GPU related data:
product: Oland [Radeon HD 8570 / R7 240/340 OEM]
configuration: driver=radeon latency=0
================================================================================
~~~~~~~~~~~~~~~~~~~~~
================================================================================
Command for latency test is:
su MNJoe -c  "latency-histogram --nobase  --sbinsize 1000 --nox 2>&1 | tee -a 1609567842.lat &"

Latency testing loop started Sat 02 Jan 2021 12:11:02 AM CST, 
should end after Sat 02 Jan 2021 02:11:02 AM CST

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

================================================================================
CPU core temperatures:
Core 0: Tmin: 41.0°C, Tmax: 74.0°C, (high = +80.0°C, crit = +100.0°C)
Core 1: Tmin: 39.0°C, Tmax: 75.0°C, (high = +80.0°C, crit = +100.0°C)
Core 2: Tmin: 37.0°C, Tmax: 73.0°C, (high = +80.0°C, crit = +100.0°C)
Core 3: Tmin: 38.0°C, Tmax: 73.0°C, (high = +80.0°C, crit = +100.0°C)
================================================================================
last latency data is as follows:.
 7204 secs  servo min: -45.200 uS max:  49.300 uS sdev:   1.900 uS
 7204 secs  servo min: -45.200 uS max:  49.300 uS sdev:   1.900 uS
Last edit: 02 Jan 2021 09:32 by MNJoe. Reason: Added Details
The following user(s) said Thank You: seuchato

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

Time to create page: 0.292 seconds
Powered by Kunena Forum