diff options
author | 2018-09-25 17:59:46 -0400 | |
---|---|---|
committer | 2018-09-25 17:59:46 -0400 | |
commit | a68ebc7cfde360fc904b99017702e8eedc251277 (patch) | |
tree | 2f2f2849d485dca7e6d372b140ca4112cb3a5f69 /src/core/lib/iomgr/timer_generic.cc | |
parent | ccbad108e45afb7c4fb361202cc0bae5ad7e5da2 (diff) |
Increase the maximum number of timer shards to 32.
Commit 82f9886e accidentally sets the maximum number of timer shards 1, from
previously 32.
We probably want to increase the max shards further.
Diffstat (limited to 'src/core/lib/iomgr/timer_generic.cc')
-rw-r--r-- | src/core/lib/iomgr/timer_generic.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/timer_generic.cc b/src/core/lib/iomgr/timer_generic.cc index 008d37119a..aeadd10b68 100644 --- a/src/core/lib/iomgr/timer_generic.cc +++ b/src/core/lib/iomgr/timer_generic.cc @@ -256,7 +256,7 @@ static grpc_millis compute_min_deadline(timer_shard* shard) { static void timer_list_init() { uint32_t i; - g_num_shards = GPR_MIN(1, 2 * gpr_cpu_num_cores()); + g_num_shards = GPR_MIN(32, 2 * gpr_cpu_num_cores()); g_shards = static_cast<timer_shard*>(gpr_zalloc(g_num_shards * sizeof(*g_shards))); g_shard_queue = static_cast<timer_shard**>( |