* XFS perfomance degradation on growing filesystem size
@ 2008-07-04 6:41 Jens Beyer
2008-07-04 7:59 ` Dave Chinner
0 siblings, 1 reply; 4+ messages in thread
From: Jens Beyer @ 2008-07-04 6:41 UTC (permalink / raw)
To: xfs
Hi,
I have encountered a strange performance problem during some
hardware evaluation tests:
I am running a benchmark to measure especially random read/write
I/O on an raid device and found that (under some circumstances)
the performance of Random Read I/O is inverse proportional to the
size of the tested XFS filesystem.
In numbers this means that on a 100GB partition I get a throughput
of ~25 MB/s and on the same hardware at 1TB FS size only 18 MB/s
(and at 2+ TB like 14 MB/s) (absolute values depend on options,
kernel version and are for random read i/o at 8k test block size).
Surprisingly this degradation does not affect random write or
seq read/write (at least not by this factor).
Even more surprising using an ext3 filesystem I always get ~25 MB/s.
My test setups included:
- kernel vanilla 2.6.24, 2.6.25.8, 2.6.24-ubuntu_8.04, 2.6.20, 32/64bit
- xfsprogs v2.9.8/7
- benchmarks:
- iozone: iozone -i 0 -i 2 -r 8k -s 1g -t 32 -+p 100
- tiobench: tiobench.pl --size 32000 --random 100000 --block 8192 \
--dir /mnt --threads 32 --numruns 1
(Bench is for 8k blocksize, 32 Threads with enough data to
be beyond simple ram cache).
- The hardware itself where recent HP dual/quadcores with 4GB RAM
with external SAS Raids (MSA60, MSA70) and 15k SAS disks (different
types).
I tried most options like but not limited to: agcount, logbufs,
nobarrier, blockdev --setra, (...), but none had an significant impact.
All benchmarks where run using deadline i/o scheduler
Does anyone has a clue on what is going on - or even can reproduce
this? Or, is this the default behavior? Could this be an hardware
problem ?
Thanks for any comment,
Jens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: XFS perfomance degradation on growing filesystem size
2008-07-04 6:41 XFS perfomance degradation on growing filesystem size Jens Beyer
@ 2008-07-04 7:59 ` Dave Chinner
2008-07-07 8:04 ` Jens Beyer
0 siblings, 1 reply; 4+ messages in thread
From: Dave Chinner @ 2008-07-04 7:59 UTC (permalink / raw)
To: Jens Beyer; +Cc: xfs
On Fri, Jul 04, 2008 at 08:41:26AM +0200, Jens Beyer wrote:
>
> Hi,
>
> I have encountered a strange performance problem during some
> hardware evaluation tests:
>
> I am running a benchmark to measure especially random read/write
> I/O on an raid device and found that (under some circumstances)
> the performance of Random Read I/O is inverse proportional to the
> size of the tested XFS filesystem.
>
> In numbers this means that on a 100GB partition I get a throughput
> of ~25 MB/s and on the same hardware at 1TB FS size only 18 MB/s
> (and at 2+ TB like 14 MB/s) (absolute values depend on options,
> kernel version and are for random read i/o at 8k test block size).
Of course - as the filesystem size grows, so does the amount of
each disk in use so the average seek distance increases and hence
read I/Os take longer.
Cheers,
Dave.
--
Dave Chinner
dchinner@agami.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: XFS perfomance degradation on growing filesystem size
2008-07-04 7:59 ` Dave Chinner
@ 2008-07-07 8:04 ` Jens Beyer
2008-07-07 22:06 ` Dave Chinner
0 siblings, 1 reply; 4+ messages in thread
From: Jens Beyer @ 2008-07-07 8:04 UTC (permalink / raw)
To: xfs
On Fri, Jul 04, 2008 at 12:59:41AM -0700, Dave Chinner wrote:
> On Fri, Jul 04, 2008 at 08:41:26AM +0200, Jens Beyer wrote:
> >
> > I have encountered a strange performance problem during some
> > hardware evaluation tests:
> >
> > I am running a benchmark to measure especially random read/write
> > I/O on an raid device and found that (under some circumstances)
> > the performance of Random Read I/O is inverse proportional to the
> > size of the tested XFS filesystem.
> >
> > In numbers this means that on a 100GB partition I get a throughput
> > of ~25 MB/s and on the same hardware at 1TB FS size only 18 MB/s
> > (and at 2+ TB like 14 MB/s) (absolute values depend on options,
> > kernel version and are for random read i/o at 8k test block size).
>
> Of course - as the filesystem size grows, so does the amount of
> each disk in use so the average seek distance increases and hence
> read I/Os take longer.
>
But then - why does the rate of ext3 does not decrease and stays at the
higher value?
Thanks,
Jens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: XFS perfomance degradation on growing filesystem size
2008-07-07 8:04 ` Jens Beyer
@ 2008-07-07 22:06 ` Dave Chinner
0 siblings, 0 replies; 4+ messages in thread
From: Dave Chinner @ 2008-07-07 22:06 UTC (permalink / raw)
To: Jens Beyer; +Cc: xfs
On Mon, Jul 07, 2008 at 10:04:09AM +0200, Jens Beyer wrote:
> On Fri, Jul 04, 2008 at 12:59:41AM -0700, Dave Chinner wrote:
> > On Fri, Jul 04, 2008 at 08:41:26AM +0200, Jens Beyer wrote:
> > >
> > > I have encountered a strange performance problem during some
> > > hardware evaluation tests:
> > >
> > > I am running a benchmark to measure especially random read/write
> > > I/O on an raid device and found that (under some circumstances)
> > > the performance of Random Read I/O is inverse proportional to the
> > > size of the tested XFS filesystem.
> > >
> > > In numbers this means that on a 100GB partition I get a throughput
> > > of ~25 MB/s and on the same hardware at 1TB FS size only 18 MB/s
> > > (and at 2+ TB like 14 MB/s) (absolute values depend on options,
> > > kernel version and are for random read i/o at 8k test block size).
> >
> > Of course - as the filesystem size grows, so does the amount of
> > each disk in use so the average seek distance increases and hence
> > read I/Os take longer.
>
> But then - why does the rate of ext3 does not decrease and stays at the
> higher value?
Because XFS spreads the data and metadata across the entire
filesystem, not just a small portion. It's one of the reasons XFS
can make decent use of lots of disks effectively. Grab seekwatcher
traces from your workload for the different filesystems and you'll
see what I mean....
Cheers,,
Dave.
--
Dave Chinner
david@fromorbit.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-07-07 22:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-04 6:41 XFS perfomance degradation on growing filesystem size Jens Beyer
2008-07-04 7:59 ` Dave Chinner
2008-07-07 8:04 ` Jens Beyer
2008-07-07 22:06 ` Dave Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox