0
0条评论

官网可知 WiredTiger缓存有这么两种

– WiredTiger internal cache
– 32*0.6-1 = 18GB
– filesystem cache
– 有多少用多少

internal cache占用的内存如下所示
`
db.serverStatus().wiredTiger.cache
{
“bytes currently in the cache” : 15449130304, # 15G
“maximum bytes configured” : 19327352832, # 19G
}
`
而整个mongod实例的内存占用情况
`
db.serverStatus().mem
{

“resident” : 24119, # 24G
“virtual” : 27184, # 27G

}
`
可以这么说吗

resident = internal cache + filesystem cache
==> filesystem cache = 24 – 15 = 9G
那么
virtual = resident + ?