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

Linux Software Raid Bitmap Configuration

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      The bitmap option with Linux Software Raid (i.e. md) is dangerous when used with MongoDB.

      To figure out if you're using bitmap, see bitmap in /proc/mdstat that the raid array was set up with this
      feature.

      While "bitmap" can improve recovery time for large RAID arrays, it can have disastrous effects on write performance because it needs to update the bitmap before it can do any write. This is particularly problematic when using journaling.

      This can potentially double the IOPS requirements (tripling if you need to read-modify-write the bitmap.) It also means that otherwise sequential I/O becomes non-sequential. To disable bitmap use the mdadm /dev/mdX --grow --bitmap none command.

      Immediately after disabiling bitmap, the io utilization on the server will reduce and throughput will stabilize.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago