-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix StopWatch bug; Remove setting record_read_stats
#11474
Conversation
record_read_stats
record_read_stats
after PR 11444
record_read_stats
after PR 11444record_read_stats
after #11444
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
record_read_stats
after #11444record_read_stats
@hx235 has updated the pull request. You must reimport the pull request before landing. |
@ajkr Fixed. I kept confusing 11444 with 11288! |
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…able() that affects RRAF hist
@hx235 has updated the pull request. You must reimport the pull request before landing. |
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Context/Summary:
StatsLevel::kExceptTimers
is set. It's a harmless bug though sincereportTimeToHistogram()
will not report it anyway according to https://github.com/facebook/rocksdb/blob/main/include/rocksdb/statistics.h#L705record_read_stats = !for_compaction
as we don't differentiateRandomAccessFileReader
's stats behavior based on compaction or not (instead we now report stats of different IO activities including compaction to different stats). Fixing this should report more compaction related file read micros that aren't reported previously due tofor_compaction==true
Test:
Setup command
./db_ bench -db=/dev/shm/testdb/ -statistics=true -benchmarks=fillseq -key_size=32 -value_size=512 -num=5000 -write_buffer_size=655 -target_file_size_base=655 -disable_auto_compactions=true -compression_type=none -bloom_bits=3
Run command
./db_bench --open_files=1 -use_existing_db=true -db=/dev/shm/testdb2/ -statistics=true -benchmarks=compactall -key_size=32 -value_size=512 -num=5000 -write_buffer_size=655 -target_file_size_base=655 -disable_auto_compactions=true -compression_type=none -bloom_bits=3
Pre-fix
Post-fix (with a higher
rocksdb.file.read.compaction.micros
count)