Skip to content

KVM: selftests: Calculate memory latency stats

Colton Lewis kvm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 14 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Changes in v3 from the cover letter

* Move timing functions to lib/$ARCH/processor.c
* Add memory barriers to prevent reordering measured memory accesses
* Remove floating point from conversion functions
* Change command line flag to -l for latency and provide help summary
* Do not show latency measurements unless -l is given with argument
* Change output formatting to seconds for consistency with other output

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: selftests: Provide generic way to read system countertools/testing/selftests/kvm/include/aarch64/processor.h tools/testing/selftests/kvm/include/x86_64/processor.h tools/testing/selftests/kvm/lib/aarch64/processor.c +2 more+33 -80 replies
2/2KVM: selftests: Print summary stats of memory latency distributiontools/testing/selftests/kvm/access_tracking_perf_test.c tools/testing/selftests/kvm/demand_paging_test.c tools/testing/selftests/kvm/dirty_log_perf_test.c +5 more+110 -162 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] KVM: selftests: Calculate memory latency stats

Sample the latency of memory accesses in dirty_log_perf_test and report summary stats to give a picture of the latency distribution. Specifically, focus on the right tail with the 50th, 90th, and 99th percentile reported in ns.

v3:
* Move timing functions to lib/$ARCH/processor.c
* Add memory barriers to prevent reordering measured memory accesses
* Remove floating point from conversion functions
* Change command line flag to -l for latency and provide help summary
* Do not show latency measurements unless -l is given with argument
* Change output formatting to seconds for consistency with other output

v2: https://lore.kernel.org/kvm/[email protected]/

v1: https://lore.kernel.org/kvm/[email protected]/

Colton Lewis (2):
KVM: selftests: Provide generic way to read system counter
KVM: selftests: Print summary stats of memory latency distribution

 .../selftests/kvm/access_tracking_perf_test.c |  3 +-
 .../selftests/kvm/demand_paging_test.c        |  2 +-
 .../selftests/kvm/dirty_log_perf_test.c       | 21 +++++-
 .../selftests/kvm/include/aarch64/processor.h | 13 ++++
 .../testing/selftests/kvm/include/memstress.h | 10 ++-
 .../selftests/kvm/include/x86_64/processor.h  | 13 ++++
 .../selftests/kvm/lib/aarch64/processor.c     | 12 ++++
 tools/testing/selftests/kvm/lib/memstress.c   | 68 ++++++++++++++++---
 .../selftests/kvm/lib/x86_64/processor.c      | 13 ++++
 .../kvm/memslot_modification_stress_test.c    |  2 +-
 .../kvm/system_counter_offset_test.c          | 10 +--
 11 files changed, 143 insertions(+), 24 deletions(-)

--
2.40.0.348.gf938b09366-goog