test/scheduler: Don't use extra time while waiting for idle cpus
It's not needed anymore since we pick up now last idle sample in comparision to remaining states given cpu spent time in. This way we get the faster view if in given moment cpu is busy or not. Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: I3677c03ee3c2e42662df35dd0a6e7b5b6b1f98ed Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7565 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com>
This commit is contained in:
parent
330e9f779c
commit
7478e053e1
@ -60,8 +60,7 @@ interrupt() {
|
||||
for cpu in "${!threads[@]}"; do
|
||||
active_thread "${threads[cpu]}" 0
|
||||
cpus_to_collect=("$cpu")
|
||||
# Give some extra time for the cpu to spin down
|
||||
collect_cpu_idle 10
|
||||
collect_cpu_idle
|
||||
reactor_framework=$(rpc_cmd framework_get_reactors | jq -r '.reactors[]')
|
||||
[[ -z $(jq -r "select(.lcore == $cpu) | .lw_threads[].id" <<< "$reactor_framework") ]]
|
||||
[[ -n $(jq -r "select(.lcore == $spdk_main_core) | .lw_threads[] | select(.name == \"thread$cpu\")" <<< "$reactor_framework") ]]
|
||||
|
Loading…
Reference in New Issue
Block a user