When I run the readrandom benchmark on a m5d.2xlarge on the /dev/nvme1n1 drive, I only get 16,763 ops/s. I'm using v9.7.4. This is much different than the results from here:
https://github.com/facebook/rocksdb/wiki/performance-benchmarks (189,236 ops/s). Here are the commands I ran:
CPATH=/usr/local/include LIBRARY_PATH=/usr/local/lib DB_DIR=/mnt/ephemeral0/dbdir WAL_DIR=/mnt/ephemeral0/waldir NUM_KEYS=900000000 CACHE_SIZE=6442450944 DURATION=300 tools/benchmark.sh bulkload
CPATH=/usr/local/include LIBRARY_PATH=/usr/local/lib DB_DIR=/mnt/ephemeral0/dbdir WAL_DIR=/mnt/ephemeral0/waldir NUM_KEYS=900000000 CACHE_SIZE=6442450944 DURATION=5400 tools/benchmark.sh readrandom --use_direct_io_for_flush_and_compaction --use_direct_reads
The only difference I'm aware of is that the version in the wiki was 7.2.2. Has the performance gone down that much since then?