LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-23-2008, 09:10 PM   #1
darlingm
LQ Newbie
 
Registered: Mar 2008
Distribution: CentOS 5.1
Posts: 3

Rep: Reputation: 0
XFS drops create/delete files to 6.6% of EXT3 (sw raid) and to 0.6% (hw raid)


I am preparing a new server, and benchmarking EXT3 against XFS, both using software RAID and hardware RAID using a 3ware 9650SE-4LPML.

Using bonnie++ as a benchmark, I am seeing significant performance boosts in my block sequential reads and writes moving from EXT3 to XFS. I am aware that XFS won't create and delete files as quickly as EXT3, however I am seeing drops from 29455/second to 1957/second using software RAID, and from 32524/second to 189/second using hardware RAID. I'm not sure if when using software raid, if creating and deleting files should drop to 6.6% of EXT3. But, what I'm pretty sure of, is when using hardware raid, that creating and deleting files shouldn't drop to 0.6% of EXT3.

When using the 3ware card, mkfs.xfs defaulted to "data sunit=0 swidth=0 blks", which made me think that might be the problem, so I tried "-d sunit=128,swidth=384" with no effect. My 3ware card is using 64k stripes, so I calculated 64k stripes / 512 bytes = sunit 128, and multiplied by 3 drives (3 usable in a 4 drive raid 5) to get swidth 384. This is my first time calculating these values, so I'm not sure if I did this right. Unfortunately, these settings had no performance change.

If anyone could give me some pointers, I would much appreciate it!

Version 1.03 ------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
SW RAID 5 EXT3___8G 54852 96 116904 37 52572 15 63851 96 189073 25 352.8 1
SW RAID 5 XFS____8G 61281 97 146610 32 48509 17 57977 89 180168 26 479.4 0
HW RAID 5 EXT3___8G 53483 93 108314 31 57674 12 62134 91 227582 19 329.9 0
HW RAID 5 XFS____8G 62518 99 211622 33 78473 12 68182 99 214218 15 484.6 0

------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
SW RAID 5 EXT3___16 29455 89 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
SW RAID 5 XFS____16 _1597 11 +++++ +++ _1348 __7 _1398 _10 +++++ +++ __954 __5
HW RAID 5 EXT3___16 32524 95 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
HW RAID 5 XFS____16 __189 _1 +++++ +++ __172 __0 __186 __1 +++++ +++ __122 __0

To create the software RAID 5, I am running "/sbin/mdadm --create /dev/md0 --verbose --level=raid5 --raid-devices=4 /dev/sd{b,c,d,e}".

To create the hardware RAID 5, I am using a 3ware 9650SE-4LMPL. I am using default values (64k stripe), except turning write cache on and setting StorSave to balance.

To create an ext3 filesystem, I am running "/sbin/mke2fs -j /dev/[md0/sdb1]".

To create a xfs filesystem, I am running "/sbin/mkfs.xfs -i size=512 /dev/[md0/sdb1]". Here's the output I get:

meta-data=/dev/sdb1______________isize=512____agcount=32, agsize=11443802 blks
_________=_______________________sectsz=512___attr=0
data_____=_______________________bsize=4096___blocks=366201664, imaxpct=25
_________=_______________________sunit=0______swidth=0 blks, unwritten=1
naming___=version 2______________bsize=4096
log______=internal log___________bsize=4096___blocks=32768, version=1
_________=_______________________sectsz=512___sunit=0 blks, lazy-count=0
realtime_=none___________________extsz=4096___blocks=0, rtextents=0




I also tried "/sbin/mkfs.xfs -i size=512 -d sunit=128,swidth=384 /dev/sdb1" and got the same results.

I also tried "/sbin/mkfs.xfs -d sunit=128,swidth=384 -l sunit=128 /dev/sdb1" and got the same results.

I attempted creating a larger logfile using "/sbin/mkfs.xfs -l size=256m /dev/sdb1", however I was told the maximum size was 128MB.

Last edited by darlingm; 04-23-2008 at 09:12 PM.
 
Old 04-23-2008, 09:23 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Have you tried mounting with logbufs=8 option after increasing logfile size?
 
Old 04-23-2008, 10:08 PM   #3
darlingm
LQ Newbie
 
Registered: Mar 2008
Distribution: CentOS 5.1
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jay73 View Post
Have you tried mounting with logbufs=8 option after increasing logfile size?
I just tried mounting with "-o logbufs=8,noatime", and got the same results.

I'm not able to actually increase logfile size, that I know of, because xfs is defaulting to a 128MB log. When I try to use a bigger logfile size, it tells me the max is 128MB.
 
Old 04-24-2008, 10:39 AM   #4
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Some links that may help..

http://hep.kbfi.ee/index.php/IT/KernelTuning

http://webcms.ba.infn.it/cms-softwar...ingDiskServers

HTH

Mad.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkfs.xfs parameters for raid array hvidgaard Linux - General 2 02-18-2007 03:51 PM
Raid 5 XFS FC2 recover disk failure mattma Linux - Hardware 1 11-11-2006 06:12 PM
XFS + Raid and how to test SATA disks Krugger Linux - Software 0 05-10-2006 04:55 PM
help with setting up xfs on raid(0) array Dr Ecology Linux - General 0 06-16-2003 04:43 PM
setting up xfs on raid(0) array Dr Ecology Linux - Newbie 0 06-16-2003 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration