Of course I ran Postgresql's pg_test_fsync
Most enterprise SSD's do around 5000-15000 iops.
Optane 280GB did 30000 iops.
Optane NVDimm:
An order of magnitude faster than optane via pci-express. Persistent memory is insane...
This is done on AlmaLinux 10, with fsdax namespace and XFS filesystem mounted with dax option. The namespace is a region of 6x128GB Optane modules.
Most enterprise SSD's do around 5000-15000 iops.
Optane 280GB did 30000 iops.
Optane NVDimm:
Code:
sudo numactl -N 0 ./pg_test_fsync -f /mnt/pmem0/test
5 seconds per test
O_DIRECT supported on this platform for open_datasync and open_sync.
Compare file sync methods using one 8kB write:
(in "wal_sync_method" preference order, except fdatasync is Linux's default)
open_datasync 296824.466 ops/sec 3 usecs/op
fdatasync 284270.155 ops/sec 4 usecs/op
fsync 292300.289 ops/sec 3 usecs/op
fsync_writethrough n/a
open_sync 303438.714 ops/sec 3 usecs/op
Compare file sync methods using two 8kB writes:
(in "wal_sync_method" preference order, except fdatasync is Linux's default)
open_datasync 146539.355 ops/sec 7 usecs/op
fdatasync 166876.666 ops/sec 6 usecs/op
fsync 163899.210 ops/sec 6 usecs/op
fsync_writethrough n/a
open_sync 149345.961 ops/sec 7 usecs/op
Compare open_sync with different write sizes:
(This is designed to compare the cost of writing 16kB in different write
open_sync sizes.)
1 * 16kB open_sync write 150159.840 ops/sec 7 usecs/op
2 * 8kB open_sync writes 148207.385 ops/sec 7 usecs/op
4 * 4kB open_sync writes 118460.784 ops/sec 8 usecs/op
8 * 2kB open_sync writes 80294.959 ops/sec 12 usecs/op
16 * 1kB open_sync writes 46076.797 ops/sec 22 usecs/op
Test if fsync on non-write file descriptor is honored:
(If the times are similar, fsync() can sync data written on a different
descriptor.)
write, fsync, close 114186.926 ops/sec 9 usecs/op
write, close, fsync 113974.395 ops/sec 9 usecs/op
Non-sync'ed 8kB writes:
write 387088.381 ops/sec 3 usecs/op
This is done on AlmaLinux 10, with fsdax namespace and XFS filesystem mounted with dax option. The namespace is a region of 6x128GB Optane modules.