From 4fca1650892b7aba6ac219ce521543d411cf96ac Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 20 Nov 2024 08:43:01 +0100 Subject: executor: increase coverage buffer size The coverage buffer frequently overflows. We cannot increase it radically b/c they consume lots of memory (num procs x num kcovs x buffer size) and lead to OOM kills (at least with 8 procs and 2GB KASAN VM). So increase it 2x and slightly reduce number of threads/kcov descriptors. However, in snapshot mode we can be more aggressive (only 1 proc). This reduces number of overflows by ~~2-4x depending on syscall. --- executor/snapshot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/snapshot.h') diff --git a/executor/snapshot.h b/executor/snapshot.h index 462fb2c56..059ac8222 100644 --- a/executor/snapshot.h +++ b/executor/snapshot.h @@ -147,7 +147,7 @@ constexpr size_t kOutputPopulate = 256 << 10; constexpr size_t kInputPopulate = 64 << 10; constexpr size_t kGlobalsPopulate = 4 << 10; constexpr size_t kDataPopulate = 8 << 10; -constexpr size_t kCoveragePopulate = 32 << 10; +constexpr size_t kCoveragePopulate = 64 << 10; constexpr size_t kThreadsPopulate = 2; static void SnapshotSetState(rpc::SnapshotState state) -- cgit mrf-deployment