public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Badari Pulavarty <pbadari@us.ibm.com>
Cc: sct@redhat.com, ext4 <linux-ext4@vger.kernel.org>
Subject: Re: ext3 sequential read performance (~20%) degrade
Date: Thu, 14 Sep 2006 17:03:08 -0700	[thread overview]
Message-ID: <20060914170308.9595141c.akpm@osdl.org> (raw)
In-Reply-To: <1158276972.24991.10.camel@dyn9047017100.beaverton.ibm.com>

On Thu, 14 Sep 2006 16:36:12 -0700
Badari Pulavarty <pbadari@us.ibm.com> wrote:

> Hi Andrew,
> 
> I have been working on tracking down ~20% performance degrade for
> sequential read performance for ext3. 

oop.  I'd kinda prefer that we discover things like this before the patch
gets into mainline.

> Finally narrowed it down to get_blocks() support. If I force
> ext3_get_blocks_handle() to always return 1 block - I get better
> IO rate. I did all the usual stuff, tracked down requests, traced
> blocksizes, looked at readahead code, looked at mpage_readpages()
> etc.. I still can't figure out how to explain the degrade..
> 
> Any suggestions on how to track it down.

Learn to driver Jens's blktrace stuff, find out why the IO scheduling went
bad.

Number one suspicion: the buffer_boundary() stuff isn't working.

> Thanks,
> Badari
> 
> # cat iotest
> mount /dev/sdb2 /mnt/tmp
> time dd if=/mnt/tmp/testfile of=/dev/null bs=4k count=1048576
> umount /mnt/tmp

Try using /proc/sys/vm/drop_caches, or ext3-tools's fadvise.c...

> 2.6.18-rc6: (multiblock):
> 
> # ./iotest
> 1048576+0 records in
> 1048576+0 records out
> 4294967296 bytes (4.3 GB) copied, 75.2654 seconds, 57.1 MB/s
> 
> real    1m15.282s
> user    0m0.248s
> sys     0m4.292s
> 
> 2.6.18-rc6 (force single block in ext3_get_blocks_handle():
> 
> # ./iotest
> ./iotest
> 1048576+0 records in
> 1048576+0 records out
> 4294967296 bytes (4.3 GB) copied, 62.9472 seconds, 68.2 MB/s
> 
> real    1m2.976s
> user    0m0.268s
> sys     0m4.280s

ow.

  reply	other threads:[~2006-09-15  0:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-14 23:36 ext3 sequential read performance (~20%) degrade Badari Pulavarty
2006-09-15  0:03 ` Andrew Morton [this message]
2006-09-15  5:50   ` Suparna Bhattacharya
2006-09-15 16:01     ` Badari Pulavarty

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=20060914170308.9595141c.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=pbadari@us.ibm.com \
    --cc=sct@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox