[SERVER-13060] powerOf2Sizes still default when mongod started with --setParameter newCollectionsUsePowerOf2Sizes=false Created: 05/Mar/14  Updated: 11/Jul/16  Resolved: 06/Mar/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.6.0-rc0
Fix Version/s: 2.6.0-rc2

Type: Bug Priority: Major - P3
Reporter: Mark Callaghan Assignee: Daniel Pasette (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

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]

Participants:

 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?



 Comments   
Comment by Githook User [ 06/Mar/14 ]

Author:

{u'name': u'Dan Pasette', u'email': u'dan@10mongodb.com'}

Message: SERVER-13060 restore --setParameter newCollectionsUsePowerOf2Sizes functionality
Branch: master
https://github.com/mongodb/mongo/commit/0b575dc0ba7a71d22bc4661d76f857d7be8a22ec

Generated at Thu Feb 08 03:30:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.