This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch dev-1.0.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/dev-1.0.1 by this push:
new f0ec2e3639 [improvement]change shard num of page cache to 1024 to
reduce lock contention (#10449)
f0ec2e3639 is described below
commit f0ec2e36394786efaef6f0469b815dda1acf13bd
Author: Yongqiang YANG <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]