+16
−0
+10
−7
Loading
get_thread_stats() gathers busy/idle from start of the application, directly from RPC. For some tests it is not required to measure state from app start, but only changes during test. idle.sh assumes that second check would make all threads idle. Yet if initialization takes long enough, app_thread will not be idle longer than it was busy by then. This became apparent when adding ASAN to all jobs, which considerably increased start up time. To fix that, only measure ticks between consecutive RPC calls. Added get_thread_stats_current() that returns busy/idle difference, since last time it was called. It allows to remove the workaround for first sample, per removed comment. While here: - added print with load/busy/idle for each thread - fixed unlikely condition for idle[thread] == busy[thread] Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Iaacce31aa7d4bcc22a51dbd7e71a4c7a4d274862 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20884 Reviewed-by:
Michal Berger <michal.berger@intel.com> Reviewed-by:
Ben Walker <ben@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com>