True. USB Thumbdrives are really slow. Whether the cache is full or not.
External USB Mass Storage Drives...
Code:
mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT,MODEL | grep -v '/snap/' | sed 's/^[\|,`]-/\|_/g'
NAME SIZE FSTYPE LABEL MOUNTPOINT MODEL
sda 953.9G SSD
├─sda1 256M vfat system-boot /boot/firmware
└─sda2 953.6G ext4 writable /
That is a Samsung EVO 1TB NVMe drive in a USB3.2 NVMe enclosure...
Code:
mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ sudo hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1426 MB in 2.00 seconds = 714.52 MB/sec
Timing buffered disk reads: 636 MB in 3.15 seconds = 201.94 MB/sec
mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ sudo hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1416 MB in 2.00 seconds = 709.31 MB/sec
Timing buffered disk reads: 636 MB in 3.10 seconds = 204.85 MB/sec
mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ sudo hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1426 MB in 2.00 seconds = 714.33 MB/sec
Timing buffered disk reads: 636 MB in 3.08 seconds = 206.63 MB/sec
mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ sudo hdparm -v /dev/sda
/dev/sda:
multcount = 1 (on)
readonly = 0 (off)
readahead = 131064 (on)
geometry = 124519/255/63, sectors = 2000409264, start = 0
mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output
10240+0 records in
10240+0 records out
83886080 bytes (84 MB, 80 MiB) copied, 0.630484 s, 133 MB/s
That is about as good as it will get through USB.
True with USB, whatever version, to any media format, when the Write cache buffer is full, the speed is going to drop off dramatically.
EDIT: This is the same benchmark commands, on a WD Blue NVMe 2TB, in an NVME slot on my server:
Code:
mafoelffen@Mikes-B460M:~$ lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT,MODEL | grep -v '/snap/' | sed 's/^[\|,`]-/\|_/g'
NAME SIZE FSTYPE LABEL MOUNTPOINT MODEL
sda 7.3T zfs_member varpool ST8000DM004-2U9188
└─sda1 3.6T zfs_member datapool
sdb 476.9G Crucial_CT512MX100SSD1
├─sdb1 16M ext4
├─sdb2 476.3G ntfs
└─sdb3 607M ntfs
nvme0n1 931.5G WD Blue SN570 1TB
├─nvme0n1p1 512M vfat /boot/efi
├─nvme0n1p2 2G swap [SWAP]
├─nvme0n1p3 2G zfs_member bpool
└─nvme0n1p4 927G zfs_member rpool
mafoelffen@Mikes-B460M:~$ sudo hdparm -tT /dev/nvme0n1
/dev/nvme0n1:
Timing cached reads: 43902 MB in 2.00 seconds = 21992.47 MB/sec
Timing buffered disk reads: 7786 MB in 3.00 seconds = 2595.29 MB/sec
mafoelffen@Mikes-B460M:~$ sudo hdparm -tT /dev/nvme0n1
/dev/nvme0n1:
Timing cached reads: 44318 MB in 2.00 seconds = 22202.01 MB/sec
Timing buffered disk reads: 7842 MB in 3.00 seconds = 2613.79 MB/sec
mafoelffen@Mikes-B460M:~$ sudo hdparm -tT /dev/nvme0n1
/dev/nvme0n1:
Timing cached reads: 43546 MB in 2.00 seconds = 21813.60 MB/sec
Timing buffered disk reads: 7796 MB in 3.00 seconds = 2598.45 MB/sec
mafoelffen@Mikes-B460M:~$ dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output
10240+0 records in
10240+0 records out
83886080 bytes (84 MB, 80 MiB) copied, 0.0459939 s, 1.8 GB/s
The USB interface itself slows that down from 21000mb/s cached read, 2500mb/s read, 1.8GB/s write to 700mb/s cached read, 200mbs read, 130mb/s write... On the same brand and model drives.
On thumb drives the PNY USB3.2 reads at 32mb/s and writes at 30mb/s...
Bookmarks