linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Karthik Sarangan <karthiks@cdac.in>
Cc: Linux SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: SCSI disk speed inconsistency
Date: Wed, 05 Oct 2005 08:00:15 +1000	[thread overview]
Message-ID: <4342FB6F.4070100@torque.net> (raw)
In-Reply-To: <4340F4AB.3070107@cdac.in>

Karthik Sarangan wrote:
> I get a read speed of 69MBps from my SCSI disk and a write speed of
> 49MBps from the same.
> An IOMeter benchmark on the net says that 68MBps is the sustained speed
> for a write.
> 
> Could someone tell me how to increase my IO speed?
> 
> I have a Linux Kernel 2.6 in a RedHat Enterprise Linux WS 4 and I used
> the foll.
> Read : sg_dd if=/dev/sdb  of=/dev/null bs=262144 count=1024 dio=1
> Write: sg_dd if=/dev/zero of=/dev/sdb  bs=262144 count=1024 dio=1

Karthik,
For accurate timing with "sd" devices use "odir=1" rather
than "dio=1". "dio=1" only applies to sg devices so it has
no effect in your above example. [Perhaps I should add a
warning about this in sg_dd.]

Also with sg_dd you should use "bs=512" and read about the
"bpt=<n>" option in the man page. Also look at the "blk_sgio=0|1"
and the "time=1" option.


Doug Gilbert

      reply	other threads:[~2005-10-04 21:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-03  9:06 SCSI disk speed inconsistency Karthik Sarangan
2005-10-04 22:00 ` Douglas Gilbert [this message]

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=4342FB6F.4070100@torque.net \
    --to=dougg@torque.net \
    --cc=karthiks@cdac.in \
    --cc=linux-scsi@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;
as well as URLs for NNTP newsgroup(s).