From issues-return-184479-archive-asf-public=cust-asf.ponee.io@spark.apache.org Fri Feb 9 05:00:10 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id CDAD518064F for ; Fri, 9 Feb 2018 05:00:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BDA96160C5D; Fri, 9 Feb 2018 04:00:10 +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 0FE85160C4A for ; Fri, 9 Feb 2018 05:00:09 +0100 (CET) Received: (qmail 14564 invoked by uid 500); 9 Feb 2018 04:00:09 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 14555 invoked by uid 99); 9 Feb 2018 04:00:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Feb 2018 04:00:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 89E1B1802E6 for ; Fri, 9 Feb 2018 04:00:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id wV28xyU_05fq for ; Fri, 9 Feb 2018 04:00:07 +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 87B7B5F3BA for ; Fri, 9 Feb 2018 04:00:07 +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 44FB9E01D8 for ; Fri, 9 Feb 2018 04:00:06 +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 461FD24102 for ; Fri, 9 Feb 2018 04:00:05 +0000 (UTC) Date: Fri, 9 Feb 2018 04:00:05 +0000 (UTC) From: "Apache Spark (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-23366) Improve hot reading path in ReadAheadInputStream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-23366?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163= 57889#comment-16357889 ]=20 Apache Spark commented on SPARK-23366: -------------------------------------- User 'juliuszsompolski' has created a pull request for this issue: https://github.com/apache/spark/pull/20555 > Improve hot reading path in ReadAheadInputStream > ------------------------------------------------ > > Key: SPARK-23366 > URL: https://issues.apache.org/jira/browse/SPARK-23366 > Project: Spark > Issue Type: Improvement > Components: Spark Core > Affects Versions: 2.3.0 > Reporter: Juliusz Sompolski > Priority: Major > > ReadAheadInputStream was introduced in=C2=A0[apache/spark#18317|https://g= ithub.com/apache/spark/pull/18317]=C2=A0to optimize reading spill files fro= m disk. > However, investigating flamegraphs of profiles from investigating some re= gressed workloads after switch to Spark 2.3, it seems that the hot path of = reading small amounts of data (like readInt) is inefficient - it involves t= aking locks, and multiple checks. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org