Spdk/test/scheduler
Michal Berger 9b8939660a test/scheduler: Fallback to checking user mode load if idle check fails
During tests, the main portion of the app's time is spent in user
mode when polling is in effect. Currently, the idleness of given cpu
is determined in comparision to all the possible states the cpu can
be in. This makes it easier for third party processes to impact the
idleness of the cpu (as it may be lowered via different kinds of
loads).

For instance, if target cpu suddenly sees spike in a system
load (even up to 100%) it should not be relevant for the test where
it's known that the app's polling utilized mainly user mode prior
switching the scheduler.

With that in mind, if the general idle check fails, lookup the
raw samples matching the user mode and if the load is relatively
low (<= 15%) consider this as a pass.

Signed-off-by: Michal Berger <michallinuxstuff@gmail.com>
Change-Id: I4ab260d8bcf20a69f2f0be10f0fd7be577682be3
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12909
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2022-09-26 15:36:07 +00:00
..
cgroups.sh test/cgroups: Add helper functions for more granular setup 2022-09-15 20:15:57 +00:00
common.sh test/scheduler: Fallback to checking user mode load if idle check fails 2022-09-26 15:36:07 +00:00
governor.sh spelling: test 2021-12-03 08:13:22 +00:00
idle.sh spelling: test 2021-12-03 08:13:22 +00:00
interrupt.sh spelling: test 2021-12-03 08:13:22 +00:00
isolate_cores.sh test/scheduler: Ignore failures while removing dummy cgroups 2022-01-05 09:23:57 +00:00
load_balancing.sh test/scheduler: wait for scheduler after thread creation in busy() 2022-06-20 09:56:09 +00:00
rdmsr.pl test/scheduler: Add simple tool for utilizing msr driver 2021-01-22 18:31:25 +00:00
scheduler.sh scheduler_dynamic: fix busy tsc accounting 2021-09-28 07:29:03 +00:00