Write lock percentage

814 views
Skip to first unread message

russel...@ukd1.co.uk

unread,
Jul 20, 2010, 6:03:59 AM7/20/10
to mongodb-user
Hi guys,

I'm using mongodb 1.5.4 and I'm seeing high write lock % using munin -
it's rising by ~5% / day. I have > 200 million documents at the
moment, rising by ~14 million / day.

Is this something to worry about? It's starting to slow down a
little...


Russell

Kyle Banker

unread,
Jul 20, 2010, 8:44:15 AM7/20/10
to mongod...@googlegroups.com
You should look at total storage size and total index size and make sure that they're not getting unreasonable for the amount of RAM you have.

It's not so much number of document as amount of data. You can run db.stats() to have a look. If writes are taking longer as you add data, it's probably because less data is fitting in RAM and more is having to be paged from disk. Are you doing a lot of updates or just inserts?  Make sure that the query portion of the update is always using an index.

If you can provide db.stats() and db.collection.stats() along with info about your system, we can help more.


--
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.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.


Reply all
Reply to author
Forward
0 new messages