Return-Path: X-Original-To: apmail-mesos-reviews-archive@minotaur.apache.org Delivered-To: apmail-mesos-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83E4D17D11 for ; Thu, 4 Jun 2015 01:14:34 +0000 (UTC) Received: (qmail 66421 invoked by uid 500); 4 Jun 2015 01:14:34 -0000 Delivered-To: apmail-mesos-reviews-archive@mesos.apache.org Received: (qmail 66395 invoked by uid 500); 4 Jun 2015 01:14:34 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 66375 invoked by uid 99); 4 Jun 2015 01:14:34 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jun 2015 01:14:34 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id D0C231DF38C; Thu, 4 Jun 2015 01:14:33 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0120197088947801986==" MIME-Version: 1.0 Subject: Re: Review Request 34426: Report per-container metrics for network bandwidth throttling From: "Paul Brett" To: "Cong Wang" , "Jie Yu" , "Ian Downes" , "Chi Zhang" Cc: "Paul Brett" , "mesos" Date: Thu, 04 Jun 2015 01:14:33 -0000 Message-ID: <20150604011433.7996.14479@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Paul Brett" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/34426/ X-Sender: "Paul Brett" References: <20150603223514.7996.52381@reviews.apache.org> In-Reply-To: <20150603223514.7996.52381@reviews.apache.org> Reply-To: "Paul Brett" X-ReviewRequest-Repository: mesos --===============0120197088947801986== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On June 3, 2015, 10:35 p.m., Jie Yu wrote: > > src/linux/routing/queueing/internal.hpp, line 320 > > > > > > Why <=? The definition for RTNL_TC_STATS_MAX comes from libnl and looks like this: enum rtnl_tc_stat { RTNL_TC_PACKETS, /**< Number of packets seen */ RTNL_TC_BYTES, /**< Total bytes seen */ RTNL_TC_RATE_BPS, /**< Current bits/s (rate estimator) */ RTNL_TC_RATE_PPS, /**< Current packet/s (rate estimator) */ RTNL_TC_QLEN, /**< Current queue length */ RTNL_TC_BACKLOG, /**< Current backlog length */ RTNL_TC_DROPS, /**< Total number of packets dropped */ RTNL_TC_REQUEUES, /**< Total number of requeues */ RTNL_TC_OVERLIMITS, /**< Total number of overlimits */ __RTNL_TC_STATS_MAX, }; #define RTNL_TC_STATS_MAX (__RTNL_TC_STATS_MAX - 1) So the range is from 0 to RTNL_TC_STATS_MAX inclusive. > On June 3, 2015, 10:35 p.m., Jie Yu wrote: > > src/linux/routing/queueing/statistics.hpp, line 23 > > > > > > Should we get rid of 'queueing' here because this can be used by filters as well? It should work on filters but we have no use case and no testing to know if it works. Lets leave it here until that changes. - Paul ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/34426/#review86493 ----------------------------------------------------------- On June 3, 2015, 9:19 p.m., Paul Brett wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/34426/ > ----------------------------------------------------------- > > (Updated June 3, 2015, 9:19 p.m.) > > > Review request for mesos, Chi Zhang, Ian Downes, Jie Yu, and Cong Wang. > > > Bugs: MESOS-2665 > https://issues.apache.org/jira/browse/MESOS-2665 > > > Repository: mesos > > > Description > ------- > > Report the network statistics from libnl > > > Diffs > ----- > > src/Makefile.am 66030c4b211ea61e97e62c35ec1821e0958f9787 > src/linux/routing/queueing/fq_codel.hpp 49c8df626addcfc841132f821b8697b5e6e3b341 > src/linux/routing/queueing/fq_codel.cpp 976c6a7a11d39609e6597daeb1a74c93ac62e4bf > src/linux/routing/queueing/ingress.hpp 2b7e1d3d1c02120195b6697320fb46f085a1ef92 > src/linux/routing/queueing/ingress.cpp e96f547200dc4ad5b2e33fd1ffbd7fb92b955a46 > src/linux/routing/queueing/internal.hpp 3713f6a4d3f9a44b142b8150e85cf911e53e34e9 > src/linux/routing/queueing/statistics.hpp PRE-CREATION > > Diff: https://reviews.apache.org/r/34426/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Paul Brett > > --===============0120197088947801986==--