Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6266

mongotop reports different lock times with --locks than without

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.1.2
    • Tools
    • None
    • ALL

    Description

      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

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: