Skip to content

Commit 432b8dd

Browse files
author
Kostya Kortchinsky
committedMay 18, 2017
[scudo] lower quarantine default sizes
Summary: After discussing the current defaults with a couple of parties, the consensus is that they are too high. 1Mb of quarantine has about a 4Mb impact on PSS, so memory usage goes up quickly. This is obviously configurable, but the default value should be more "approachable", so both the global size and the thread local size are 1/4 of what they used to be. Reviewers: alekseyshl, kcc Reviewed By: alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D33321 llvm-svn: 303380
1 parent df01feb commit 432b8dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎compiler-rt/lib/scudo/scudo_flags.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void initFlags() {
6868
// Sanity checks and default settings for the Quarantine parameters.
6969

7070
if (f->QuarantineSizeMb < 0) {
71-
const int DefaultQuarantineSizeMb = FIRST_32_SECOND_64(16, 64);
71+
const int DefaultQuarantineSizeMb = FIRST_32_SECOND_64(4, 16);
7272
f->QuarantineSizeMb = DefaultQuarantineSizeMb;
7373
}
7474
// We enforce an upper limit for the quarantine size of 4Gb.
@@ -77,7 +77,7 @@ void initFlags() {
7777
}
7878
if (f->ThreadLocalQuarantineSizeKb < 0) {
7979
const int DefaultThreadLocalQuarantineSizeKb =
80-
FIRST_32_SECOND_64(256, 1024);
80+
FIRST_32_SECOND_64(64, 256);
8181
f->ThreadLocalQuarantineSizeKb = DefaultThreadLocalQuarantineSizeKb;
8282
}
8383
// And an upper limit of 128Mb for the thread quarantine cache.

0 commit comments

Comments
 (0)
Please sign in to comment.