Re: using direct IO with sgp_dd

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

 



On Tue, Mar 11, 2008 at 8:40 AM, Doron Shoham <dorons@xxxxxxxxxxxx> wrote:
>  sgp_dd if=/dev/sg1 of=/dev/null bs=512 bpt=128 thr=8 time=1 count=5M dio=1
>  time to transfer data was 2.236290 secs, 1200.36 MB/sec
>  5242880+0 records in
>  5242880+0 records out
>  Direct IO requested but incomplete 40960 times
>
>  What does it mean "Direct IO requested but incomplete 40960 times"?
>  And what could be the reason for this?

The man page of sgp_dd states that the parameter specified to bs must
be the block size of the physical device. You can query the block size
of a SCSI device with e.g. the scsi_readcap command:

$ scsi_readcap /dev/sda
sg_readcap   /dev/sda
Read Capacity results:
   Last logical block address=625142447 (0x2542eaaf), Number of blocks=625142448
   Logical block length=512 bytes
Hence:
   Device size: 320072933376 bytes, 305245.3 MiB, 320.07 GB

Bart.
--
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