Greg Steuck <gne...@openbsd.org> writes: > I was somehow sure I tried rsd1i before, but now I can see a 17x > difference: > > # dd if=/dev/rsd1i of=/dev/null bs=1M count=1000 > 1000+0 records in > 1000+0 records out > 1048576000 bytes transferred in 6.038 secs (173,659,835 bytes/sec)
I received an excellent suggestion off-list to do another experiment on Linux to have a more comparable baseline. Disabling uas reduces performance quite a bit, but it remains much better than OpenBSD: root@ubuntu:/mnt/stats# dd if=/dev/sda1 of=/dev/null bs=1M count=10000 10000+0 records in 10000+0 records out 10485760000 bytes (10 GB, 9.8 GiB) copied, 14.698 s, 713 MB/s [ 0.000000] Linux version 5.15.0-25-generic (buildd@ubuntu) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 (Ubuntu 5.15.0-25.25-generic 5.15.30) [ 0.000000] Command line: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity usb-storage.quirks=1058:264f:u splash --- ... [ 1.829835] usb 3-1: new SuperSpeed Plus Gen 2x1 USB device number 2 using xhci_hcd [ 1.850958] usb 3-1: New USB device found, idVendor=1058, idProduct=264f, bcdDevice=20.07 [ 1.851458] usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1 [ 1.851963] usb 3-1: Product: My Passport 264F [ 1.852466] usb 3-1: Manufacturer: Western Digital [ 1.852834] usb 3-1: SerialNumber: [ 1.876809] usb 3-1: UAS is ignored for this device, using usb-storage instead [ 1.877364] usb-storage 3-1:1.0: USB Mass Storage device detected [ 1.877962] usb-storage 3-1:1.0: Quirks match for vid 1058 pid 264f: 800000 [ 1.878525] scsi host4: usb-storage 3-1:1.0 ... [ 2.798242] usb 2-5.2: new full-speed USB device number 4 using xhci_hcd [ 2.902789] scsi 4:0:0:0: Direct-Access WD My Passport 264F 2007 PQ: 0 ANSI: 6 [ 2.902960] scsi 4:0:0:1: Enclosure WD SES Device 2007 PQ: 0 ANSI: 6 [ 2.904303] sd 4:0:0:0: Attached scsi generic sg1 type 0 [ 2.904549] scsi 4:0:0:1: Attached scsi generic sg2 type 13 [ 2.904579] sd 4:0:0:0: [sda] 3906963617 512-byte logical blocks: (2.00 TB/1.82 TiB) [ 2.904879] sd 4:0:0:0: [sda] Write Protect is off [ 2.904883] sd 4:0:0:0: [sda] Mode Sense: 17 00 10 00 [ 2.905178] sd 4:0:0:0: [sda] No Caching mode page found [ 2.905182] sd 4:0:0:0: [sda] Assuming drive cache: write through [ 2.954970] sda: sda1 [ 2.988933] sd 4:0:0:0: [sda] Attached SCSI disk [ 3.053942] scsi 4:0:0:1: Failed to get diagnostic page 0x1 [ 3.053945] scsi 4:0:0:1: Failed to bind enclosure -19 [ 3.053966] ses 4:0:0:1: Attached Enclosure device ... [ 4.407558] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem [ 4.414707] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null). Quota mode: none.