Re: picking a filesystem

From: Shaun Thomas <sthomas(at)peak6(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Greg Smith <greg(at)2ndquadrant(dot)com>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: picking a filesystem
Date: 2011-05-31 17:09:23
Message-ID: 4DE520C3.4000002@peak6.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 05/31/2011 10:35 AM, Robert Haas wrote:

> So if you're running a RHEL5.4 or RHEL5.5 system, are you basically
> stuck with ext3? I'm not sure if I'm remembering correctly, but ISTM
> that you've been uncomfortable with BOTH ext4 and XFS prior to RHEL6;
> but OK with both beginning with RHEL6.

We haven't had any problems (yet) running XFS on CentOS 5.5. Sure, it
doesn't have a lot of the recent kernel advances that made it faster,
but it out-performed our EXT3 filesystem in some cases by 40%.

> Also, any tips on mount options for XFS/ext4/ext3?

We got the best performance by increasing the agcount during formatting.
But we also used some of the advanced logging options. I set the size to
128m, enabled lazy-count to reduce logging overhead, and set version to
2 so we could use a bigger log buffer in the mount options. So:

mkfs.xfs -d agcount=256 -l size=128m,lazy-count=1,version=2

For mounting, aside from the usual noatime and nodiratime, we set the
allocsize to 256m to reduce fragmentation, maxed out the logbufs at 8,
and the logbsize to 256k to improve file deletion performance, and set
the attr2 option to better handle inodes. So:

mount -o allocsize=256m,logbufs=8,noatime,nodiratime,attr2,logbsize=256k

Maybe more recent XFS kernels have other options we're not aware of, but
we've had good luck with these so far.

--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604
312-676-8870
sthomas(at)peak6(dot)com

______________________________________________

See http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Samuel Gendler 2011-05-31 17:58:45 Re: picking a filesystem
Previous Message Robert Haas 2011-05-31 15:35:59 picking a filesystem