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 69411CB16 for ; Tue, 2 Jul 2013 14:27:33 +0000 (UTC) Received: (qmail 7658 invoked by uid 500); 2 Jul 2013 14:26:50 -0000 Delivered-To: apmail-incubator-mesos-dev-archive@incubator.apache.org Received: (qmail 4603 invoked by uid 500); 2 Jul 2013 14:26:46 -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 3652 invoked by uid 99); 2 Jul 2013 14:26:44 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 14:26:44 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id E3AD01CD59C; Tue, 2 Jul 2013 14:26:34 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7276905581562730051==" MIME-Version: 1.0 Subject: Re: Review Request 12215: Refactored os::Process to use Try's for memory and CPU information. From: "Benjamin Hindman" To: "Benjamin Hindman" , "Vinod Kone" Cc: "Ben Mahler" , "mesos" Date: Tue, 02 Jul 2013 14:26:34 -0000 Message-ID: <20130702142634.26284.31396@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Benjamin Hindman" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/12215/ X-Sender: "Benjamin Hindman" References: <20130702024655.26284.88886@reviews.apache.org> In-Reply-To: <20130702024655.26284.88886@reviews.apache.org> Reply-To: "Benjamin Hindman" --===============7276905581562730051== 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/12215/#review22660 ----------------------------------------------------------- Ship it! I like wrapping those values in a Try, alternatively you could just use an Option (which makes it look less like a half broken Process and more like a Process with no resource statistics). The important part is that users will need to do something like 'process.rss.isSome()'. - Benjamin Hindman On July 2, 2013, 2:46 a.m., Ben Mahler wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/12215/ > ----------------------------------------------------------- > > (Updated July 2, 2013, 2:46 a.m.) > > > Review request for mesos, Benjamin Hindman and Vinod Kone. > > > Repository: mesos > > > Description > ------- > > This was reported by Brenden Matthews on the mailing list. It appears that on some Linux systems the utime / stime values coming from /proc are corrupt. > > > Diffs > ----- > > 3rdparty/libprocess/3rdparty/stout/include/stout/os/linux.hpp ef6c6c8f7839baaddcfd20249f2dbd25a7c3d25a > 3rdparty/libprocess/3rdparty/stout/include/stout/os/osx.hpp 3f4e9d4c64bf5a9027aa26aab24c6f02d76b8bfc > 3rdparty/libprocess/3rdparty/stout/include/stout/os/process.hpp 806949bb29ad15e97851697dcdeeb17396ebe459 > 3rdparty/libprocess/3rdparty/stout/tests/os_tests.cpp c5ad25bd03c573119494fb41e2cf075ecb67b3d8 > > Diff: https://reviews.apache.org/r/12215/diff/ > > > Testing > ------- > > make check > > Also ran the isolator tests with 100 iterations. > > > Thanks, > > Ben Mahler > > --===============7276905581562730051==--