Spdk/test/scheduler
Tomasz Zawadzki 84fa73eb5c test/scheduler: wait for scheduler after thread creation in busy()
All other tests wait for scheduling to occur before verifying
the results. Even for 100% busy threads, they are first
round robined between cores.

In some edge cases, if threads are created right at the
end of the scheduling period - they will be 100% busy.
Yet due to low busy_tsc it will be deemed that two of such threads
can be placed on single core. To prevent that a few
full scheduling periods have to be observed.

Thus added sleep for 10 scheduling periods before verifying
the results, similar to other test cases in this file.

While here increased the sleep time between samples to
match the scheduling period. With 1 sec default scheduling period,
no change would occur between two 0.5 sec samples.

Fixes #2140

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I5abf3bc04c6f65f4faae2bcd3e6828be72f97311
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9387
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
2022-06-20 09:56:09 +00:00
..
cgroups.sh test/scheduler: Don't fail if cgroups don't exist in move_cgroup_procs() 2022-03-09 08:02:55 +00:00
common.sh test/scheduler: Use separete cgroup for the tests 2021-12-23 08:33:15 +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