[SERVER-2733] --dur does not honor --noprealloc Created: 10/Mar/11  Updated: 18/Nov/12  Resolved: 10/Mar/11

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 1.8.0-rc2
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Tony Hannan Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Operating System: ALL
Participants:

 Description   

mongod --dur still preallocates journal files even when --noprealloc is specified

Tony1:~# mongodb-linux-x86_64-1.8.0-rc2/bin/mongod --dbpath db --dur --replSet rs0 --noprealloc
note: noprealloc may hurt performance in many applications
Thu Mar 10 20:49:04 [initandlisten] MongoDB starting : pid=1743 port=27017 dbpath=db 64-bit
Thu Mar 10 20:49:04 [initandlisten] db version v1.8.0-rc2, pdfile version 4.5
Thu Mar 10 20:49:04 [initandlisten] git version: 460d32f86ba837a4f1dd41cfeb65eddee41df65f
Thu Mar 10 20:49:04 [initandlisten] build sys info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
Thu Mar 10 20:49:04 [initandlisten] journal dir=db/journal
Thu Mar 10 20:49:04 [initandlisten] recover : no journal files present, no recovery needed
Thu Mar 10 20:49:14 [initandlisten] preallocateIsFaster=true 95.44
Thu Mar 10 20:49:23 [initandlisten] preallocateIsFaster=true 96.86
Thu Mar 10 20:49:33 [initandlisten] preallocateIsFaster=true 104.7
Thu Mar 10 20:49:33 [initandlisten] preallocating a journal file db/journal/prealloc.0
Thu Mar 10 20:52:49 [initandlisten] preallocating a journal file db/journal/prealloc.1



 Comments   
Comment by Nelson Elhage [ 18/Nov/12 ]

This bug is ancient history by now, but in case anyone else stumbles upon it with the same question like I did, the (apparently undocumented) "--nopreallocj" option now disables journal preallocation.

Comment by Tony Hannan [ 11/Mar/11 ]

It would be nice if we could avoid preallocating journal files, especially for testing

Comment by Eliot Horowitz (Inactive) [ 10/Mar/11 ]

prealloc is for data files, not journal

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