USB3.0は10倍早い?

USB3.0の説明の中にUSB2.0より10倍早い・・・
というのをよく見かけます。
確かに最大転送速度の理論値はUSB2.0が480Mビット/sec
(60Mバイト/sec)、USB3.0は5Gビット/sec(640Mバイト/sec)
なので10倍以上となっていますが、あくまで理論値です。
実際には早い(帯域が広い)ほどケーブル長などによる
遅延が大きくなります。
またチップやドライバによる性能差も大きくなります。
よほど条件が良くても10倍は早くならないでしょう。

で、実際にはナンボのもんよ?ってのを他人様にお見せするのに
いくつかのUSB3.0外付けHDDで試してみたときの結果です。

条件
Ubuntu上でhdparmコマンドによる簡易測定。
USB3.0ドライバはUbuntu標準のもの。
同じケーブル・同じ端子を使用。
ファイルシステムはすべてNTFS。(WindowsOSでも使うため)
10回の平均値。
同じ条件でUSB2.0端子でも測定。

TOSHIBA v63600-D 1TB
$ sudo hdparm -t /dev/sdd1
/dev/sdd1:
Timing buffered disk reads: 344 MB in 3.00 seconds = 114.65 MB/sec
USB2.0端子では29GB/secなので約4倍。

違う奴でお試し
Buffalo HD-PMPT500U3-RC 500GB 142.54MB/sec
USB2.0端子では31MB/secなので4.6倍。

ちなみに名無しの格安外付けストレージUSB3.0用のケースに
その辺に転がっていたSAMSUNG120GBHDDを突っ込んでみたら。。。
なんと50GB/sec程度でUSB2.0端子では24MB/secなので
2倍しか出ませんな。^^;;
安いものはそれなりなのですよ。

HDDの回転速度は一緒でも1フラッタの容量で速度は変わるので
上記結果がすべてとは言いませんが、搭載チップによる差が大きい
ことは容易に想像が付きます。
また長く細い接続ケーブルを使うとすべての転送速度が
10~15%落ちてしまいました。

【hdparmコマンドについて】

hdparm -h で見るとhdparmコマンドのオプションは
実に豊富です。
拙生がよく使うのは-Tでキャッシュのリードを表示します。
いつもは両方表示させるので【-tT】としています。

-Iというフラグで詳細が表示されます。
(以下内臓SDDを表示させています。)

$ sudo hdparm -I /dev/sdb

/dev/sdb:

ATA device, with non-removable media
Model Number: ADATA SP900
Serial Number: 02914080500100000033
Firmware Revision: 5.0.2a
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
Used: unknown (minor revision code 0x0110)
Supported: 8 7 6 5
Likely used: 8
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63

CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 500118192
Logical Sector size: 512 bytes
Physical Sector size: 512 bytes
Logical Sector-0 offset: 0 bytes
device size with M = 1024*1024: 244198 MBytes
device size with M = 1000*1000: 256060 MBytes (256 GB)
cache/buffer size = unknown
Nominal Media Rotation Rate: Solid State Device
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec’d by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Advanced power management level: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
* Advanced Power Management feature set
Power-Up In Standby feature set
* SET_FEATURES required to spinup after power up
* 48-bit Address feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* WRITE_{DMA|MULTIPLE}_FUA_EXT
* 64-bit World wide name
* IDLE_IMMEDIATE with UNLOAD
Write-Read-Verify feature set
* {READ,WRITE}_DMA_EXT_GPL commands
* Segmented DOWNLOAD_MICROCODE
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
* Gen3 signaling speed (6.0Gb/s)
* Native Command Queueing (NCQ)
* Host-initiated interface power management
* Phy event counters
* Device automatic Partial to Slumber transitions
* READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
DMA Setup Auto-Activate optimization
Device-initiated interface power management
* Software settings preservation
* SMART Command Transport (SCT) feature set
* SCT Data Tables (AC5)
* SET MAX SETPASSWORD/UNLOCK DMA commands
* Data Set Management TRIM supported (limit 8 blocks)
* Deterministic read data after TRIM
Security:
Master password revision code = 65534
supported
not enabled
not locked
frozen
not expired: security count
not supported: enhanced erase
2min for SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 0000000000000000
NAA : 0
IEEE OUI : 000000
Unique ID : 000000000
Checksum: correct

なおUbuntuは標準でUSB3.0のドライバが組み込まれますが
違うディストリなどでドライバの有無を確かめるときは

$ dmesg | grep xhci_hcd

などとし以下のような結果が表示されることを確認します。

[ 0.927536] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 0.927540] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[ 1.048823] usb usb3: Manufacturer: Linux 3.13.0-53-generic xhci_hcd
[ 1.049171] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.049174] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 4
[ 1.049254] usb usb4: Manufacturer: Linux 3.13.0-53-generic xhci_hcd
[ 1.747966] usb 4-1: new SuperSpeed USB device number 2 using xhci_hcd
[21409.612446] usb 4-1: new SuperSpeed USB device number 3 using xhci_hcd
[21582.018968] usb 4-1: new SuperSpeed USB device number 4 using xhci_hcd
[21693.119371] usb 4-1: new SuperSpeed USB device number 5 using xhci_hcd
[21769.736820] usb 4-1: new SuperSpeed USB device number 6 using xhci_hcd
[22052.446789] usb 4-1: new SuperSpeed USB device number 7 using xhci_hcd
[23032.554310] usb 4-1: new SuperSpeed USB device number 8 using xhci_hcd

HOME

おすすめ