diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-29 10:24:02 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-29 10:24:02 +0200 |
commit | 1c499e40b3f0e676e2e954bf1d7c46873538d461 (patch) | |
tree | e589d4d1a3c40eb6902f43a40c5324ad78a4ca13 /common/storage_lmdb.cpp | |
parent | 2e0388f5d81925239422ba6561791d866252d410 (diff) | |
download | sink-1c499e40b3f0e676e2e954bf1d7c46873538d461.tar.gz sink-1c499e40b3f0e676e2e954bf1d7c46873538d461.zip |
Reduce the maximum database size to 10GB on windows.
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r-- | common/storage_lmdb.cpp | 4 |
1 files 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() | |||
928 | return (size_t)1048576 * (size_t)1000; // 1MB * 1000 | 928 | return (size_t)1048576 * (size_t)1000; // 1MB * 1000 |
929 | } | 929 | } |
930 | #ifdef Q_OS_WIN | 930 | #ifdef Q_OS_WIN |
931 | //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) | 931 | //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. |
932 | return (size_t)1048576 * (size_t)100000; // 1MB * 100'000 | 932 | return (size_t)1048576 * (size_t)10000; // 1MB * 10'000 |
933 | #else | 933 | #else |
934 | //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. | 934 | //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. |
935 | return (size_t)1048576 * (size_t)100000; // 1MB * 100'000 | 935 | return (size_t)1048576 * (size_t)100000; // 1MB * 100'000 |