You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today the db_bench summary line for mixgraph has details on the number of gets done and gets that return a key. It would help to have the same for seeks. The current output is below:
mixgraph : 52.606 micros/op 19009 ops/sec; 1.3 MB/s ( Gets:56797338 Puts:9585190 Seek:2051471 of 31235719 in 58848809 found)
This part of the output is only for Get() operations:
31235719 in 58848809 found
This is an ugly proof-of-concept change to get that output:
Summary:
Changes:
* improves monitoring by displaying average size of a Put value and average scan length
* forces the minimum value size to be 10. Before this it was 0 if you didn't set the distribution parameters.
* uses reasonable defaults for the distribution parameters that determine value size and scan length
* includes seeks in "reads ... found" message, before this they were missing
This is for #9672
Pull Request resolved: #9711
Test Plan:
Before this change:
./db_bench --benchmarks=fillseq,mixgraph --mix_get_ratio=50 --mix_put_ratio=25 --mix_seek_ratio=25 --num=100000 --value_k=0.2615 --value_sigma=25.45 --iter_k=2.517 --iter_sigma=14.236
fillseq : 4.289 micros/op 233138 ops/sec; 25.8 MB/s
mixgraph : 18.461 micros/op 54166 ops/sec; 755.0 MB/s ( Gets:50164 Puts:24919 Seek:24917 of 50164 in 75081 found)
After this change:
./db_bench --benchmarks=fillseq,mixgraph --mix_get_ratio=50 --mix_put_ratio=25 --mix_seek_ratio=25 --num=100000 --value_k=0.2615 --value_sigma=25.45 --iter_k=2.517 --iter_sigma=14.236
fillseq : 3.974 micros/op 251553 ops/sec; 27.8 MB/s
mixgraph : 16.722 micros/op 59795 ops/sec; 833.5 MB/s ( Gets:50164 Puts:24919 Seek:24917, reads 75081 in 75081 found, avg size: 36.0 value, 504.9 scan)
Reviewed By: jay-zhuang
Differential Revision: D35030190
Pulled By: mdcallag
fbshipit-source-id: d8f555f28d869f752ddb674a524108884511b151
Today the db_bench summary line for mixgraph has details on the number of gets done and gets that return a key. It would help to have the same for seeks. The current output is below:
This part of the output is only for Get() operations:
This is an ugly proof-of-concept change to get that output:
Another piece of information that I want is the average lengths for the following, because both are likely to use a complex distribution today:
And this ugly proof-of-concept adds both:
The text was updated successfully, but these errors were encountered: