SMART on USB flash drive?The controller chip is not sufficient, IMHO. I had drives fail while their SMART was dead certain all was well, only "zfs scrub" told me that data was bad and had been reconstructed.
SMART on USB flash drive?The controller chip is not sufficient, IMHO. I had drives fail while their SMART was dead certain all was well, only "zfs scrub" told me that data was bad and had been reconstructed.
Here are some numbers.If you copy 1GB file, what is the speed in MB/s for exFAT and what for ZFS?
nfts linux on 2tb sn850x in 5950x:
fuse:
---Sequential Output----- ---Input---- ------Random-- -----Random----
---Block---- ---Rewrite-- ---Block---- ---ro Seeks--- -Seeks rewrite-
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
12288 152.5 23.0 193.2 25.2 2271.6 56.6 13346.2 10.6 9908.6 10.1
ntfs3:
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
12288 1497.5 92.5 2528.7 85.9 3704.1 90.8 52001.5 37.0 27514.1 26.1
ext2fs tests on freebsd. 5950x limited to 4 GB, intel optane 118 GB
kernel driver:
---Sequential Output----- ---Input---- ------Random-- -----Random----
---Block---- ---Rewrite-- ---Block---- ---ro Seeks--- -Seeks rewrite-
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 929.2 59.2 407.2 27.8 1060.6 34.8 55511.6 45.6 52105.7 47.7
kldload fusefs
lklfuse -o type=ext2 /dev/nda1p1 /mnt/tmp
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 189.3 12.9 110.8 8.7 275.9 6.0 4749.8 5.3 4340.4 5.2
fuse-ext2 -o rw+ /dev/nda1p1 /mnt/tmp
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 197.0 11.9 125.7 8.0 315.1 7.1 4670.9 5.6 3686.5 4.8
UFS:
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 1037.0 29.2 648.4 18.5 1421.3 27.9 70515.6 37.3 41371.9 30.8
ZFS compression=off:
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 270.6 8.1 143.9 6.3 285.8 5.5 2835.0 3.6 2726.4 4.7
ZFS compression=on:
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 3656.4 99.8 2934.0 99.7 7706.9 100.0 186341.2 299.1 111114.2 192.1
ZFS compression=zstd:
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 2413.0 80.9 2121.2 97.3 5254.6 100.0 199282.6 299.0 66876.2 104.6
ZFS compression=zstd linux 6.5.0-17-lowlatency:
---Sequential Output----- ---Input---- ------Random-- -----Random----
---Block---- ---Rewrite-- ---Block---- ---ro Seeks--- -Seeks rewrite-
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 820.7 94.5 485.2 97.0 915.1 99.9 45840.5 299.0 35812.8 240.3
compression=off:
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 571.3 72.3 449.7 71.0 1660.9 99.9 92704.2 299.0 3736.2 12.7
ext2fs (yes, not ext4fs):
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 628.1 75.6 828.6 40.2 1706.2 62.3 116026.1 113.6 97835.4 112.0
ext2fs, kernel limited to 4 GB:
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 816.6 98.2 574.8 47.5 1694.6 65.4 120933.6 107.4 100704.9 111.2
ZFS compress=off:
MB M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU /sec %CPU
16384 316.5 44.0 165.3 35.0 323.3 29.8 3242.5 16.8 3227.1 19.8
No, on SATA drives. USB flash drives don't even have that, so ...SMART on USB flash drive?
I did that with a spare NVMe drive from an upgrade. I got an Orico NVMe adapter and I've been quite happy with the performance.Also worth reminding people that you don't have to use crappy USB sticks for portable storage. A M.2 NVMe SSD in a USB case is much better and not very expensive if you only need small capacity.
Unfortunately not accessible with OpenBSD.The only full-performance access on all OSes is ZFS.
I do that, too, if everything fails. It's not really a file system but when you have tar and a direct access to the device? Pretty good. Can you do such things with windows also?the ufs/ffs of openbsd different from freebsd. I can even tar i write directly to disk no filesystem needed.
tar tf /cygdrive/d?works with windows dd and tar xf -I do that, too, if everything fails. It's not really a file system but when you have tar and a direct access to the device? Pretty good. Can you do such things with windows also?tar tf /cygdrive/d?
Good to know. Maybe some other archivers can do the same, as f.e. lha, zpaq, ...?works with windows dd and tar xf -
Sure you can do that. But can you use /usr/bin/mt with it?the ufs/ffs of openbsd different from freebsd. I can even tar i write directly to disk no filesystem needed.
no, tape ioctls wont work. there is no simple way to append to an existing backup on a raw diskSure you can do that. But can you use /usr/bin/mt with it?
Perhaps to put a tar *file* in the most primitive fat fs?But Fat32 is too limited for me. Filenames , case, length of directories, and maximum length of files.
Someone made a script for that meant to optimize for block size and compatibility. Haven't tried it, but I've come across several people over the years claiming it works well. I would use FAT32 if you don't need to store large files, exFAT otherwise.Also, I remember that several years ago we discussed here a possibility to use UDF on flash drives. As a proof of concept I tried that, but don't remember the details and performance.