It is stated in the MongoDB documentation FAQ (https://docs.mongodb.com/manual/faq/storage/#wiredtiger-storage-engine) :
Avoid increasing the WiredTiger internal cache size above its default value.
which should be 50 % ou 60 % of RAM by default
and
The storage.wiredTiger.engineConfig.cacheSizeGB limits the size of the WiredTiger internal cache. The operating system will use the available free memory for filesystem cache, which allows the compressed MongoDB data files to stay in memory.
I don't understand this statement. Does the WT cache contains the working set in terms of compressed data and index ? If so, do we need to keep extra memory for some kind of memory mapped files for MongoDB data files ?
My db.serverStatus().mem
shows this :
{
"bits" : 64,
"resident" : 10518,
"virtual" : 12131,
"supported" : true,
"mapped" : 0,
"mappedWithJournal" : 0
}
So I would guess I've no memory mapped bytes, then I can increase de WT cache ?
Thanks !