Moditha Hewasinghage
2018-07-20 14:16:55 UTC
Hi,
I have been running some experiments on cache usage in MongoDB (3.6) with
wiredtiger and I think there might be an issue on the cache eviction
policy. This is the setup environment i have specified.
storage:
syncPeriodSecs: 60
journal:
enabled: false
dbPath: "C:/data/mongo/pokec2"
wiredTiger:
engineConfig:
cacheSizeGB: 0.25
journalCompressor: "none"
collectionConfig:
blockCompressor: "none"
indexConfig:
prefixCompression: false
I have 5 collections with the same data including the _id and I query a
random _id from every collection. I do this for multiple iterations and
after each iteration I check the cache usage using collection.getStats()
and looking into *wiredTiger.cache.bytes currently in the cache. *As you
can see from the attached image the eviction happens on on a single
collection and it keeps on going low until a certain point and then another
one is evicted from the cache. This trend continues while one of the
collections keeps growing. The evicting and the growing collections are the
same.
In my openion this seems like a flow in the cache eviction process and how
the priority is given to each of the collections. Because they are
identical in every aspect. Can anyone help me with this
I have been running some experiments on cache usage in MongoDB (3.6) with
wiredtiger and I think there might be an issue on the cache eviction
policy. This is the setup environment i have specified.
storage:
syncPeriodSecs: 60
journal:
enabled: false
dbPath: "C:/data/mongo/pokec2"
wiredTiger:
engineConfig:
cacheSizeGB: 0.25
journalCompressor: "none"
collectionConfig:
blockCompressor: "none"
indexConfig:
prefixCompression: false
I have 5 collections with the same data including the _id and I query a
random _id from every collection. I do this for multiple iterations and
after each iteration I check the cache usage using collection.getStats()
and looking into *wiredTiger.cache.bytes currently in the cache. *As you
can see from the attached image the eviction happens on on a single
collection and it keeps on going low until a certain point and then another
one is evicted from the cache. This trend continues while one of the
collections keeps growing. The evicting and the growing collections are the
same.
In my openion this seems like a flow in the cache eviction process and how
the priority is given to each of the collections. Because they are
identical in every aspect. Can anyone help me with this
--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/fb6f5caa-7d77-4512-8d66-da76dc463006%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/fb6f5caa-7d77-4512-8d66-da76dc463006%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.