Commit d2c0feac authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

event/reactor: increase spin time from 1us to 1ms



One microsecond is not really long enough to detect an idle condition
where calling the OS usleep() makes sense.  Increase the minimum time
spent spin-waiting on events and pollers from one microsecond to one
millisecond.

Change-Id: I678118e357330f133251f4cfada8ff27e10158a5
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 683c7d05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@

#define SPDK_MAX_SOCKET		64

#define SPDK_REACTOR_SPIN_TIME_US	1
#define SPDK_REACTOR_SPIN_TIME_US	1000

#define SPDK_EVENT_BATCH_SIZE		8