Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1067

Syncdelay docs are wrong

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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
        

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            crumbjp Hiroaki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 13 weeks, 2 days ago