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 DF678200A01 for ; Tue, 3 May 2016 15:35:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DEAC01609A9; Tue, 3 May 2016 15:35:14 +0200 (CEST) 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 4A8311609F5 for ; Tue, 3 May 2016 15:35:14 +0200 (CEST) Received: (qmail 18252 invoked by uid 500); 3 May 2016 13:35:13 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 18021 invoked by uid 99); 3 May 2016 13:35:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2016 13:35:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 075DD2C1F6A for ; Tue, 3 May 2016 13:35:13 +0000 (UTC) Date: Tue, 3 May 2016 13:35:13 +0000 (UTC) From: "Rajesh Balamohan (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-10694) Remove synchronized input streams from Writable deserialization MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 03 May 2016 13:35:15 -0000 [ https://issues.apache.org/jira/browse/HADOOP-10694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rajesh Balamohan updated HADOOP-10694: -------------------------------------- Status: Patch Available (was: Open) > Remove synchronized input streams from Writable deserialization > --------------------------------------------------------------- > > Key: HADOOP-10694 > URL: https://issues.apache.org/jira/browse/HADOOP-10694 > Project: Hadoop Common > Issue Type: Bug > Components: io > Reporter: Gopal V > Assignee: Gopal V > Labels: BB2015-05-TBR > Attachments: HADOOP-10694.1.patch, HADOOP-10694.2.patch, writable-read-sync.png > > > Writable deserialization is slowing down due to a synchronized block within DataInputBuffer$Buffer. > ByteArrayInputStream::read() is synchronized and this shows up as a slow uncontested lock. > Hive ships with its own faster thread-unsafe version with hive.common.io.NonSyncByteArrayInputStream. > !writable-read-sync.png! > The DataInputBuffer and Writable deserialization should not require a lock per readInt()/read(). -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org