Return-Path: X-Original-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DEEC108DB for ; Mon, 17 Jun 2013 19:47:18 +0000 (UTC) Received: (qmail 34585 invoked by uid 500); 17 Jun 2013 19:47:18 -0000 Delivered-To: apmail-incubator-mesos-dev-archive@incubator.apache.org Received: (qmail 34551 invoked by uid 500); 17 Jun 2013 19:47:18 -0000 Mailing-List: contact mesos-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mesos-dev@incubator.apache.org Delivered-To: mailing list mesos-dev@incubator.apache.org Received: (qmail 34540 invoked by uid 99); 17 Jun 2013 19:47:18 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 19:47:18 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id ABD231CCC3E; Mon, 17 Jun 2013 19:47:10 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0200548623552119809==" MIME-Version: 1.0 Subject: Re: Review Request: Changed cgroups killTasks() sequence. From: "Brenden Matthews" To: "Vinod Kone" , "Ben Mahler" , "mesos" , "Brenden Matthews" Date: Mon, 17 Jun 2013 19:47:10 -0000 Message-ID: <20130617194710.32192.45414@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Brenden Matthews" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/11131/ X-Sender: "Brenden Matthews" References: <20130614022431.3558.93784@reviews.apache.org> In-Reply-To: <20130614022431.3558.93784@reviews.apache.org> Reply-To: "Brenden Matthews" --===============0200548623552119809== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > On June 14, 2013, 2:24 a.m., Ben Mahler wrote: > > src/linux/cgroups.cpp, lines 1515-1518 > > > > > > On second thought, let's just keep it simple for now as I imagine i= t's alright to freeze an empty cgroup. > > = > > So stop -> kill -> empty -> freeze -> kill -> thaw -> empty. Then w= e don't need to be concerned with only continuing the chain when the kill d= oesn't work. > > = > > Disregard SIGCONT, I was mislead by some comments in killtree.sh bu= t it's not necessary when using SIGKILL. > > = > > I apologize for the conflicting feedback!! To be clear, we haven't = made any progress either in terms of figuring out what the problem is so we= 're agreed on this fix! :) > = > Vinod Kone wrote: > can't we just do stop->kill->freeze->kill->thaw->empty? > = > Brenden Matthews wrote: > Ben? Thoughts on this? > = > Ben Mahler wrote: > We can, but it doesn't allow any time for the killed processes to go = away prior to freezing, I'd prefer empty() after the kill(). That's what I thought too. - Brenden ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/11131/#review21893 ----------------------------------------------------------- On June 17, 2013, 7:36 p.m., Brenden Matthews wrote: > = > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/11131/ > ----------------------------------------------------------- > = > (Updated June 17, 2013, 7:36 p.m.) > = > = > Review request for mesos. > = > = > Description > ------- > = > Changed cgroups killTasks() sequence. > = > The sequence is as follows: > stop -> kill -> empty -> freeze -> kill -> thaw -> empty > = > We also now ignore ESRCH errors from kill() in cgroups::kill(). > = > Review: https://reviews.apache.org/r/11131 > = > = > Diffs > ----- > = > src/linux/cgroups.cpp 8d94fe63610c4c7a48f92d260fcd526b7a83942e = > = > Diff: https://reviews.apache.org/r/11131/diff/ > = > = > Testing > ------- > = > Used in production at airbnb. > = > make -j10 check && cd hadoop && make hadoop-2.0.0-mr1-cdh4.2.1 && make ha= doop-0.20.205.0 && make hadoop-0.20.2-cdh3u3 > = > = > Thanks, > = > Brenden Matthews > = > --===============0200548623552119809==--