[DOCS-1067] Syncdelay docs are wrong Created: 29/Jan/13  Updated: 30/Oct/23  Resolved: 29/Jan/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Critical - P2
Reporter: Hiroaki Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 3 weeks, 1 day ago

 Description   

in manual

If --syncdelay is 0, mongod flushes all operations to disk immediately

The above statement is incorrect

These are correct:
program option

seconds between disk syncs (0=never, but not recommended)

db.cpp

warning: --syncdelay 0 is not recommended and can have strange performance

notes

  • msync() was never called when syncdelay is 0.
  • MemoryMappedFile::flushAll() was skipped by the line of

    if ( cmdLine.syncdelay == 0 ) 
       // skip flush calls



 Comments   
Comment by auto [ 29/Jan/13 ]

Author:

{u'date': u'2013-01-29T16:00:50Z', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: DOCS-1067 clarification of syncdelay
Branch: master
https://github.com/mongodb/docs/commit/e5dc3d486c9b9b87f01a9b119f0322aaf2eec822

Comment by auto [ 29/Jan/13 ]

Author:

{u'date': u'2013-01-29T14:56:44Z', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: DOCS-1067 syncdely documentation update
Branch: master
https://github.com/mongodb/docs/commit/8bb2f61e4aeda07fcb2f004222bd050a4891ff01

Generated at Thu Feb 08 07:40:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.