Skip to content

Commit c7207cd

Browse files
[CAS] Increase the default file allocation size by 50%
Increase the file size to avoid overflow for big projects.
1 parent a9171b4 commit c7207cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CAS/OnDiskGraphDB.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,8 +1397,8 @@ Expected<std::unique_ptr<OnDiskGraphDB>> OnDiskGraphDB::open(
13971397
constexpr uint64_t MB = 1024ull * 1024ull;
13981398
constexpr uint64_t GB = 1024ull * 1024ull * 1024ull;
13991399

1400-
uint64_t MaxIndexSize = 8 * GB;
1401-
uint64_t MaxDataPoolSize = 16 * GB;
1400+
uint64_t MaxIndexSize = 12 * GB;
1401+
uint64_t MaxDataPoolSize = 24 * GB;
14021402

14031403
if (useSmallMappedFiles(AbsPath)) {
14041404
MaxIndexSize = 1 * GB;

0 commit comments

Comments
 (0)