Repository: mesos Updated Branches: refs/heads/master 01f6f7b31 -> c2c9bddd9
Changed the MIN_CPU_SHARES to match the kernel constant. Review: https://reviews.apache.org/r/36410 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/aaa3588c Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/aaa3588c Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/aaa3588c Branch: refs/heads/master Commit: aaa3588c27f36a4b80f5fa541266c33629afb671 Parents: 01f6f7b Author: Jie Yu <[email protected]> Authored: Fri Jul 10 15:59:50 2015 -0700 Committer: Jie Yu <[email protected]> Committed: Thu Jul 16 16:57:39 2015 -0700 ---------------------------------------------------------------------- src/slave/containerizer/isolators/cgroups/constants.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/aaa3588c/src/slave/containerizer/isolators/cgroups/constants.hpp ---------------------------------------------------------------------- diff --git a/src/slave/containerizer/isolators/cgroups/constants.hpp b/src/slave/containerizer/isolators/cgroups/constants.hpp index e6df4a2..31df7df 100644 --- a/src/slave/containerizer/isolators/cgroups/constants.hpp +++ b/src/slave/containerizer/isolators/cgroups/constants.hpp @@ -28,7 +28,7 @@ namespace slave { // CPU subsystem constants. const uint64_t CPU_SHARES_PER_CPU = 1024; -const uint64_t MIN_CPU_SHARES = 10; +const uint64_t MIN_CPU_SHARES = 2; // Linux constant. const Duration CPU_CFS_PERIOD = Milliseconds(100); // Linux default. const Duration MIN_CPU_CFS_QUOTA = Milliseconds(1);
