Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 96918 invoked from network); 21 Aug 2008 16:57:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2008 16:57:06 -0000 Received: (qmail 16309 invoked by uid 500); 21 Aug 2008 16:57:04 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 15717 invoked by uid 500); 21 Aug 2008 16:57:03 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 15706 invoked by uid 99); 21 Aug 2008 16:57:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 09:57:03 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 16:56:15 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6DEEF234C1C2 for ; Thu, 21 Aug 2008 09:56:44 -0700 (PDT) Message-ID: <1772311046.1219337804449.JavaMail.jira@brutus> Date: Thu, 21 Aug 2008 09:56:44 -0700 (PDT) From: "Hairong Kuang (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-2330) Preallocate transaction log to improve namenode transaction logging performance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12624422#action_12624422 ] Hairong Kuang commented on HADOOP-2330: --------------------------------------- Another idea is to set the INVALID_OP code to be 0 and the ADD opcode to be a positive number. Then we do not need to move the file position backwards. > Preallocate transaction log to improve namenode transaction logging performance > ------------------------------------------------------------------------------- > > Key: HADOOP-2330 > URL: https://issues.apache.org/jira/browse/HADOOP-2330 > Project: Hadoop Core > Issue Type: Improvement > Components: dfs > Reporter: dhruba borthakur > Assignee: dhruba borthakur > Attachments: preallocateTransactionLog.patch, preallocateTransactionLog.patch, preallocateTransactionLog2.patch, preallocateTransactionLog3.patch > > > In the current implementation, the transaction log is opened in "append" mode and every new transaction is written to the end of the log. This means that new blocks get allocated to the edits file frequently. > It is worth measuring the performance improvement when big chunks of the transaction log are allocated up front. Adding new transactions do not cause frequent block allocations for the edits log. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.