----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/6616/ -----------------------------------------------------------
Review request for mesos and Benjamin Hindman. Description ------- Introduce a new framework called "Burn Framework" to test the cgroups cpu isolation. The idea is to fire a few cpu-intensive tasks with separate executors to saturate the cpu usage on the slave machine. Also, we assign different "cpus" to each executor so that we can compare the relative execution time. Diffs ----- src/Makefile.am 75f8083 src/examples/burn_executor.cpp PRE-CREATION src/examples/burn_framework.cpp PRE-CREATION Diff: https://reviews.apache.org/r/6616/diff/ Testing ------- Here is the output from my virtual machine: (The cgroups cpu isolation does work!) jyu@jyu-vm-ubuntu:~/workspace/mesos/build$ src/burn-framework localhost:5050 Registered Resource offers received Launching task 0 with cpus=0.4, mem=20 Launching task 1 with cpus=0.2, mem=20 Launching task 2 with cpus=0.4, mem=20 Launching task 3 with cpus=0.2, mem=20 Launching task 4 with cpus=0.4, mem=20 Launching task 5 with cpus=0.2, mem=20 Task 0 is in state 1 Task 0 is in state 2 Task 4 is in state 1 Task 4 is in state 2 Task 2 is in state 1 Task 2 is in state 2 Resource offers received Task 3 is in state 1 Task 3 is in state 2 Task 5 is in state 1 Task 5 is in state 2 Task 1 is in state 1 Task 1 is in state 2 jyu@jyu-vm-ubuntu:/tmp/mesos/slaves/201208141736-16842879-5050-21318-0$ cat */*/*/*/*/*/* Registered Starting task 0 Finishing task 0: 82.5938 Shutdown Registered Starting task 1 Finishing task 1: 123.416 Shutdown Registered Starting task 2 Finishing task 2: 91.4879 Shutdown Registered Starting task 3 Finishing task 3: 112.507 Shutdown Registered Starting task 4 Finishing task 4: 82.5694 Shutdown Registered Starting task 5 Finishing task 5: 122.479 Shutdown Thanks, Jie Yu
