aboutsummaryrefslogtreecommitdiffstats
path: root/executor/snapshot.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-11-20 08:43:01 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-11-20 11:33:58 +0000
commit4fca1650892b7aba6ac219ce521543d411cf96ac (patch)
tree668b39c6f72c509a44dabc13c0fcdcac386a1f81 /executor/snapshot.h
parentf56b4dcc82d7af38bf94d643c5750cf49a91a297 (diff)
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.
Diffstat (limited to 'executor/snapshot.h')
-rw-r--r--executor/snapshot.h2
1 files changed, 1 insertions, 1 deletions
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)