mongotop reports different lock times with --locks than without

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.1.2
    • Component/s: Tools
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When concurrently running "mongotop" and "mongotop --locks", "mongotop --locks" shows much lower lock times than "mongotop" throughout the insertion run. I would also expect that the "." to sum to total for all dbs.

      Test:

      for (i = 0; i < 1000000; i++) { db.top.insert({x:i}); }
      

      mongotop --locks:

      dan:(git)mongo[master]/$ ./mongotop --locks
      connected to: 127.0.0.1
      
                                                                ns       total        read       write		2012-07-01T03:52:11
                                                               foo       665ms         0ms       665ms
                                                                 .       219ms        15ms       204ms
                                                              test         0ms         0ms         0ms
                                                             local         0ms         0ms         0ms
      

      mongotop:

      dan:(git)mongo[master]/$ ./mongotop 
      connected to: 127.0.0.1
      
                                                                               ns       total        read       write		2012-07-01T03:52:11
                                                                          foo.top       223ms         0ms       223ms
                                                                           admin.         1ms         1ms         0ms
                                                           dan2.system.namespaces         0ms         0ms         0ms
      

            Assignee:
            Eliot Horowitz (Inactive)
            Reporter:
            Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: