Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
common/config_opts.h: compaction readahead for bluestore/rocksdb #14932
This greatly reduces time spent in the rocksdb compaction thread during 4K random writes on NVMe because compaction reads are mostly sequential anyway so a large readahead reduces a lot of extra overhead. Previously the CompactionIterator was issuing a read to disk for every Next() call.
Signed-off-by: Mark Nelson firstname.lastname@example.org
liupan1111: this is a gdb based wallclock profiler I adopted to support multiple threads and made callgraphs. The src is here:
and you can run it like this:
sudo gdb -ex 'set pagination off' -ex 'attach 19447' -ex 'source /home/ubuntu/src/markhpc/gdbprof/gdbprof.py' -ex 'profile begin' -ex 'quit'
where in the above example 19447 is the pid of the ceph-osd process I was tracing.