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 62EAE200C79 for ; Fri, 19 May 2017 18:43:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6165B160BB0; Fri, 19 May 2017 16:43:08 +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 A8824160BD1 for ; Fri, 19 May 2017 18:43:07 +0200 (CEST) Received: (qmail 14264 invoked by uid 500); 19 May 2017 16:43:06 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 14250 invoked by uid 99); 19 May 2017 16:43:06 -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, 19 May 2017 16:43:06 +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 3C046C05B0 for ; Fri, 19 May 2017 16:43:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 Lv8-ijkfudOv for ; Fri, 19 May 2017 16:43:05 +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 13FC85F3BE for ; Fri, 19 May 2017 16:43:05 +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 8A924E07E1 for ; Fri, 19 May 2017 16:43:04 +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 4827E21B58 for ; Fri, 19 May 2017 16:43:04 +0000 (UTC) Date: Fri, 19 May 2017 16:43:04 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-5528) Sorting 19GB data with 14GB memory in a single fragment takes ~150 minutes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 19 May 2017 16:43:08 -0000 Rahul Challapalli created DRILL-5528: ---------------------------------------- Summary: Sorting 19GB data with 14GB memory in a single fragment takes ~150 minutes Key: DRILL-5528 URL: https://issues.apache.org/jira/browse/DRILL-5528 Project: Apache Drill Issue Type: Bug Components: Execution - Relational Operators Affects Versions: 1.10.0 Reporter: Rahul Challapalli Assignee: Paul Rogers Configuration : {code} git.commit.id.abbrev=1e0a14c DRILL_MAX_DIRECT_MEMORY="32G" DRILL_MAX_HEAP="4G" {code} Based on the runtime of the below query, I suspect there is a performance bottleneck somewhere {code} [root@qa-node190 external-sort]# /opt/drill/bin/sqlline -u jdbc:drill:zk=10.10.100.190:5181 apache drill 1.11.0-SNAPSHOT "start your sql engine" 0: jdbc:drill:zk=10.10.100.190:5181> ALTER SESSION SET `exec.sort.disable_managed` = false; +-------+-------------------------------------+ | ok | summary | +-------+-------------------------------------+ | true | exec.sort.disable_managed updated. | +-------+-------------------------------------+ 1 row selected (0.975 seconds) 0: jdbc:drill:zk=10.10.100.190:5181> alter session set `planner.width.max_per_node` = 1; +-------+--------------------------------------+ | ok | summary | +-------+--------------------------------------+ | true | planner.width.max_per_node updated. | +-------+--------------------------------------+ 1 row selected (0.371 seconds) 0: jdbc:drill:zk=10.10.100.190:5181> alter session set `planner.disable_exchanges` = true; +-------+-------------------------------------+ | ok | summary | +-------+-------------------------------------+ | true | planner.disable_exchanges updated. | +-------+-------------------------------------+ 1 row selected (0.292 seconds) 0: jdbc:drill:zk=10.10.100.190:5181> alter session set `planner.memory.max_query_memory_per_node` = 14106127360; +-------+----------------------------------------------------+ | ok | summary | +-------+----------------------------------------------------+ | true | planner.memory.max_query_memory_per_node updated. | +-------+----------------------------------------------------+ 1 row selected (0.316 seconds) 0: jdbc:drill:zk=10.10.100.190:5181> select count(*) from (select * from dfs.`/drill/testdata/resource-manager/250wide.tbl` order by columns[0])d where d.columns[0] = 'ljdfhwuehnoiueyf'; +---------+ | EXPR$0 | +---------+ | 0 | +---------+ 1 row selected (8530.719 seconds) {code} I attached the logs and profile files. The data is too large to attach to a jira. Reach out to me if you need any more information -- This message was sent by Atlassian JIRA (v6.3.15#6346)