You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/06/30 10:03:20 UTC
[doris] 05/13: [improvement]change shard num of page cache to 1024 to reduce lock contention (#10449)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch dev-1.0.1
in repository https://gitbox.apache.org/repos/asf/doris.git
commit 4ff62b32b43873889ec92a92dbfee05a818b0c71
Author: Yongqiang YANG <98...@users.noreply.github.com>
AuthorDate: Tue Jun 28 13:54:10 2022 +0800
[improvement]change shard num of page cache to 1024 to reduce lock contention (#10449)
Because shard num of master is changed to be as a config, so here
we add a isolation commit to 1.0.1.
---
be/src/olap/lru_cache.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/olap/lru_cache.h b/be/src/olap/lru_cache.h
index 0c4bf69795..0ff3ce16a6 100644
--- a/be/src/olap/lru_cache.h
+++ b/be/src/olap/lru_cache.h
@@ -357,7 +357,7 @@ private:
uint64_t _hit_count = 0; // 命中cache的总次数
};
-static const int kNumShardBits = 4;
+static const int kNumShardBits = 10;
static const int kNumShards = 1 << kNumShardBits;
class ShardedLRUCache : public Cache {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org