[SERVER-25121] mongod --help lumps general and MMAP-only options together Created: 18/Jul/16  Updated: 06/Dec/22  Resolved: 12/Apr/19

Status: Closed
Project: Core Server
Component/s: Admin, Storage
Affects Version/s: 3.3.9
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Asya Kamsky Assignee: Backlog - Storage Execution Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

Not sure which component this is but doing mongod --help you get

Storage options:
  --storageEngine arg                   what storage engine to use - defaults
                                        to wiredTiger if no data files present
  --dbpath arg                          directory for datafiles - defaults to
                                        /data/db
  --directoryperdb                      each database will be stored in a
                                        separate directory
  --noprealloc                          disable data file preallocation - will
                                        often hurt performance
  --nssize arg (=16)                    .ns file size (in MB) for new databases
  --quota                               limits each database to a certain
                                        number of files (8 default)
  --quotaFiles arg                      number of files allowed per db, implies
                                        --quota
  --smallfiles                          use a smaller default file size
  --syncdelay arg (=60)                 seconds between disk syncs (0=never,
                                        but not recommended)
  --upgrade                             upgrade db if needed
  --repair                              run repair on all dbs
  --repairpath arg                      root directory for repair files -
                                        defaults to dbpath
  --journal                             enable journaling
  --nojournal                           disable journaling (journaling is on by
                                        default for 64 bit)
  --journalOptions arg                  journal diagnostic options
  --journalCommitInterval arg           how often to group/batch commit (ms)

Of these a bunch are only MMAPV1 applicable. Using one of those options with 3.3.9 gets you just this in the logs:

2016-07-18T14:42:10.934+1000 I CONTROL  [initandlisten] options: { net: { port: 20000 }, storage: { dbPath: "/data/quotas", mmapv1: { quota: { enforced: true, maxFilesPerDB: 6 } } } }
2016-07-18T14:42:10.987+1000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=7680M,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),l

Of course, wired tiger being default, this option is apparently just being ignored.



 Comments   
Comment by Eric Milkie [ 12/Apr/19 ]

The MMAP options have been removed in 4.1.

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