Spdk/test
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
..
accel accel: Do not refer to the "framework" as "engine" 2022-09-06 07:16:17 +00:00
app test/llvm_vfio_fuzz: fuzz VFIO_USER_REGION_WRITE/READ 2022-09-23 15:16:01 +00:00
bdev lib/nbd:export bdev flush and trim ability 2022-09-16 13:32:13 +00:00
blobfs check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
blobstore autotest_common.sh: change rpc_py to rpc_cmd 2022-09-01 11:15:03 +00:00
common test/llvm_vfio_fuzz: initial commit for vfio-user fuzzer 2022-09-23 15:16:01 +00:00
compress test/compress: change environment variable to "NET_TYPE=virt" in 2022-09-21 07:49:41 +00:00
cpp_headers Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
dd spdk_dd: Add data and hole management 2022-09-21 19:54:37 +00:00
dma check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
dpdk_memory_utility autotest_common.sh: change rpc_py to rpc_cmd 2022-09-01 11:15:03 +00:00
env env_dpdk: Automatically map PCI BARs into VFIO 2022-09-26 11:48:39 +00:00
event check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
external_code configure/misc: make ISA-L a hard dependency 2022-09-20 10:18:54 +00:00
ftl ftl: Remove unnecessary bdev_nvme_detach_controller from test 2022-09-20 19:24:26 +00:00
fuzz configure/misc: make ISA-L a hard dependency 2022-09-20 10:18:54 +00:00
interrupt scripts: move python modules to python directory 2022-04-05 14:40:47 +00:00
ioat build: Example applications build to build/example 2020-06-15 15:27:16 +00:00
iscsi_tgt test: restore rpc_py to point to rpc.py instead of rpc_cmd 2022-09-06 18:01:42 +00:00
json_config accel: Refer to plugins as 'modules' instead of 'engines' 2022-09-21 08:17:48 +00:00
lvol bdev module: remove support for deprecated RPC names 2022-05-23 16:13:00 +00:00
make event: make opts structures packed 2022-08-18 10:08:40 +00:00
nvme hotplug: use RPC instead of reading hotplug logs 2022-09-23 12:54:44 +00:00
nvmf test/nvmf: add vfio-user fuzzing target 2022-09-23 15:16:01 +00:00
ocf autotest_common.sh: change rpc_py to rpc_cmd 2022-09-01 11:15:03 +00:00
openstack run_openstack_tests.sh: move rpc_py declaration below source commands 2022-09-08 07:20:17 +00:00
pmem bdev module: remove support for deprecated RPC names 2022-05-23 16:13:00 +00:00
rpc scripts: move python modules to python directory 2022-04-05 14:40:47 +00:00
rpc_client check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
rpc_plugins autotest: Use rpc_cmd() for rpc plugin-based tests 2021-04-02 08:22:42 +00:00
scheduler test/scheduler: Fallback to checking user mode load if idle check fails 2022-09-26 15:36:07 +00:00
setup test/setup: Remove the hp_status() test 2022-08-09 14:38:30 +00:00
sma test/sma: add test for multiple bus support for NVMe/vfio_user plugin 2022-09-23 11:33:07 +00:00
spdkcli test/spdkcli: reduce amount of HUGEMEM memory requested 2022-09-19 13:11:06 +00:00
thread Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
unit nvmf/tcp: Fixed error handle in 'nvmf_tcp_req_parse_sgl' 2022-09-23 18:26:36 +00:00
vfio_user test/vfio-user: skip NVMeoF target coremask for VMs 2022-09-19 12:47:37 +00:00
vhost perf/vhost: Add NUMA-aware cgroup setup for the VMs 2022-09-15 20:15:57 +00:00
vmd vmd: rename enable_vmd RPC to vmd_enable 2022-09-01 08:48:32 +00:00
Makefile Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
spdk_cunit.h Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00