Re: OCZ Z-drive p84 read performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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."
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux