diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-01 09:06:52 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-01 09:06:52 +0200 |
commit | bdf8ada25760ca9f4054d9ac719c703ce8abc300 (patch) | |
tree | 60c7cddebf6333e3e1651a754a33b8b860f92c9d /common | |
parent | 814dfdaa1bdefe01c9eb37de52997c198a77f22c (diff) | |
download | sink-bdf8ada25760ca9f4054d9ac719c703ce8abc300.tar.gz sink-bdf8ada25760ca9f4054d9ac719c703ce8abc300.zip |
Reduce the maximum database size to 200MB until we have fixed the lmdb
issues.
https://phabricator.kde.org/T8723
With 200MB we can both deal with the 200MB files on disk, and we could
even load all of them (the 5 databases the resource uses), into memory.
Once the open problems are resolved we should be able to bump it back to
at least 20GB.
Diffstat (limited to 'common')
-rw-r--r-- | common/storage_lmdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 201e1a0..fe3b303 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -929,7 +929,7 @@ static size_t mapsize() | |||
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). I seems like the 128GB need to accomodate all databases we open in the process. | 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)10000; // 1MB * 10'000 | 932 | return (size_t)1048576 * (size_t)200; // 1MB * 200 |
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 |