All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Chinner <dgc@sgi.com>
To: Johan Andersson <johan@e-626.net>
Cc: xfs@oss.sgi.com
Subject: Re: XFS performance problems on Linux x86_64
Date: Wed, 28 Nov 2007 09:05:36 +1100	[thread overview]
Message-ID: <20071127220536.GL119954183@sgi.com> (raw)
In-Reply-To: <474C8A05.3020604@e-626.net>

On Tue, Nov 27, 2007 at 10:20:05PM +0100, Johan Andersson wrote:
> Hi!
> 
> I am using Gentoo Linux on XFS root filesystem on a number of machines, 
> where some are P4 based i686, and some new are Intel Core 2 Duo based 
> x86_64 based.
> When the new x86_64 based machines were put into service, we noticed 
> that they are extremely slow on file io. I have now created two test 
> partitions, each 5G in size, on the same disk. One is xfs and one is 
> ext3, both filesystems created with default options. My simple test is 
> to rsync our local portage tree to the 5G partition:
> =====================================================================
> tmpc-masv2 xfs # time rsync -r --delete rsync://devsrv/portage portage
> 
> real    5m55.037s
> user    0m1.291s
> sys     0m10.352s
> 
> ======================================================================
> tmpc-masv2 ext3 # time rsync -r --delete rsync://devsrv/portage portage
> 
> real    0m28.943s
> user    0m1.095s
> sys     0m5.384s
> 
> I have repeated this a number of times to make sure caching on the 
> server does not interfere, with about the same results every time.
> 
> Any idea why XFS appears to be 12 times slower than ext3 on the 64-bit 
> machine?

# mkfs.xfs -f -l lazy-count=1,version=2,size=128m -i attr=2 -d agcount=4 <dev>
# mount -o logbsize=256k <dev> <mtpt>

And if you don't care about filsystem corruption on power loss:

# mount -o logbsize=256k,nobarrier <dev> <mtpt>

Those mkfs values (except for log size) will be hte defaults in the next
release of xfsprogs.

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group

  reply	other threads:[~2007-11-27 22:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-27 21:20 XFS performance problems on Linux x86_64 Johan Andersson
2007-11-27 22:05 ` David Chinner [this message]
2007-11-27 23:13   ` Bernd Schubert
2007-11-30  4:58     ` David Chinner
2007-11-30  7:17       ` Tóth Csaba
2007-11-30  7:54         ` David Chinner
2007-11-30  8:17           ` Tóth Csaba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071127220536.GL119954183@sgi.com \
    --to=dgc@sgi.com \
    --cc=johan@e-626.net \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.