I’ve started benching MongoDB’s MMAPv1 vs WiredTiger on my local setup and before even getting out of the gate, I’m seeing some performance results that I wouldn’t have expected.
I have a java program that does 2 batch inserts. The first batch is generally ~10K and the second ~1 million documents into 2 unindexed collection (except the default id index). This first test was single threaded and I’ve run the loop 7 times and it appears as if MMAP is outperforming the wired tiger engine by ~6-7 times. (File: PC_MMAP_Insert.txt & PC_WiredTiger_Insert.txt, show these results)
The java app being single threaded isn’t going to utilize wired tiger’s document level concurrency but I would expect the single threaded performance to be relatively equal. And this thought was backed up by benchmark performance results I’ve found online. http://www.acmebenchmarking.com/2015/02/mongodb-v30-compression-benchmarks.html shows wired tiger with snappy compression should be in the range of -10% with respect to performance.
Multiple other tests have all backed up my results, including using mongostat and analyzing the inserts/sec of the engine. File: mongoStat_WiredTiger_MMAP.txt shows WiredTiger getting ~15K writes / sec while MMAP is at ~70K (~5 times)
Interesting to note is that when I disabled Journaling with WiredTiger the insert speeds were approximately equal to MMAP. I’ve started in on the hunt for how MMAP vs WiredTiger write the journal. I see MMAP uses a 1 GB file while WiredTiger appears to write only 100 MB files. Watching the journal directory as WiredTiger performs appears to take ~30 seconds before the 100 MB PrepLog file can continue to the next entry. I believe the bottleneck is in this process for whatever reason…
So when it comes down to it does anyone have any idea why wired tiger is performing so poorly in comparison to MMAPv1?
My PC specs are:
Processor: I7-3770 C...@3.40 GHz 3401 MHz 4 Core, 8 Logical Processors
Hard drive: Samsung HE160HJ SCSI
160 GB
7.2 K spin speed
RAM: 16 GB
Java App is using the mongo-java-driver-2.13.1
MongoDB v. 3.0.4 and when using wired tiger the configuration file includes
wiredTiger:
engineConfig:
cacheSizeGB: 12
collectionConfig:
blockCompressor: none
indexConfig:
prefixCompression: false
(As a side note, removing the compression settings does not have an impact on improving performance with this simple test)
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/595aab3b-1428-4e2f-8513-5660a5c08559%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/595aab3b-1428-4e2f-8513-5660a5c08559%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/595aab3b-1428-4e2f-8513-5660a5c08559%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.