Whamcloud - gitweb
LU-11085 tests: Add performance test for ldlm_extent code 04/54204/17
authorMr NeilBrown <neilb@suse.de>
Tue, 20 Feb 2024 00:57:29 +0000 (11:57 +1100)
committerOleg Drokin <green@whamcloud.com>
Sat, 23 Mar 2024 05:55:57 +0000 (05:55 +0000)
commit887889b333aa3499277959046153d347f93bac4a
tree25b4c204b50817b854f1f49fb8b0493328450e44
parent1730d8093fb36e7957414d314755ae5208da1011
LU-11085 tests: Add performance test for ldlm_extent code

Add a new test module "ldlm_extent" which exercises the extent code by
creating multiple extent locks, and discarding them.
Each run is timed and a number of runs are combined to provide a
mean and standard deviation.

Two different tests are performed, with a ramp of locks to keep to
allow seeing any scalability issues:
1/ create lots of non-overlapping extents in
   random order, keeping up to 8000 at a time.
2/ create both random tiny extents and whole-file
   extents, alternating.  Keep up to 1,000,000.
   These are PR and so don't conflict.

Each test runs for at most 5 minutes
(30 loops of 10 seconds each = 300 seconds).

Test-Parameters: trivial env=SLOW=yes env=ONLY=842 testlist=sanity
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I552da3c64fb467cbefb7d25eee709dd038bd454f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54204
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre.spec.in
lustre/kunit/Makefile.in
lustre/kunit/autoMakefile.am
lustre/kunit/ldlm_extent.c [new file with mode: 0644]
lustre/ldlm/ldlm_internal.h
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_resource.c
lustre/tests/sanity.sh
rpm/kmp-lustre-tests.files