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 5E3E7200C06 for ; Fri, 27 Jan 2017 17:31:31 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5CE09160B5B; Fri, 27 Jan 2017 16:31:31 +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 A4822160B40 for ; Fri, 27 Jan 2017 17:31:30 +0100 (CET) Received: (qmail 66086 invoked by uid 500); 27 Jan 2017 16:31:29 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 66077 invoked by uid 99); 27 Jan 2017 16:31:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2017 16:31:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 67EAEC0D64 for ; Fri, 27 Jan 2017 16:31:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id NMYyv58AWpNy for ; Fri, 27 Jan 2017 16:31:28 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C42775FBD1 for ; Fri, 27 Jan 2017 16:31:27 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id ACF96E0285 for ; Fri, 27 Jan 2017 16:31:24 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6B5DB2528A for ; Fri, 27 Jan 2017 16:31:24 +0000 (UTC) Date: Fri, 27 Jan 2017 16:31:24 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-5228) External Sort : Several operators in the attached query profile take more time than expected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 27 Jan 2017 16:31:31 -0000 [ https://issues.apache.org/jira/browse/DRILL-5228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rahul Challapalli updated DRILL-5228: ------------------------------------- Description: Environment : {code} git.commit.id.abbrev=2af709f DRILL_MAX_DIRECT_MEMORY="32G" DRILL_MAX_HEAP="4G" {code} Data Set : {code} Size : ~18 GB No Of Columns : 1 Column Width : 250 bytes {code} Query ( took ~127 minutes to complete) {code} alter session set `planner.width.max_per_node` = 1; alter session set `planner.disable_exchanges` = true; alter session set `planner.memory.max_query_memory_per_node` = 14106127360; select * from (select * from dfs.`/drill/testdata/resource-manager/250wide.tbl` order by columns[0])d where d.columns[0] = 'ljdfhwuehnoiueyf'; {code} *Selection Vector Remover* {code} Time Spent based on profile : 7m58s Problem : Since the external sort spilled to the disk in this case, the selection vector remover should have been an no-op. There is no clear justification for the time spent {code} *Text Sub Scan* {code} Time spent based on profile : 13m25s Problem : I captured the profile screenshot (before-spill.png) once the memory allocation for the sort reached its limit. Based on this the scan took 2m13s for reading the first 12.48GB of data before sorting/spilling began. For the remaining ~5.5 GB it took ~11 minutes. {code} *Projects* {code} Timings for the 4 projects based on profile. While I do not have a good reason to suspect, these numbers seemed high. Project 1 : 4m54s Project 2 : 3m07s Project 3 : 4m10s Project 4 : 0.003s {code} The time spent in the external sort based on the profile is wrong. DRILL-5227 is reported for this. was: Environment : {code} git.commit.id.abbrev=2af709f DRILL_MAX_DIRECT_MEMORY="32G" DRILL_MAX_HEAP="4G" {code} Data Set : {code} Size : ~18 GB No Of Columns : 1 Column Width : 256 bytes {code} Query ( took ~127 minutes to complete) {code} alter session set `planner.width.max_per_node` = 1; alter session set `planner.disable_exchanges` = true; alter session set `planner.memory.max_query_memory_per_node` = 14106127360; select * from (select * from dfs.`/drill/testdata/resource-manager/250wide.tbl` order by columns[0])d where d.columns[0] = 'ljdfhwuehnoiueyf'; {code} *Selection Vector Remover* {code} Time Spent based on profile : 7m58s Problem : Since the external sort spilled to the disk in this case, the selection vector remover should have been an no-op. There is no clear justification for the time spent {code} *Text Sub Scan* {code} Time spent based on profile : 13m25s Problem : I captured the profile screenshot (before-spill.png) once the memory allocation for the sort reached its limit. Based on this the scan took 2m13s for reading the first 12.48GB of data before sorting/spilling began. For the remaining ~5.5 GB it took ~11 minutes. {code} *Projects* {code} Timings for the 4 projects based on profile. While I do not have a good reason to suspect, these numbers seemed high. Project 1 : 4m54s Project 2 : 3m07s Project 3 : 4m10s Project 4 : 0.003s {code} The time spent in the external sort based on the profile is wrong. DRILL-5227 is reported for this. Summary: External Sort : Several operators in the attached query profile take more time than expected (was: Several operators in the attached query profile take more time than expected) > External Sort : Several operators in the attached query profile take more time than expected > -------------------------------------------------------------------------------------------- > > Key: DRILL-5228 > URL: https://issues.apache.org/jira/browse/DRILL-5228 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Relational Operators > Affects Versions: 1.10.0 > Reporter: Rahul Challapalli > Attachments: 2775bf26-404a-4fee-ba3d-740a191899fa.sys.drill, before-spill.png > > > Environment : > {code} > git.commit.id.abbrev=2af709f > DRILL_MAX_DIRECT_MEMORY="32G" > DRILL_MAX_HEAP="4G" > {code} > Data Set : > {code} > Size : ~18 GB > No Of Columns : 1 > Column Width : 250 bytes > {code} > Query ( took ~127 minutes to complete) > {code} > alter session set `planner.width.max_per_node` = 1; > alter session set `planner.disable_exchanges` = true; > alter session set `planner.memory.max_query_memory_per_node` = 14106127360; > select * from (select * from dfs.`/drill/testdata/resource-manager/250wide.tbl` order by columns[0])d where d.columns[0] = 'ljdfhwuehnoiueyf'; > {code} > *Selection Vector Remover* > {code} > Time Spent based on profile : 7m58s > Problem : Since the external sort spilled to the disk in this case, the selection vector remover should have been an no-op. There is no clear justification for the time spent > {code} > *Text Sub Scan* > {code} > Time spent based on profile : 13m25s > Problem : I captured the profile screenshot (before-spill.png) once the memory allocation for the sort reached its limit. Based on this the scan took 2m13s for reading the first 12.48GB of data before sorting/spilling began. For the remaining ~5.5 GB it took ~11 minutes. > {code} > *Projects* > {code} > Timings for the 4 projects based on profile. While I do not have a good reason to suspect, these numbers seemed high. > Project 1 : 4m54s > Project 2 : 3m07s > Project 3 : 4m10s > Project 4 : 0.003s > {code} > The time spent in the external sort based on the profile is wrong. DRILL-5227 is reported for this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)