From 1c499e40b3f0e676e2e954bf1d7c46873538d461 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 29 May 2018 10:24:02 +0200 Subject: Reduce the maximum database size to 10GB on windows. --- common/storage_lmdb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 3647472..201e1a0 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp @@ -928,8 +928,8 @@ static size_t mapsize() return (size_t)1048576 * (size_t)1000; // 1MB * 1000 } #ifdef Q_OS_WIN - //Windows home 10 has a virtual address space limit of 128GB(https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx#physical_memory_limits_windows_10) - return (size_t)1048576 * (size_t)100000; // 1MB * 100'000 + //Windows home 10 has a virtual address space limit of 128GB(https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx#physical_memory_limits_windows_10). I seems like the 128GB need to accomodate all databases we open in the process. + return (size_t)1048576 * (size_t)10000; // 1MB * 10'000 #else //This is the maximum size of the db (but will not be used directly), so we make it large enough that we hopefully never run into the limit. return (size_t)1048576 * (size_t)100000; // 1MB * 100'000 -- cgit v1.2.3