From: Andrew Morton <akpm@zip.com.au>
To: elim <elim@warthog.ern-e.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: slow scsi disk perf (sym53c875 and IBM drives)
Date: Sun, 06 Jan 2002 13:36:17 -0800 [thread overview]
Message-ID: <3C38C351.1FCA434A@zip.com.au> (raw)
In-Reply-To: <Pine.LNX.4.33L2.0201061159330.23448-100000@warthog.ern-e.org>
elim wrote:
>
> Hiya,
>
> I've been having relatively poor scsi disk performance for as long as I
> can remember now. I've experienced this with ~2.2.12 all the way up to
> 2.4.17.
>
> I'm not much of a scsi buff but I've read some suggestions such as proper
> termination, queue depths, etc but nothing seems to have helped. My
> understanding is that I should be getting better performance than I'm
> getting with these drives.
>
> Any suggestions would be appreciated and if this is not the right forum to
> ask.. please direct me to the proper place.
>
> Thanks and regards.
>
> PS: kindly cc me on replies.
>
> hdparm output:
>
> /dev/sda:
> Timing buffered disk reads: 64 MB in 10.94 seconds = 5.85 MB/sec
I've noticed that the blockdev-in-pagecache patch in 2.4.10-pre10 somehow
screwed up performance with 1k blocksize on some SCSI devices. I spent a couple
of hours poking at it and couldn't find out why. I suspect that the
SCSI-layer request merging has broken. I intend to revisit this later.
Please do this test for me:
1: Find a SCSI partition which has a 4k blocksize ext2/ext3 filesystem
on it which has never been mounted. Let's pretend that's /dev/sda5
2: Run hdparm -t /dev/sda5 If /dev/sda5 has not been mounted since
boot, this will use 1k blocksizes.
3: Now mount the filesystem: mount /dev/sda5 /mnt/wherever.
4: umount /devc/sda5
5: hdparm -t /dev/sda5 This will now use 4k blocksize.
The mount and unmount of the 4k blocksize filesystem will change the
softblocksize of the underlying device to 4k. Permanently.
In my testing on a 1394 disk, the 1k blocksize hdparm throughput is
1.5 megabytes/sec. The 4k blocksize throughput is 27 megs/sec.
next prev parent reply other threads:[~2002-01-06 21:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-06 17:10 slow scsi disk perf (sym53c875 and IBM drives) elim
2002-01-06 21:36 ` Andrew Morton [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-01-07 1:47 Douglas Gilbert
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=3C38C351.1FCA434A@zip.com.au \
--to=akpm@zip.com.au \
--cc=elim@warthog.ern-e.org \
--cc=linux-kernel@vger.kernel.org \
/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