Repository navigation
Conversation
Signed-off-by: Mark Nelson <[email protected]>
|
retest this please |
|
|
||
| Option("bluestore_cache_meta_ratio", Option::TYPE_FLOAT, Option::LEVEL_DEV) | ||
| .set_default(.4) | ||
| .set_default(.45) |
There was a problem hiding this comment.
what's the motivation behind increasing the meta and kv ratio? cache_data_ratio now ends up becoming 0.06 from 0.2
There was a problem hiding this comment.
It seems like we've pretty consistently seen that in memory limited scenarios (with rbd) that every bit of memory you can give to the onode cache helps significantly. Once we have the age-binning code in we can tweak this further to perhaps prioritize very recent data over older onodes at a higher rate, but I think for now we probably want to really aggressively prioritize bluestre onode cache and rocksdb block_cache for omap over data cache and rocksdb block_cache for onode.
The good news with the priority cache manager is that if the onode and omap block_cache don't need as much memory as their fair share would get them, that memory can be used for other caches like the data cache instead.
|
|
||
| Option("bluestore_rocksdb_cfs", Option::TYPE_STR, Option::LEVEL_DEV) | ||
| .set_default("M= P= L=") | ||
| .set_default("O=") |
| for (auto& i : cf_map) { | ||
| dout(10) << "column family " << i.first << ": " << i.second << dendl; | ||
| cfs.push_back(KeyValueDB::ColumnFamily(i.first, i.second)); | ||
| bool share_cache = true; |
There was a problem hiding this comment.
does this have any implications for reading DBs with the old set of column families?
jdurgin
left a comment
There was a problem hiding this comment.
lgtm if the column family change does not impact on-disk format readabliity
|
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. |
|
Domo Arigato Mr. Roboto! This isn't stale, just sleeping until Adam's sharding work is done! |
|
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. |
|
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. |
|
still waiting on rocksdb sharding |
|
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. |
|
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. |
|
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. |
|
unstale |
|
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. |
|
Closed in favor of #37391 |
This PR reduces the occurrence of double caching bluestore onodes in the bluestore onode cache and rocksdb block cache. This is done by introducing the ability to create per-column family block caches and by default creating a separate column family for bluestore onodes. The onode-specific block cache competes independently of the rest of the rocksdb block cache for memory at a lower priority. This PR also slightly changes the priority cache chunking algorithm to avoid waste when caches are small.
4KB fio+librbd randwrite performance results are available here:
https://docs.google.com/spreadsheets/d/1oLNNtQ8Y3fhPPcMdrIeOulbvJoZhrVYNIRYAkXfJl64/edit?usp=sharing
Signed-off-by: Mark Nelson [email protected]