All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Calculate memory access latency stats
@ 2023-03-16 22:27 Colton Lewis
  2023-03-16 22:27 ` [PATCH v2 1/2] KVM: selftests: Provide generic way to read system counter Colton Lewis
  2023-03-16 22:27 ` [PATCH v2 2/2] KVM: selftests: Print summary stats of memory latency distribution Colton Lewis
  0 siblings, 2 replies; 18+ messages in thread
From: Colton Lewis @ 2023-03-16 22:27 UTC (permalink / raw)
  To: Paolo Bonzini, Shuah Khan, Colton Lewis, Sean Christopherson,
	David Matlack, Vipin Sharma, Andrew Jones, Marc Zyngier,
	Ben Gardon, Ricardo Koller, Oliver Upton
  Cc: kvm

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.

v2:
* rebase to v6.3-rc2
* move counter measurement to common code helpers
* fix page allocation math for only the exact number needed
* add command line argument to control number of samples

v1: https://lore.kernel.org/kvm/20221115173258.2530923-1-coltonlewis@google.com/

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       | 10 ++-
 .../testing/selftests/kvm/include/kvm_util.h  | 15 ++++
 .../testing/selftests/kvm/include/memstress.h | 10 ++-
 tools/testing/selftests/kvm/lib/kvm_util.c    | 30 ++++++++
 tools/testing/selftests/kvm/lib/memstress.c   | 68 ++++++++++++++++---
 .../kvm/memslot_modification_stress_test.c    |  2 +-
 .../kvm/system_counter_offset_test.c          | 10 +--
 9 files changed, 128 insertions(+), 22 deletions(-)

--
2.40.0.rc1.284.g88254d51c5-goog

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [PATCH v2 1/2] KVM: selftests: Provide generic way to read system counter
@ 2023-03-19  5:42 kernel test robot
  0 siblings, 0 replies; 18+ messages in thread
From: kernel test robot @ 2023-03-19  5:42 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20230316222752.1911001-2-coltonlewis@google.com>
References: <20230316222752.1911001-2-coltonlewis@google.com>
TO: Colton Lewis <coltonlewis@google.com>
TO: Paolo Bonzini <pbonzini@redhat.com>
TO: Shuah Khan <skhan@linuxfoundation.org>
TO: Colton Lewis <coltonlewis@google.com>
TO: Sean Christopherson <seanjc@google.com>
TO: David Matlack <dmatlack@google.com>
TO: Vipin Sharma <vipinsh@google.com>
TO: Andrew Jones <andrew.jones@linux.dev>
TO: Marc Zyngier <maz@kernel.org>
TO: Ben Gardon <bgardon@google.com>
TO: Ricardo Koller <ricarkol@google.com>
TO: Oliver Upton <oliver.upton@linux.dev>
CC: kvm@vger.kernel.org

Hi Colton,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on shuah-kselftest/next]
[also build test WARNING on shuah-kselftest/fixes mst-vhost/linux-next linus/master v6.3-rc2 next-20230317]
[cannot apply to kvm/queue kvm/linux-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Colton-Lewis/KVM-selftests-Provide-generic-way-to-read-system-counter/20230317-063111
base:   https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next
patch link:    https://lore.kernel.org/r/20230316222752.1911001-2-coltonlewis%40google.com
patch subject: [PATCH v2 1/2] KVM: selftests: Provide generic way to read system counter
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/r/202303191326.uhmOihJy-lkp@intel.com/

includecheck warnings: (new ones prefixed by >>)
>> tools/testing/selftests/kvm/lib/kvm_util.c: processor.h is included more than once.

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-03-28 21:52 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-16 22:27 [PATCH v2 0/2] Calculate memory access latency stats Colton Lewis
2023-03-16 22:27 ` [PATCH v2 1/2] KVM: selftests: Provide generic way to read system counter Colton Lewis
2023-03-17  9:26   ` Andrew Jones
2023-03-21 19:08     ` Colton Lewis
2023-03-17 17:04   ` Vipin Sharma
2023-03-21 19:09     ` Colton Lewis
2023-03-17 17:09   ` Marc Zyngier
2023-03-21 19:10     ` Colton Lewis
2023-03-28 10:09       ` Marc Zyngier
2023-03-28 15:38         ` Sean Christopherson
2023-03-28 15:50           ` Marc Zyngier
2023-03-28 21:51         ` Colton Lewis
2023-03-16 22:27 ` [PATCH v2 2/2] KVM: selftests: Print summary stats of memory latency distribution Colton Lewis
2023-03-17 18:16   ` Vipin Sharma
2023-03-21 19:10     ` Colton Lewis
2023-03-21 21:21       ` Sean Christopherson
2023-03-24 16:26         ` Colton Lewis
  -- strict thread matches above, loose matches on Subject: below --
2023-03-19  5:42 [PATCH v2 1/2] KVM: selftests: Provide generic way to read system counter kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.