Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 31B15200C28 for ; Mon, 13 Mar 2017 14:45:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 30442160B6C; Mon, 13 Mar 2017 13:45:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7BC1F160B60 for ; Mon, 13 Mar 2017 14:45:42 +0100 (CET) Received: (qmail 75866 invoked by uid 500); 13 Mar 2017 13:45:41 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 75855 invoked by uid 99); 13 Mar 2017 13:45:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2017 13:45:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5D529DFE7B; Mon, 13 Mar 2017 13:45:40 +0000 (UTC) From: jinxing64 To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org Message-ID: Subject: [GitHub] spark pull request #17276: [WIP][SPARK-19937] Collect metrics of block sizes... Content-Type: text/plain Date: Mon, 13 Mar 2017 13:45:40 +0000 (UTC) archived-at: Mon, 13 Mar 2017 13:45:43 -0000 GitHub user jinxing64 opened a pull request: https://github.com/apache/spark/pull/17276 [WIP][SPARK-19937] Collect metrics of block sizes when shuffle. ## What changes were proposed in this pull request? Metrics of blocks sizes(when shuffle) should be collected for later analysis. This is helpful for analysis when skew situations or OOM happens(though maxBytesInFlight is set). This pr proposes to: 1. Store the distribution of sizes in `MapStatus` and count the block sizes in ranges [0, 1k), [1k, 10k), [10k, 100k), [100k, 1m), [1m, 10m), [10m, 100m), [100m, 1g), [1g, 10g), [10g, Long.MaxValue). 2. Record the inaccuracy of block sizes. Because `HighlyCompressedMapStatus` is returned and only average size is recorded when block sizes is over 2000. ## How was this patch tested? You can merge this pull request into a Git repository by running: $ git pull https://github.com/jinxing64/spark SPARK-19937 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/17276.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #17276 ---- commit 430ec95291393f49096fc07df98c15e700f23e8c Author: jinxing Date: 2017-03-13T13:35:51Z [SPARK-19937] Collect metrics of block sizes when shuffle. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org