You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Ian Downes <ia...@gmail.com> on 2015/03/24 01:17:49 UTC
Review Request 32420: Fix PerfTest.ROOT_SampleInit to sample a
process known to consume cpu.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32420/
-----------------------------------------------------------
Review request for mesos and Ben Mahler.
Bugs: MESOS-2534
https://issues.apache.org/jira/browse/MESOS-2534
Repository: mesos
Description
-------
init/systemd/launchd doesn't always run within a reasonable length interval.
Changed test to fork and sample a child that spins.
Reduced the test time too.
Diffs
-----
src/tests/perf_tests.cpp 16f32267f694ccaae9d10c2629831e2cca23e0c8
Diff: https://reviews.apache.org/r/32420/diff/
Testing
-------
./bin/mesos-tests.sh --gtest_filter="PerfTest.ROOT_SamplePid" --gtest_repeat=100
Thanks,
Ian Downes
Re: Review Request 32420: Fix PerfTest.ROOT_SampleInit to sample a
process known to consume cpu.
Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32420/#review77507
-----------------------------------------------------------
Looks good! Just hoping we can avoid the process leak.
src/tests/perf_tests.cpp
<https://reviews.apache.org/r/32420/#comment125603>
Can we guarantee that we don't leak a long-lived process?
Since you're using linux, we could manually use PR_SET_PDEATHSIG here (I assume this works when the parent is already dead..?).
Otherwsie, we can make this loop for a limited duration of time.
Just something to prevent this from leaking if the test fails, crashes, or is killed before we get a change to SIGKILL the child.
- Ben Mahler
On March 24, 2015, 12:17 a.m., Ian Downes wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32420/
> -----------------------------------------------------------
>
> (Updated March 24, 2015, 12:17 a.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Bugs: MESOS-2534
> https://issues.apache.org/jira/browse/MESOS-2534
>
>
> Repository: mesos
>
>
> Description
> -------
>
> init/systemd/launchd doesn't always run within a reasonable length interval.
>
> Changed test to fork and sample a child that spins.
>
> Reduced the test time too.
>
>
> Diffs
> -----
>
> src/tests/perf_tests.cpp 16f32267f694ccaae9d10c2629831e2cca23e0c8
>
> Diff: https://reviews.apache.org/r/32420/diff/
>
>
> Testing
> -------
>
> ./bin/mesos-tests.sh --gtest_filter="PerfTest.ROOT_SamplePid" --gtest_repeat=100
>
>
> Thanks,
>
> Ian Downes
>
>
Re: Review Request 32420: Fix PerfTest.ROOT_SampleInit to sample a
process known to consume cpu.
Posted by Mesos ReviewBot <de...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32420/#review77508
-----------------------------------------------------------
Patch looks great!
Reviews applied: [32420]
All tests passed.
- Mesos ReviewBot
On March 24, 2015, 12:17 a.m., Ian Downes wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32420/
> -----------------------------------------------------------
>
> (Updated March 24, 2015, 12:17 a.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Bugs: MESOS-2534
> https://issues.apache.org/jira/browse/MESOS-2534
>
>
> Repository: mesos
>
>
> Description
> -------
>
> init/systemd/launchd doesn't always run within a reasonable length interval.
>
> Changed test to fork and sample a child that spins.
>
> Reduced the test time too.
>
>
> Diffs
> -----
>
> src/tests/perf_tests.cpp 16f32267f694ccaae9d10c2629831e2cca23e0c8
>
> Diff: https://reviews.apache.org/r/32420/diff/
>
>
> Testing
> -------
>
> ./bin/mesos-tests.sh --gtest_filter="PerfTest.ROOT_SamplePid" --gtest_repeat=100
>
>
> Thanks,
>
> Ian Downes
>
>
Re: Review Request 32420: Fix PerfTest.ROOT_SampleInit to sample a
process known to consume cpu.
Posted by Mesos ReviewBot <de...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32420/#review77626
-----------------------------------------------------------
Patch looks great!
Reviews applied: [32420]
All tests passed.
- Mesos ReviewBot
On March 24, 2015, 7:06 p.m., Ian Downes wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32420/
> -----------------------------------------------------------
>
> (Updated March 24, 2015, 7:06 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Bugs: MESOS-2534
> https://issues.apache.org/jira/browse/MESOS-2534
>
>
> Repository: mesos
>
>
> Description
> -------
>
> init/systemd/launchd doesn't always run within a reasonable length interval.
>
> Changed test to fork and sample a child that spins.
>
> Reduced the test time too.
>
>
> Diffs
> -----
>
> src/tests/perf_tests.cpp 16f32267f694ccaae9d10c2629831e2cca23e0c8
>
> Diff: https://reviews.apache.org/r/32420/diff/
>
>
> Testing
> -------
>
> ./bin/mesos-tests.sh --gtest_filter="PerfTest.ROOT_SamplePid" --gtest_repeat=100
>
>
> Thanks,
>
> Ian Downes
>
>
Re: Review Request 32420: Fix PerfTest.ROOT_SampleInit to sample a
process known to consume cpu.
Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32420/#review77664
-----------------------------------------------------------
Ship it!
src/tests/perf_tests.cpp
<https://reviews.apache.org/r/32420/#comment125832>
If `prctl` fails, can you exit?
- Ben Mahler
On March 24, 2015, 7:06 p.m., Ian Downes wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32420/
> -----------------------------------------------------------
>
> (Updated March 24, 2015, 7:06 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Bugs: MESOS-2534
> https://issues.apache.org/jira/browse/MESOS-2534
>
>
> Repository: mesos
>
>
> Description
> -------
>
> init/systemd/launchd doesn't always run within a reasonable length interval.
>
> Changed test to fork and sample a child that spins.
>
> Reduced the test time too.
>
>
> Diffs
> -----
>
> src/tests/perf_tests.cpp 16f32267f694ccaae9d10c2629831e2cca23e0c8
>
> Diff: https://reviews.apache.org/r/32420/diff/
>
>
> Testing
> -------
>
> ./bin/mesos-tests.sh --gtest_filter="PerfTest.ROOT_SamplePid" --gtest_repeat=100
>
>
> Thanks,
>
> Ian Downes
>
>
Re: Review Request 32420: Fix PerfTest.ROOT_SampleInit to sample a
process known to consume cpu.
Posted by Ian Downes <ia...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32420/
-----------------------------------------------------------
(Updated March 24, 2015, 12:06 p.m.)
Review request for mesos and Ben Mahler.
Changes
-------
Child sets PR_DEATHSIG to SIGKILL to prevent an orphan if the test process dies.
Bugs: MESOS-2534
https://issues.apache.org/jira/browse/MESOS-2534
Repository: mesos
Description
-------
init/systemd/launchd doesn't always run within a reasonable length interval.
Changed test to fork and sample a child that spins.
Reduced the test time too.
Diffs (updated)
-----
src/tests/perf_tests.cpp 16f32267f694ccaae9d10c2629831e2cca23e0c8
Diff: https://reviews.apache.org/r/32420/diff/
Testing
-------
./bin/mesos-tests.sh --gtest_filter="PerfTest.ROOT_SamplePid" --gtest_repeat=100
Thanks,
Ian Downes