Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We're currently using EC2 with 16 EBS volumes in RAID10 configuration for our MySQL data. I know some people don't recommend to put EBS volumes to RAID but that's not what I'm concerned about at the moment. Current format is ext3, but we're experimenting with moving to xfs, given many reports that it is faster. However, we're actually experiencing a performance degradation when the partition was converted to xfs - a benchmark run with inserts, updates, selects and deletes was more than 10 seconds slower using xfs.

Any idea what could be the problem? Below is the fstab entry (really only changed ext3 to xfs). Database tables are innodb and we are using innodb_file_per_table.

/dev/mapper/vg_data-lv_data /data xfs noatime 0 0

Thanks.

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

The XFS filesystem always requires tuning. Running a default mkfs and mount will result in so-so performance. You'll want to set your allocation group number at filesystem creation time. Disabling write barriers may make sense. Also pay close attention to your filesystem usage and mount options on the specific kernel series you're using. Some interesting defaults were recently backported.

Also check your I/O elevator settings. Take a look at some of the recommendations at: CentOS 6 doing lots more IO than CentOS 5

share|improve this answer
    
"XFS filesystem always requires tuning" vs. xfs.org/index.php/… –  poige Oct 15 '12 at 11:52
    
What about it? Mount options are important. Log size and account make a difference under real workloads as well. Now that there are other changes in the filesystem that have surfaced in Linux distributions, it makes sense to tweak. See: serverfault.com/questions/406069/… –  ewwhite Oct 15 '12 at 12:43
    
The text says "use the defaults". The link you gave showed that added option now is also default. Is there still a controversy regarding it? –  poige Oct 15 '12 at 12:55
add comment

XFS was slow on meta-data operations till 2.6.39, IIRC. Traditionally for this site you didn't mention what version of your server's kernel was. So we're only to guess now.

share|improve this answer
    
That figures.. I'm just at 2.6.32-318. Can you point to any article/documentation I can read up more on this? Thanks. –  Johann Tagle Jun 11 '12 at 13:40
    
@JohannTagle, xfs.org/index.php/… + lwn.net/Articles/438671 + … well, google for it –  poige Jun 11 '12 at 14:09
add comment

An acquaintance working for Percona (www.percona.com) suggested using the nobarrier mount option. It sped things up a lot.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.