----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/21451/#review44386 -----------------------------------------------------------
src/slave/containerizer/isolators/cgroups/perf_event.cpp <https://reviews.apache.org/r/21451/#comment78760> put "if" on a new line. src/slave/containerizer/isolators/cgroups/perf_event.cpp <https://reviews.apache.org/r/21451/#comment78762> Comment on how this is possible. src/slave/containerizer/isolators/cgroups/perf_event.cpp <https://reviews.apache.org/r/21451/#comment78763> indentation. src/slave/flags.hpp <https://reviews.apache.org/r/21451/#comment78748> s/Default is none//. --help will print the default, if any. src/slave/flags.hpp <https://reviews.apache.org/r/21451/#comment78775> are sanitized in the perf statistics right? the flag values here shouldn't be sanitized correct? maybe make it more explicit? src/slave/flags.hpp <https://reviews.apache.org/r/21451/#comment78749> s/Default is 60 seconds.//. --help will print the default, if any. src/slave/flags.hpp <https://reviews.apache.org/r/21451/#comment78750> s/Default is 10 seconds//. --help will print the default, if any. src/tests/isolator_tests.cpp <https://reviews.apache.org/r/21451/#comment78765> What does sampling have to do with reap interval? src/tests/slave_recovery_tests.cpp <https://reviews.apache.org/r/21451/#comment78767> why are you unsetting this? src/tests/slave_recovery_tests.cpp <https://reviews.apache.org/r/21451/#comment78773> nice test! - Vinod Kone On May 29, 2014, 10:14 p.m., Ian Downes wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/21451/ > ----------------------------------------------------------- > > (Updated May 29, 2014, 10:14 p.m.) > > > Review request for mesos, Benjamin Hindman and Vinod Kone. > > > Bugs: MESOS-1278 > https://issues.apache.org/jira/browse/MESOS-1278 > > > Repository: mesos-git > > > Description > ------- > > Three new slave flags: > 1. perf_events is a list of perf events to sample. This list is validated > through perf during isolation creation. > 2. perf_interval is the time between starting new samples > 3. perf_duration is the duration of each sample > > e.g., you could sample cpu-cycles and cpu-migrations for 10 seconds every 60 > seconds. > > Isolator::usage() will initially return an empty PerfStatistics protobuf > (containing only the timing information) until the first sample is obtained. > After that it will return the most recent sample. > > > Diffs > ----- > > src/slave/containerizer/isolators/cgroups/perf_event.hpp PRE-CREATION > src/slave/containerizer/isolators/cgroups/perf_event.cpp PRE-CREATION > src/slave/containerizer/mesos_containerizer.cpp > 14380240512d29b49c2e8f2831a9ef8ca102a024 > src/slave/flags.hpp 15e5b64fd24a9381074b4833a0403314e1f404bc > src/tests/isolator_tests.cpp b0eff5721b6ea4dcee8ff3748a2a11ade809e30e > src/tests/mesos.cpp 3065ae30bceb8b258d071110c0360f701ff48b64 > src/tests/slave_recovery_tests.cpp 44ffac40b9edc9940f17b5fbe1848d56cf53b69b > > Diff: https://reviews.apache.org/r/21451/diff/ > > > Testing > ------- > > Test forthcoming. > > > Thanks, > > Ian Downes > >
