You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2017/08/01 21:03:04 UTC

[06/16] mesos git commit: Added --enable-lock-free-event-queue configuration in Mesos.

Added --enable-lock-free-event-queue configuration in Mesos.

Review: https://reviews.apache.org/r/61059


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3924617d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3924617d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3924617d

Branch: refs/heads/master
Commit: 3924617d7cd0a41f248ca959147d61b99bd99a36
Parents: 1a8b36e
Author: Benjamin Hindman <be...@gmail.com>
Authored: Fri Jul 21 15:06:54 2017 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Tue Aug 1 14:01:51 2017 -0700

----------------------------------------------------------------------
 configure.ac          | 11 +++++++++++
 docs/configuration.md |  9 +++++++++
 2 files changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/3924617d/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index b2eeeda..18f025e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,6 +148,13 @@ AC_CONFIG_FILES([mpi/mpiexec-mesos], [chmod +x mpi/mpiexec-mesos])
 # Optional features.
 ###############################################################################
 
+# TODO(benh): Eventaully make this enabled by default.
+AC_ARG_ENABLE([lock_free_event_queue],
+              AS_HELP_STRING([--enable-lock-free-event-queue],
+                             [enables the lock free event queue in libprocess]),
+                             [], [enable_lock_free_event_queue=no])
+
+# TODO(benh): Eventaully make this enabled by default.
 AC_ARG_ENABLE([lock_free_run_queue],
               AS_HELP_STRING([--enable-lock-free-run-queue],
                              [enables the lock free run queue in libprocess]),
@@ -450,6 +457,10 @@ AS_IF([test "x${ac_cv_env_CXXFLAGS_set}" = "x"],
 # Compiler checks.
 ###############################################################################
 
+# Check if we should use the lock free event queue.
+AS_IF([test "x$enable_lock_free_event_queue" = "xyes"],
+      [AC_DEFINE([LOCK_FREE_EVENT_QUEUE])])
+
 # Check if we should use the lock free run queue.
 AS_IF([test "x$enable_lock_free_run_queue" = "xyes"],
       [AC_DEFINE([LOCK_FREE_RUN_QUEUE])])

http://git-wip-us.apache.org/repos/asf/mesos/blob/3924617d/docs/configuration.md
----------------------------------------------------------------------
diff --git a/docs/configuration.md b/docs/configuration.md
index a06ac82..5449b92 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -2502,6 +2502,15 @@ quotas for container sandbox directories. Valid project IDs range from
       responsive; not recommended.
     </td>
   </tr>
+  <tr>
+    <td>
+      --enable-lock-free-event-queue
+    </td>
+    <td>
+      Enables the lock-free event queue to be used in libprocess which
+      greatly improves message passing performance!
+    </td>
+  </tr>
 </table>
 
 ### Autotools `configure` script optional package flags