Repository navigation
kv/RocksDB: Add instrumentation to BinnedLRUCache - #64819
Conversation
|
I wonder if we are going to the effort to expose these metrics via the admin commands and performance counters if we should standardize the commands and output across all priority caches? |
39ff993 to
d2776a6
Compare
d2776a6 to
625bb95
Compare
|
jenkins test make check |
@markhpc |
625bb95 to
e5c0d58
Compare
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
jenkins test make check |
|
jenkins test windows |
1) perf counters
For each cache section in perf counters is created.
"rocksdb-cache-O": {
"capacity": 134217728,
"usage": 134182832,
"pinned": 0,
"elems": 24502,
"inserts": 25806978,
"lookups": 150436987,
"hits": 124629911,
"misses": 25807076
}
In default configuration there are 2 sections: "rocksdb-cache-O", "rocksdb-cache-default".
2) admin command
For each cache admin command "rocksdb show cache x" is added.
> ./bin/ceph tell osd.0 rocksdb show cache O
shard capacity usage pinned elems inserts lookups hits misses
0 13631488 11076400 0 2099 136987 822679 685923 136756
1 13631488 11549712 0 2043 133359 571500 438383 133117
2 13631488 11060608 0 2232 135076 908468 773313 135155
3 13631488 11166896 0 2269 134006 427070 293147 133923
4 13631488 11117984 0 2297 133367 700242 567318 132924
5 13631488 11306672 0 2155 137501 1130135 991810 138325
6 13631488 11506512 0 2353 134515 662792 528514 134278
7 13631488 11093856 0 2316 135348 718971 583421 135550
8 13631488 11660624 0 2424 137363 1092043 954248 137795
9 13631488 10962000 0 2561 131982 431702 300467 131235
10 13631488 11379392 0 1916 134543 477118 342854 134264
11 13631488 1129427 0 2555 134508 512393 378337 134056
12 13631488 11277136 0 2079 137312 1131571 993692 137879
13 13631488 10887776 0 2543 134001 567073 432903 134170
14 13631488 10986528 0 2394 133288 584452 451018 133434
15 13631488 11954464 0 2456 134615 708285 573374 134911
3) admin command
" ./bin/ceph tell osd.0 rocksdb reset cache O" clears "inserts",
"lookups", "hits" and "misses"
Signed-off-by: Adam Kupczyk <[email protected]>
e5c0d58 to
cadd4a4
Compare
|
jenkins test windows |
|
I'm obviously late to the party here, but @aclamk how difficult would it be to extend this to include tombstones? |
1) perf counters
For each cache section in perf counters is created.
"rocksdb-cache-O": {
"capacity": 134217728,
"usage": 134182832,
"pinned": 0,
"elems": 24502,
"inserts": 25806978,
"lookups": 150436987,
"hits": 124629911,
"misses": 25807076
}
In default configuration there are 2 sections: "rocksdb-cache-O", "rocksdb-cache-default".
2) admin command
For each cache admin command "rocksdb show cache x" is added.
> ./bin/ceph tell osd.0 rocksdb show cache O
shard capacity usage pinned elems inserts lookups hits misses
0 13631488 11076400 0 2099 136987 822679 685923 136756
1 13631488 11549712 0 2043 133359 571500 438383 133117
2 13631488 11060608 0 2232 135076 908468 773313 135155
3 13631488 11166896 0 2269 134006 427070 293147 133923
4 13631488 11117984 0 2297 133367 700242 567318 132924
5 13631488 11306672 0 2155 137501 1130135 991810 138325
6 13631488 11506512 0 2353 134515 662792 528514 134278
7 13631488 11093856 0 2316 135348 718971 583421 135550
8 13631488 11660624 0 2424 137363 1092043 954248 137795
9 13631488 10962000 0 2561 131982 431702 300467 131235
10 13631488 11379392 0 1916 134543 477118 342854 134264
11 13631488 1129427 0 2555 134508 512393 378337 134056
12 13631488 11277136 0 2079 137312 1131571 993692 137879
13 13631488 10887776 0 2543 134001 567073 432903 134170
14 13631488 10986528 0 2394 133288 584452 451018 133434
15 13631488 11954464 0 2456 134615 708285 573374 134911
3) admin command
" ./bin/ceph tell osd.0 rocksdb reset cache O" clears "inserts",
"lookups", "hits" and "misses"
Signed-off-by: Adam Kupczyk <[email protected]>
(cherry picked from commit cadd4a4)
(contributed as ceph#64819)
1) perf counters
For each cache section in perf counters is created.
"rocksdb-cache-O": {
"capacity": 134217728,
"usage": 134182832,
"pinned": 0,
"elems": 24502,
"inserts": 25806978,
"lookups": 150436987,
"hits": 124629911,
"misses": 25807076
}
In default configuration there are 2 sections: "rocksdb-cache-O", "rocksdb-cache-default".
2) admin command
For each cache admin command "rocksdb show cache x" is added.
> ./bin/ceph tell osd.0 rocksdb show cache O
shard capacity usage pinned elems inserts lookups hits misses
0 13631488 11076400 0 2099 136987 822679 685923 136756
1 13631488 11549712 0 2043 133359 571500 438383 133117
2 13631488 11060608 0 2232 135076 908468 773313 135155
3 13631488 11166896 0 2269 134006 427070 293147 133923
4 13631488 11117984 0 2297 133367 700242 567318 132924
5 13631488 11306672 0 2155 137501 1130135 991810 138325
6 13631488 11506512 0 2353 134515 662792 528514 134278
7 13631488 11093856 0 2316 135348 718971 583421 135550
8 13631488 11660624 0 2424 137363 1092043 954248 137795
9 13631488 10962000 0 2561 131982 431702 300467 131235
10 13631488 11379392 0 1916 134543 477118 342854 134264
11 13631488 1129427 0 2555 134508 512393 378337 134056
12 13631488 11277136 0 2079 137312 1131571 993692 137879
13 13631488 10887776 0 2543 134001 567073 432903 134170
14 13631488 10986528 0 2394 133288 584452 451018 133434
15 13631488 11954464 0 2456 134615 708285 573374 134911
3) admin command
" ./bin/ceph tell osd.0 rocksdb reset cache O" clears "inserts",
"lookups", "hits" and "misses"
Signed-off-by: Adam Kupczyk <[email protected]>
(cherry picked from commit cadd4a4)
(contributed as ceph#64819)
perf counters
For each cache section in perf counters is created.
"rocksdb-cache-O": {
"capacity": 134217728,
"usage": 134182832,
"pinned": 0,
"elems": 24502,
"inserts": 25806978,
"lookups": 150436987,
"hits": 124629911,
"misses": 25807076
}
In default configuration there are 2 sections: "rocksdb-cache-O", "rocksdb-cache-default".
admin command
For each cache admin command "rocksdb show cache x" is added.
"./bin/ceph tell osd.0 rocksdb show cache O"
shard capacity usage pinned elems inserts lookups hits misses
0 13631488 11076400 0 2099 136987 822679 685923 136756
1 13631488 11549712 0 2043 133359 571500 438383 133117
2 13631488 11060608 0 2232 135076 908468 773313 135155
3 13631488 11166896 0 2269 134006 427070 293147 133923
4 13631488 11117984 0 2297 133367 700242 567318 132924
5 13631488 11306672 0 2155 137501 1130135 991810 138325
6 13631488 11506512 0 2353 134515 662792 528514 134278
7 13631488 11093856 0 2316 135348 718971 583421 135550
8 13631488 11660624 0 2424 137363 1092043 954248 137795
9 13631488 10962000 0 2561 131982 431702 300467 131235
10 13631488 11379392 0 1916 134543 477118 342854 134264
11 13631488 11294272 0 2555 134508 512393 378337 134056
12 13631488 11277136 0 2079 137312 1131571 993692 137879
13 13631488 10887776 0 2543 134001 567073 432903 134170
14 13631488 10986528 0 2394 133288 584452 451018 133434
15 13631488 11954464 0 2456 134615 708285 573374 134911
"./bin/ceph tell osd.0 rocksdb reset cache O"
clears "inserts", "lookups", "hits" and "misses"
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition