[igt-dev] [PATCH i-g-t v2 0/3] Fix issues on benchmarks

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Tue May 31 06:52:08 UTC 2022


From: Mauro Carvalho Chehab <mchehab at kernel.org>

There are two benchmarks that aren't work properly:

- gem_blt is not estimating a loop count that would be close
  to 0.1 ms. The current calculus provide a value that would
  take ~23 days to complete (tested on ADL-P):

	$ sudo timeout 100 ./build/benchmarks/gem_blt || echo "Timeout!"
	Timeout!

- gem_syslatency crashes with SIGSEGV, if the environment is not
  ready to use realtime priority. The root cause is that setting
  realtime now requires some CGroup changes nowadays:

	$ sudo ./build/benchmarks/gem_syslatency
	Received signal SIGSEGV.
	Stack trace:
	 #0 [fatal_sig_handler+0x163]
	 #1 [__sigaction+0x50]
	 #2 [__pthread_clockjoin_ex+0x22]
	 #3 [main+0x346]
	 #4 [__libc_start_call_main+0x80]
	 #5 [__libc_start_main+0x89]
	 #6 [_start+0x25]
	Segmentation fault

This series addresses such issues.

Mauro Carvalho Chehab (3):
  benchmarks/gem_blt: fix baseline estimation
  benchmarks/gem_syslatency: don't die with SIGSEGV
  benchmarks/gem_syslatency: make realtime mode optional

 benchmarks/gem_blt.c        | 18 +++++-------------
 benchmarks/gem_syslatency.c | 28 +++++++++++++++++++++-------
 2 files changed, 26 insertions(+), 20 deletions(-)

-- 
2.36.1



More information about the igt-dev mailing list