MINOR: tasks: Make the number of tasks to run at once configurable.
Instead of hardcoding 200, make the number of tasks to be run configurable
using tune.runqueue-depth. 200 is still the default.
diff --git a/include/common/defaults.h b/include/common/defaults.h
index f53c611..f5c74db 100644
--- a/include/common/defaults.h
+++ b/include/common/defaults.h
@@ -135,6 +135,11 @@
#define MAX_POLL_EVENTS 200
#endif
+// the max number of tasks to run at once
+#ifndef RUNQUEUE_DEPTH
+#define RUNQUEUE_DEPTH 200
+#endif
+
// cookie delimitor in "prefix" mode. This character is inserted between the
// persistence cookie and the original value. The '~' is allowed by RFC6265,
// and should not be too common in server names.
diff --git a/include/types/global.h b/include/types/global.h
index bd7761c..d603c42 100644
--- a/include/types/global.h
+++ b/include/types/global.h
@@ -136,6 +136,7 @@
int maxpollevents; /* max number of poll events at once */
int maxaccept; /* max number of consecutive accept() */
int options; /* various tuning options */
+ int runqueue_depth;/* max number of tasks to run at once */
int recv_enough; /* how many input bytes at once are "enough" */
int bufsize; /* buffer size in bytes, defaults to BUFSIZE */
int maxrewrite; /* buffer max rewrite size in bytes, defaults to MAXREWRITE */