e8c467965e
Now a test thread will have one idle_poller and an optional busy poller (when active_percent > 0). The idle poller will just consume a very small amount of tsc via spdk_delay_us(10). If active_percent > 0, we will start a timed poller for TIMESLICE_US (currently 100 * 1000). When that timer expires, it will consume TIMESLICE_US * active_percent microseconds. I think this is a slightly simpler way to enforce the thread consumption percentages specified by the tests. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I13dd18dacff0f6a86c045876384a8931b7273842 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9654 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> |
||
---|---|---|
.. | ||
app_repeat | ||
event_perf | ||
reactor | ||
reactor_perf | ||
scheduler | ||
event.sh | ||
Makefile |