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 9F33010EE6 for ; Wed, 2 Oct 2013 20:06:01 +0000 (UTC) Received: (qmail 5317 invoked by uid 500); 2 Oct 2013 20:06:01 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 5284 invoked by uid 500); 2 Oct 2013 20:06:00 -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 5268 invoked by uid 99); 2 Oct 2013 20:06:00 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Oct 2013 20:06:00 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 457151D3402; Wed, 2 Oct 2013 20:05:59 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1173420435175810314==" MIME-Version: 1.0 Subject: Re: Review Request 14024: cgroup_isolator: Allow kernel to handle OOM From: "Ben Mahler" To: "Benjamin Hindman" , "Ben Mahler" , "Eric Biederman" , "Vinod Kone" Cc: "David Mackey" , "mesos" Date: Wed, 02 Oct 2013 20:05:59 -0000 Message-ID: <20131002200559.28588.34381@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Ben Mahler" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/14024/ X-Sender: "Ben Mahler" References: <20130906230534.24330.215@reviews.apache.org> In-Reply-To: <20130906230534.24330.215@reviews.apache.org> Reply-To: "Ben Mahler" --===============1173420435175810314== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/14024/#review26625 ----------------------------------------------------------- Thanks David! Please mark as submitted. - Ben Mahler On Sept. 6, 2013, 11:05 p.m., David Mackey wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/14024/ > ----------------------------------------------------------- > > (Updated Sept. 6, 2013, 11:05 p.m.) > > > Review request for mesos, Benjamin Hindman, Ben Mahler, Eric Biederman, and Vinod Kone. > > > Bugs: MESOS-662 > https://issues.apache.org/jira/browse/MESOS-662 > > > Repository: mesos-git > > > Description > ------- > > I post this partially as a RFC. I'm in favor of this approach but happy to have the discussion here. > > The Mesos userspace OOM handler does not conform to the practical > restrictions imposed upon it given the potential states the kernel can > be in when it gets the OOM notification. The result of this has been > numerous deadlocks because the Mesos OOM handler blocks on a lock that > is being held by the task it is trying to kill. > > This patch does not try to fix the issues with the OOM handler. Instead, > it hands over the job of OOM-killing to the kernel. The end result is > very similar. The downside to this approach compared to the approach > it's moving away from is now when the Mesos OOM handler reads the > memory.stats they will be after the oom condition occurred. The "maximum > usage" is still captured but the breakdown is lost. This exposes another > weakness in the memcg implementation regarding page cache awareness. > However, the reliability improvements outweigh the weakness in stats. > > > Diffs > ----- > > src/linux/cgroups.hpp 5ee64d6 > src/linux/cgroups.cpp 813dcb3 > src/slave/cgroups_isolator.cpp a1f5b32 > > Diff: https://reviews.apache.org/r/14024/diff/ > > > Testing > ------- > > > Thanks, > > David Mackey > > --===============1173420435175810314==--