Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 17CC7C4CA for ; Wed, 12 Nov 2014 18:50:22 +0000 (UTC) Received: (qmail 71566 invoked by uid 500); 12 Nov 2014 18:50:14 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 71434 invoked by uid 500); 12 Nov 2014 18:50:14 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 71423 invoked by uid 99); 12 Nov 2014 18:50:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2014 18:50:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bhuffman@etinternational.com designates 65.222.140.81 as permitted sender) Received: from [65.222.140.81] (HELO mail02.etinternational.com) (65.222.140.81) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2014 18:49:49 +0000 X-Footer: ZXRpbnRlcm5hdGlvbmFsLmNvbQ== Received: from polaris.xmen.eti ([192.168.15.21]) (authenticated user bhuffman@etinternational.com) by mail02.etinternational.com (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits)) for user@hadoop.apache.org; Wed, 12 Nov 2014 13:47:41 -0500 Message-ID: <5463AB4C.8010703@etinternational.com> Date: Wed, 12 Nov 2014 13:47:40 -0500 From: "Brian C. Huffman" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: user@hadoop.apache.org Subject: Re: ext4 on a hadoop cluster datanodes References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------040305060108020301050604" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------040305060108020301050604 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Would this set of ext4 parameters be ok for a 500GB HDFS data drive? Thanks, Brian On 10/06/2014 06:09 PM, Travis wrote: > For filesystem creation, we use the following with mkfs.ext4 > > mkfs.ext4 -T largefile -m 1 -O dir_index,extent,sparse_super -L > $HDFS_LABEL /dev/${DEV}1 > > By default, mkfs creates way too many inodes, so we tune it a bit with > the "largefile" option, which modifies the inode_ratio. This gives us > ~2 million usable inodes on a 2TB filesystem. > > As well, by default, mkfs sets the block reserve to 5%, which wastes a > fair amount of space, since this space is only accessible to the root > user. We tune this down to 1% at mkfs time, but you can use tune2fs > at runtime to change it. > > I don't know that I would use writeback. This mode is problematic in > the event of a crash because it can allow old data to exist on the FS, > but with new metadata. I consider this corruption. Unless you know > your environment to be super stable (meaning no OS or hardware-induced > crashes) AND you have stable, UPS-backed power, I would steer clear of > this. > > If you're looking for the utmost in filesystem performance, you're > better off looking at the controller card you're using. Right now, > we're using LSI9207-8i and seeing an aggregate 1.6-1.8GBytes/sec > throughput across 12 drives in JBOD. Our older LSI-based cards can > only sustain maybe a quarter of that in the same disk configuration. > > Travis > > On Mon, Oct 6, 2014 at 4:46 PM, Colin Kincaid Williams > wrote: > > Hi, > > I'm trying to figure out what are more ideal settings for using > ext4 on hadoop cluster datanodes. From the hadoop site its > recommended nodelalloc option is chosen in the fstab. Is that > still a preferred option? > > I read elsewhere to disable the ext4 journal, and use data=writeback. > > http://fenidik.blogspot.com/2010/03/ext4-disable-journal.html > > Finally, in some slides i read to use > dir_index,sparse_super,extent when creating the filesystem, and > mount noatime and nodiratime > > http://www.slideshare.net/leonsp/best-practices-for-deploying-hadoop-biginsights-in-the-cloud > > > > > > > > > -- > Travis Campbell > travis@ghostar.org --------------040305060108020301050604 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Would this set of ext4 parameters be ok for a 500GB HDFS data drive?

Thanks,
Brian

On 10/06/2014 06:09 PM, Travis wrote:
For filesystem creation, we use the following with mkfs.ext4

mkfs.ext4 -T largefile -m 1 -O dir_index,extent,sparse_super -L $HDFS_LABEL /dev/${DEV}1

By default, mkfs creates way too many inodes, so we tune it a bit with the "largefile" option, which modifies the inode_ratio.  This gives us ~2 million usable inodes on a 2TB filesystem.  

As well, by default, mkfs sets the block reserve to 5%, which wastes a fair amount of space, since this space is only accessible to the root user.  We tune this down to 1% at mkfs time, but you can use tune2fs at runtime to change it.

I don't know that I would use writeback. This mode is problematic in the event of a crash because it can allow old data to exist on the FS, but with new metadata.  I consider this corruption.  Unless you know your environment to be super stable (meaning no OS or hardware-induced crashes) AND you have stable, UPS-backed power, I would steer clear of this.

If you're looking for the utmost in filesystem performance, you're better off looking at the controller card you're using.  Right now, we're using LSI9207-8i and seeing an aggregate 1.6-1.8GBytes/sec throughput across 12 drives in JBOD.  Our older LSI-based cards can only sustain maybe a quarter of that in the same disk configuration.

Travis

On Mon, Oct 6, 2014 at 4:46 PM, Colin Kincaid Williams <discord@uw.edu> wrote:
Hi,

I'm trying to figure out what are more ideal settings for using ext4 on hadoop cluster datanodes. From the hadoop site its recommended nodelalloc option is chosen in the fstab. Is that still a preferred option?

I read elsewhere to disable the ext4 journal, and use data=writeback.


Finally, in some slides i read to use dir_index,sparse_super,extent when creating the filesystem, and mount noatime and nodiratime









--
Travis Campbell
travis@ghostar.org

--------------040305060108020301050604--