How to understand the wiredTiger internal cache of mongodb

the, WiredTiger internal cache with 1G memory on the server should occupy 256m., WiredTiger internal cache Mongo startup will put the data and index in the system cache filesystem cache., filesystem cache belongs to the system idle memory. What is the role of internal cache256M here?

May.16,2021

filesystem cache, as its name implies, is a faithful reflection of the content of the file, which is the content on the file system. WiredTiger compresses and encrypts data before it goes down (Enterprise Edition feature). In other words, the content in filesystem cache is compressed and encrypted, and if you want to use it, you have to decompress / decrypt it first. The unzipped / decrypted content is in WiredTiger Cache, which is the directly available content.
by the way, indexes are compressed using prefixes (that is, index keys), both on the file system and in the WT cache, without decompression. The data is converted between compression and decompression.

Menu