Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 033F4CBB0 for ; Fri, 17 Aug 2012 19:59:41 +0000 (UTC) Received: (qmail 71720 invoked by uid 500); 17 Aug 2012 19:59:39 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 71609 invoked by uid 500); 17 Aug 2012 19:59:39 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 71419 invoked by uid 99); 17 Aug 2012 19:59:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2012 19:59:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 4B7532C5BF6 for ; Fri, 17 Aug 2012 19:59:38 +0000 (UTC) Date: Sat, 18 Aug 2012 06:59:38 +1100 (NCT) From: "Daryn Sharp (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <2066663838.25028.1345233578309.JavaMail.jiratomcat@arcas> In-Reply-To: <569485428.11789.1318091669729.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-2421) Improve the concurrency of SerialNumberMap in NameNode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daryn Sharp updated HDFS-2421: ------------------------------ Fix Version/s: 0.23.3 Merged to branch 23. > Improve the concurrency of SerialNumberMap in NameNode > ------------------------------------------------------- > > Key: HDFS-2421 > URL: https://issues.apache.org/jira/browse/HDFS-2421 > Project: Hadoop HDFS > Issue Type: Improvement > Components: name-node > Reporter: Hairong Kuang > Assignee: Jing Zhao > Fix For: 0.23.3, 2.2.0-alpha > > Attachments: HDFS-2421.patch, performance_100000_op.png, performance_10000_op.png, performance_SerialNumberManager.png, TestSerialNumberManager.java > > > After enabled permission checking in our HDFS test cluster, our benchmark observed a significant reduced concurrency in NameNode. Investigation showed that most threads were blocked at acquiring the lock of org.apache.hadoop.hdfs.server.namenode.SerialNumberManager$SerialNumberMap. We used concurrentHashMap to replace Hashmap + synchronized methods, which greatly improved the situation. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira