From d2c0feac8a13944bc9af7c60ed047809cf1f5d9d Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Thu, 12 Jan 2017 14:01:26 -0700 Subject: [PATCH] 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: Daniel Verkamp --- lib/event/reactor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/event/reactor.c b/lib/event/reactor.c index fa9124508..1f3607b5f 100644 --- a/lib/event/reactor.c +++ b/lib/event/reactor.c @@ -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