▲ | vlovich123 2 days ago | ||||||||||||||||
I think this says more about the terrible memory bandwidth & limited compute of the Intel mobile CPUs than about the positive speed of SSDs. Here's an 13900K 64 GiB with a SN850X SSD LUKS encrypted ext4. On my machine RAM compression is still faster. There's also various overheads in this test that make it not a 100% representative sample although I'm not sure how big the divergence is (namely zram swap doesn't have a filesystem and it's deep within the memory management code and not using O_DIRECT). Basic memory bandwidth test:
Read test
$ dd if=random.bin of=/tmp/random.bin conv=fdatasync bs=10M iflag=direct oflag=direct
2500+0 records in
2500+0 records out
26214400000 bytes (26 GB, 24 GiB) copied, 9.09728 s, 2.9 GB/sWrite test
Not sure why that disk write test was suddenly so bad.
Write test to lz4-compressed ZRAM:
Read test:
| |||||||||||||||||
▲ | fpoling 2 days ago | parent [-] | ||||||||||||||||
What is random.bin? I was testing with a json dataset that compresses by factor like 2.5 with zram. But if random is incompressible, then zram does not write compressed data but rather the original resulting in much faster read speed. Also on your SSD do you have logical 4K sector or 512 byte sectors? If the latter, then Linux distros defaults to 512 LUKS sectors on them resulting in much slower performance especially with writes. I always ensure that LUKS sectors are 4K even if SSD reports 512 bytes and does not allow to change that to 4K like Samsung 9* series. | |||||||||||||||||
|