Is large storageSize affecting performance

42 views
Skip to first unread message

howa

unread,
Sep 8, 2012, 5:30:51 AM9/8/12
to mongod...@googlegroups.com
We have a server with 4GB RAM, dataSize is 10G but storageSize is 46G, I am wondering if this huge storageSize affecting the performance of my MongoDB (e.g. query per second).

Should I compact my DB manually to reduce the size and improve the speed?

Thanks.

Octavian Covalschi

unread,
Sep 8, 2012, 8:44:25 AM9/8/12
to mongod...@googlegroups.com
Please google "mongodb working set", that is what will affect your performance...


--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

Barrie

unread,
Sep 13, 2012, 5:02:59 PM9/13/12
to mongod...@googlegroups.com
If you want to reduce the size of the files on disk for your database, you can run repair, since while mongodb reuses the space from files you've removed, the space isn't automatically reclaimed by the OS.  More info on doing this can be found here.

You can run compact on a single collection (also explained in link above) if you're looking to defragment extra space that could be caused by a series of deletes. 

As for whether or not storageSize is affecting the performance of mongodb-- it's only a value explaining the amount of free space allocated to a collection.

And yes, understanding the concept of the working set (see here) is always valuable :-)
Reply all
Reply to author
Forward
0 new messages