Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4ED3116F3 for ; Tue, 5 Aug 2014 21:43:42 +0000 (UTC) Received: (qmail 8337 invoked by uid 500); 5 Aug 2014 21:43:42 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 8275 invoked by uid 500); 5 Aug 2014 21:43:42 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 8257 invoked by uid 99); 5 Aug 2014 21:43:42 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2014 21:43:42 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 823961DB082; Tue, 5 Aug 2014 21:43:28 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1995999332528882647==" MIME-Version: 1.0 Subject: Re: Review Request 24270: New MultiChildProcess test added to reap_tests.cpp From: "Timothy Chen" To: "Ian Downes" Cc: "Timothy Chen" , "Craig Hansen-Sturm" , "mesos" Date: Tue, 05 Aug 2014 21:43:28 -0000 Message-ID: <20140805214328.1595.16450@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Timothy Chen" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/24270/ X-Sender: "Timothy Chen" References: <20140805003013.1595.49241@reviews.apache.org> In-Reply-To: <20140805003013.1595.49241@reviews.apache.org> Reply-To: "Timothy Chen" X-ReviewRequest-Repository: mesos-git --===============1995999332528882647== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On Aug. 5, 2014, 12:30 a.m., Ian Downes wrote: > > I'm not 100% clear from the description what this is doing - does it test correctness in anyway or is it really to be used under profiling to test the performance of the reaper? If it's the latter, then perhaps this should be standalone benchmark that steps through # of child pids? > > Craig Hansen-Sturm wrote: > This is meant for benchmarking; however, it is has dual purpose, and it wasn't clear how to integrate this type of benchmark. Ideally, we'd want to continuously vary the pid count and, for this benchmark, the reap wait time. The wait time isn't programmatically exposed, but the question I have for you, is do we have a standard mechanism for exposing "endpoints" such as this ? Create a new internal interface ? > > Finally, ideally, this test would make use of an external profiling api - so that we can start/stop the sampling periods at test entry. > > I'm hoping GTEST has a lot of these hooks, but want to hear your ideas. Just came to my mind that we already have a make bench call that runs BENCHMARK tests I believe. Can this test then fold under benchmark with a BENCHMARK tag as well? - Timothy ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24270/#review49541 ----------------------------------------------------------- On Aug. 4, 2014, 11:23 p.m., Craig Hansen-Sturm wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/24270/ > ----------------------------------------------------------- > > (Updated Aug. 4, 2014, 11:23 p.m.) > > > Review request for mesos and Ian Downes. > > > Bugs: MESOS-1669 > https://issues.apache.org/jira/browse/MESOS-1669 > > > Repository: mesos-git > > > Description > ------- > > New test added which serves as a performance test for reaping. This test forks N children (default value is 4), kills these children, and then uses process::collect to collect all status results. This is a simple generalization of the existing ChildProcess test, except that it is realtime (as required for profiling), e.g., no clock manipulation is performed. This test is also useful for stressing the collect.hpp interfaces. > > > Diffs > ----- > > 3rdparty/libprocess/src/tests/reap_tests.cpp a18d54c > > Diff: https://reviews.apache.org/r/24270/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Craig Hansen-Sturm > > --===============1995999332528882647==--