git: kernel - Add sequential TSC test, refactor concurrency test
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Jun 24 10:46:16 PDT 2021
commit cac128231c7864434c0360660adced89b17a34d3
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Jun 24 10:36:30 2021 -0700
kernel - Add sequential TSC test, refactor concurrency test
* Add a test that test the TSC, checking whether rdtsc() returns
monotonically increasing values when hopping between CPUs. We
test four times from cpus 0 to (ncpus-1), and from (ncpus-1) to 0.
* Revamp the TSC concurrency test. Make the test a bit more robust
to better adapt to HVMs.
* Report all results in nanoseconds. Example output from a
threadripper:
TSC cpu-delta test complete, 1472nS to 11281nS SUCCESS
TSC cpu-delta test complete, 1312nS to 3386nS SUCCESS
TSC cpu-delta test complete, 1312nS to 3526nS SUCCESS
TSC cpu-delta test complete, 1312nS to 3396nS SUCCESS
TSC cpu concurrency test complete, worst=320ns, avg=60ns SUCCESS
Summary of changes:
sys/platform/pc64/isa/clock.c | 105 +++++++++++++++++++++++++++++++++++++-----
1 file changed, 93 insertions(+), 12 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cac128231c7864434c0360660adced89b17a34d3
--
DragonFly BSD source repository
More information about the Commits
mailing list