This is a preparation to the next patch which factors out the main polling loop of _spdk_reactor_run() into a helper function reactor_run(). One of the subsequent patches will support CPU power saving by adding sleep into reactor_run(). We should not insert sleep between the main polling loop and getrusage() because now is got before entering the main polling loop. To put getrusage() into reactor_run(), we need to maintain last_rusage in struct spdk_reactor and maintain g_rusage_period as a global variable. This patch does these changes. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I61bf50de6a170ac73c8fe17e85077b90171dd9c0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1185 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> |
||
---|---|---|
.. | ||
accel_engine.h | ||
assert.h | ||
event.h | ||
log.h | ||
lvolstore.h | ||
memory.h | ||
mock.h | ||
nvme_tcp.h | ||
sock.h | ||
thread.h | ||
uring.h | ||
utf.h | ||
vhost_user.h | ||
virtio.h |