public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: "Desai, Kashyap" <Kashyap.Desai@lsi.com>
Cc: Ryousei Takano <ryousei@gmail.com>,
	"Moore, Eric" <Eric.Moore@lsi.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	DL-MPT Fusion Linux <DL-MPTFusionLinux@lsi.com>,
	"Support, Software" <support@lsi.com>,
	"takano-ryousei@aist.go.jp" <takano-ryousei@aist.go.jp>,
	"Yang, Bo" <Bo.Yang@lsi.com>
Subject: Re: OCZ Z-drive p84 read performance
Date: Mon, 30 Nov 2009 09:11:58 -0700	[thread overview]
Message-ID: <20091130161158.GR9482@parisc-linux.org> (raw)
In-Reply-To: <0D1E8821739E724A86F4D16902CE275C1C93C7557A@inbmail01.lsi.com>

On Mon, Nov 30, 2009 at 08:07:58PM +0530, Desai, Kashyap wrote:
> > for i in 1 4 16 64 256 512 1024 2048 4096 8192 16384 32768 65536; do
> >         bs=$((BS * i))
> >         count=$((COUNT / i))
> > 
> >         echo bs=$bs count=$count
> >         sudo mount /dev/sdb1 /media/test
> >         dd if=/dev/zero of=/media/test/foo bs=$bs count=$count
> >         sudo umount /media/test
> >         sleep 1
> >         sudo mount /dev/sdb1 /media/test
> >         dd if=/media/test/foo of=/dev/null bs=$bs count=$count
> Replace /media/test/foo with /dev/sdb1, you will see raw read
> >         rm /media/test/foo
> >         sudo umount /media/test
> > done
> > 
> This test is not purely RAW read/write test. In you test File system performance is also included. While read operation, (sequential read) File system buffering will give huge advantage to data transfer.

Both filesystem and block access will use the page cache.  You should
use iflag=direct (or oflag=direct as appropriate) in order to bypass
the page cache.

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."

  reply	other threads:[~2009-11-30 16:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30  9:37 OCZ Z-drive p84 read performance Ryousei Takano
2009-11-30 13:25 ` Desai, Kashyap
2009-11-30 14:07   ` Ryousei Takano
2009-11-30 14:37     ` Desai, Kashyap
2009-11-30 16:11       ` Matthew Wilcox [this message]
2009-12-01  1:30         ` Ryousei Takano
2009-12-01  3:25           ` Ryousei Takano

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=20091130161158.GR9482@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=Bo.Yang@lsi.com \
    --cc=DL-MPTFusionLinux@lsi.com \
    --cc=Eric.Moore@lsi.com \
    --cc=Kashyap.Desai@lsi.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=ryousei@gmail.com \
    --cc=support@lsi.com \
    --cc=takano-ryousei@aist.go.jp \
    /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