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 AF2F7200BC8 for ; Wed, 23 Nov 2016 23:23:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id ADB06160B0A; Wed, 23 Nov 2016 22:23:59 +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 308F6160AEC for ; Wed, 23 Nov 2016 23:23:59 +0100 (CET) Received: (qmail 22401 invoked by uid 500); 23 Nov 2016 22:23:58 -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 22383 invoked by uid 99); 23 Nov 2016 22:23:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2016 22:23:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 53DE12C03DB for ; Wed, 23 Nov 2016 22:23:58 +0000 (UTC) Date: Wed, 23 Nov 2016 22:23:58 +0000 (UTC) From: "Paul Rogers (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (DRILL-5025) ExternalSortBatch provides weak control over spill file size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 23 Nov 2016 22:23:59 -0000 [ https://issues.apache.org/jira/browse/DRILL-5025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Rogers reopened DRILL-5025: -------------------------------- Reopening - issue applies just to "first generation" spill files. > ExternalSortBatch provides weak control over spill file size > ------------------------------------------------------------ > > Key: DRILL-5025 > URL: https://issues.apache.org/jira/browse/DRILL-5025 > Project: Apache Drill > Issue Type: Improvement > Affects Versions: 1.8.0 > Reporter: Paul Rogers > Assignee: Paul Rogers > Priority: Minor > > The ExternalSortBatch (ESB) operator sorts records while spilling to disk to control memory use. The size of the spill file is not easy to control. It is a function of the accumulated batches size (half of the accumulated total), which is determined by either the memory budget or the {{drill.exec.sort.external.group.size}} parameter. (But, even with the parameter, the actual file size is still half the accumulated batches.) > The proposed solution is to provide an explicit parameter that sets the maximum spill file size: {{drill.exec.sort.external.spill.size}}. If the ESB needs to spill more than this amount of data, ESB should split the spill into multiple files. > The spill.size should be in bytes (or MB). (A size in records makes the file size data-dependent, which would not be helpful.) -- This message was sent by Atlassian JIRA (v6.3.4#6332)