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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.6.0-rc0
    • Fix Version/s: 2.6.0-rc2
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      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]

      Description

      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?

        Attachments

          Activity

            People

            Assignee:
            pasette Daniel Pasette
            Reporter:
            mdcallag Mark Callaghan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: