diff options
author | Dan Pasette <dan@10mongodb.com> | 2014-11-10 16:34:53 -0500 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2014-11-10 16:34:53 -0500 |
commit | c6e8e3d868660dc66b3bbd438cdc135df6356c5a (patch) | |
tree | a8b946cd1e3efd1a0748edd4eeff5c703796996d /src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp | |
parent | bcd704764ef9b7cfe8ae86c50dd34410df314e7b (diff) | |
download | mongo-c6e8e3d868660dc66b3bbd438cdc135df6356c5a.tar.gz |
Fix cache_size tuning error from commit:
1b446f240856cf93b32fcc62e1980d9cc2f42f87
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp index 52288e2c066..fc2f8fb928d 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp @@ -93,7 +93,7 @@ namespace mongo { ProcessInfo pi; unsigned long long memSizeMB = pi.getMemSizeMB(); if ( memSizeMB > 0 ) { - double cacheMB = memSizeMB / 50; + double cacheMB = memSizeMB / 2; cacheSizeGB = static_cast<int>( cacheMB / 1024 ); if ( cacheSizeGB < 1 ) cacheSizeGB = 1; |