1
使用11 GB工作集(db.records.totalSize()
),我运行了touch
命令,以便让Mongo在我的16 GB RAM盒上尽可能多地使用内存。在运行触摸之前,serverStatus
命令显示Mongo的mem.resident
等于(大约6 GB RAM)。Mongo`touch`命令意外结果
db.runCommand({ touch: "records", data: true, index: true })
{ "ok" : 1 }
但是,在运行touch之后,Mongo使用的RAM大致相同。
"mem" : {
"bits" : 64,
"resident" : 5821, /* only a 21 MB increase */
"virtual" : 29010,
"supported" : true,
"mapped" : 14362,
"mappedWithJournal" : 28724
},
为什么touch
命令几乎增加蒙戈多少内存使用(mem.resident)?