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

powerOf2Sizes still default when mongod started with --setParameter newCollectionsUsePowerOf2Sizes=false

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc2
    • Affects Version/s: 2.6.0-rc0
    • Component/s: None
    • Labels:
      None
    • ALL
    • Hide

      Started mongod with

      numactl --interleave=all bin/mongod --config bin/mongodb.config --setParameter newCollectionsUsePowerOf2Sizes=false
      

      Confirm command line option was used:

      > db.adminCommand({"getParameter":1, "newCollectionsUsePowerOf2Sizes":1})
      { "newCollectionsUsePowerOf2Sizes" : false, "ok" : 1 }
      

      Look at collection created after mongod was started and it uses powerOf2Sizes because userFlags:1

      
      

      > db.sbtest2.stats()
      {
      "ns" : "sbtest.sbtest2",
      "count" : 1964000,
      "size" : 471360000,
      "avgObjSize" : 240,
      "storageSize" : 629637120,
      "numExtents" : 16,
      "nindexes" : 2,
      "lastExtentSize" : 168742912,
      "paddingFactor" : 1,
      "systemFlags" : 1,
      "userFlags" : 1,
      "totalIndexSize" : 124046272,
      "indexSizes" :

      { "_id_" : 54820080, "k_1" : 69226192 }

      ,
      "ok" : 1
      }
      {noformat]

      Show
      Started mongod with numactl --interleave=all bin/mongod --config bin/mongodb.config --setParameter newCollectionsUsePowerOf2Sizes=false Confirm command line option was used: > db.adminCommand({"getParameter":1, "newCollectionsUsePowerOf2Sizes":1}) { "newCollectionsUsePowerOf2Sizes" : false, "ok" : 1 } Look at collection created after mongod was started and it uses powerOf2Sizes because userFlags:1 > db.sbtest2.stats() { "ns" : "sbtest.sbtest2", "count" : 1964000, "size" : 471360000, "avgObjSize" : 240, "storageSize" : 629637120, "numExtents" : 16, "nindexes" : 2, "lastExtentSize" : 168742912, "paddingFactor" : 1, "systemFlags" : 1, "userFlags" : 1, "totalIndexSize" : 124046272, "indexSizes" : { "_id_" : 54820080, "k_1" : 69226192 } , "ok" : 1 } {noformat]

      I started mongod with --setParameter newCollectionsUsePowerOf2Sizes=false, then created a new collection and db.$collection.stats() has userFlags:1 which means that powerOf2Sizes is enabled for that collection.

      Given the work described here, shouldn't this not have used powerOf2Sizes?

            Assignee:
            dan@mongodb.com Daniel Pasette (Inactive)
            Reporter:
            mdcallag Mark Callaghan
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: