Script for automated testing of computer latency.

More
6 years 4 weeks ago #184459 by seuchato
Get well soon! Thanks.

Please Log in to join the conversation.

More
6 years 4 weeks ago #184590 by tommylight

Please Log in to join the conversation.

More
6 years 2 weeks ago #185742 by seuchato
BeagleBrainz pointed out , that for a latency test "one should stress the computer". This is also mentioned here . BeagleBrainz stated also, that this means io load, like disc access, like opying large files around etc.

So far, my script does none of this. It collects data of the hardware used and invokes a latency test with or without a base thread, depending users wish and/or if a parallel port is detected.

While I did exactly that (ripping a dvd to hd) for wheezy based install, I did not consider this being required to get "realistic" latency data when writing the script. It was my believe, that LnuxCNC, once loaded from disc, does by far most of its duties in Ram. It would read the gcode file yes, but these files almost never go into the GB range. The largest gcode file I have is ~22MB.

Prior to adding heavy disc io, I would like to understand the reasoning, as why this is really needed to get reliable, repeatable latency data for the - say - database in forum.linuxcnc.org/18-computer/39371-res...se-with-linuxcncthis thread.

So, kindly give me a hand, let me know why it is needed and - most important - what is needed.

Greez
chris

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
6 years 2 weeks ago #185747 by BeagleBrainz
Replied by BeagleBrainz on topic Script for automated testing of computer latency.
Quoting from the docs. Emphasis by myself.

"The idea is to put the PC through its paces while the latency test checks to see what the worst case numbers are."

To me that would mean not to simulate a Linuxcnc session but to really put a heavy load on the computer. Similar to destructive testing of a product.

I guess you could create a file, write a certain amount of bytes from /dev/random, move the file around, delete the file, create another larger file, do the same, create a number of smaller files using the same method, move them around. Open a few random windows, move them around, close them.

Please Log in to join the conversation.

More
6 years 2 weeks ago #185764 by tommylight
DD is very useful for that as it can be used to write zeros to HDD/SSD or read from them and write to nothing:
www.cyberciti.biz/faq/howto-linux-unix-t...nce-with-dd-command/
That is just one of many examples.

Please Log in to join the conversation.

More
6 years 2 weeks ago #186227 by seuchato
@beaglebrainz: thanks for the hint. I will add io load.
@tommylight: thanks for the link, inspiring. Tomorrow I got off for the weekend. Apart from stripping weight off our FP2NC to hopefully get ot down to our workshop, I have nothing to do. Soooo, I'll probably be working on the script again.

Greez
chris

Please Log in to join the conversation.

More
6 years 2 weeks ago #186254 by seuchato
help needed:

Can someone that has no separate /home partition kindly post the result of:
Code:
mount | grep -Ei "on /home"

Tia
chris

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
6 years 2 weeks ago #186256 by BeagleBrainz
Replied by BeagleBrainz on topic Script for automated testing of computer latency.
Code:
rmurphy@thinkPad-t530:~$ mount | grep -Ei "/home" rmurphy@thinkPad-t530:~$

Please Log in to join the conversation.

More
6 years 2 weeks ago #186258 by seuchato
BB (or however else :) )
can you kindly also post the result of this:

Code:
lsblk -b -o MOUNTPOINT,FSAVAIL -x FSAVAIL | grep "/" | awk '!seen[$0]++' | sort -r -n -k2 | sed -n 1p

Tia
chris

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
6 years 2 weeks ago #186260 by BeagleBrainz
Replied by BeagleBrainz on topic Script for automated testing of computer latency.
Code:
rmurphy@thinkPad-t530:~$ lsblk --version lsblk from util-linux 2.31.1 rmurphy@thinkPad-t530:~$
Code:
rmurphy@thinkPad-t530:~$ lsblk -b -o MOUNTPOINT,FSAVAIL -x FSAVAIL | grep "/" | awk '!seen[$0]++' | sort -r -n -k2 | sed -n 1p lsblk: unknown column: FSAVAIL Try 'lsblk --help' for more information. rmurphy@thinkPad-t530:~$
Code:
rmurphy@thinkPad-t530:~$ lsblk -b -o MOUNTPOINT,FSTYPE -x FSTYPE | grep "/" | awk '!seen[$0]++' | sort -r -n -k2 | sed -n 1p / ext4 rmurphy@thinkPad-t530:~$

Please Log in to join the conversation.

Time to create page: 0.189 seconds
Powered by Kunena Forum