numam-spdk/test/scheduler
Tomasz Zawadzki 127fc0d0c3 scheduler_dynamic: consider any core for the thread
Previously core load was only considered for main lcore.
Other cores were used based on cpumask only.

Once an active thread was placed on core it remained there
until idle. If _get_next_target_core() looped around,
the core might receive another active thread.

This patch makes the core load matter for placement of any thread.
As of this patch if no core can fit a thread it will remain there.
Later in the series least busy core will be used to balance
threads when every core is already busy.

Modified the functional test that depended on always selecting
consecutive core, even if 'current' one fit the bill.
Later in the series the round robin logic for core selection
is removed all together.

Fixed typo in test while here.

Note: _can_core_fit_thread() intentionally does not check
core->interrupt_mode and uses tsc. That flag is only updated
at the end of balancing right now. Meanwhile tsc is updated
one first thread moved to the core, so it is no longer
considered in interrupt mode.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I95f58c94e3f5ae8a468723d1dd6e53b0e417dcc3
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8069
Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
2021-06-28 16:18:19 +00:00
..
common.sh autotest: Use rpc_cmd() for rpc plugin-based tests 2021-04-02 08:22:42 +00:00
governor.sh test/scheduler: Print minimum supported frequency by given cpu 2021-03-18 13:25:09 +00:00
idle.sh subsystem/nvmf: remove cpu_mask hint when creating poll group 2021-05-11 11:49:52 +00:00
interrupt.sh test/scheduler: Add basic tests for verifying interrupt mode 2021-01-25 20:37:50 +00:00
isolate_cores.sh test/scheduler: Add wrapper for setting up the environment 2021-01-22 18:31:25 +00:00
load_balancing.sh scheduler_dynamic: consider any core for the thread 2021-06-28 16:18:19 +00:00
rdmsr.pl test/scheduler: Add simple tool for utilizing msr driver 2021-01-22 18:31:25 +00:00
scheduler.sh test/scheduler: Add basic tests for verifying interrupt mode 2021-01-25 20:37:50 +00:00