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

More
5 years 10 months ago - 5 years 10 months ago #193227 by seuchato

macsddau@linuxcnc wrote: 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):
Code:
================================================================================ 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: 5 years 10 months ago by seuchato. Reason: typos

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

More
5 years 10 months ago - 5 years 10 months ago #193389 by Project_Hopeless
Dell OptiPlex 9010 i5-3570 CPU 3.40GHz

Linux Buster:
Code:
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:
Code:
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: 5 years 10 months ago by Project_Hopeless.
The following user(s) said Thank You: seuchato

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

More
5 years 10 months ago #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
5 years 10 months ago #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
5 years 10 months ago #193437 by seuchato

clifo wrote:

Code:
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
5 years 10 months ago #193439 by seuchato

faeluke wrote: 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.
Code:
Does the script report the actual line run?
Absolutely yes. The command logged IS the very command executed.
Code:
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.

Time to create page: 0.083 seconds
Powered by Kunena Forum