From 7d4ba074744a39500c13e317d9e89e16f7fc9b7f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Apr 2018 00:06:09 +0300 Subject: 512M is the maximum size that a 32-bit program can mmap --- plugins/Dbx_mdbx/src/dbintf.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Dbx_mdbx') diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp index 0a643f548c..230a01920e 100644 --- a/plugins/Dbx_mdbx/src/dbintf.cpp +++ b/plugins/Dbx_mdbx/src/dbintf.cpp @@ -182,12 +182,12 @@ STDMETHODIMP_(void) CDbxMDBX::SetCacheSafetyMode(BOOL bIsSet) int CDbxMDBX::Map() { int rc = mdbx_env_set_geometry(m_env, - -1 /* minimal lower limit */, - 64ul << 10 /* atleast 64K for now */, - 256ul << 20 /* 256M upper limit */, - 256ul << 10 /* 256K growth step */, - 512ul << 10 /* 512K shrink threshold */, - -1 /* default page size */); + -1, // minimal lower limit + 1ul << 20, // at least 1M for now + 512ul << 20, // 512M upper size + 1ul << 20, // 1M growth step + 512ul << 10, // 512K shrink threshold + -1); // default page size if (rc != MDBX_SUCCESS) return rc; -- cgit v1.2.3