Skip to content

For help, click the link below to get free database assistance or contact our experts for personalized support.

MongoDB XFS Filesystem type

Description

This check warns if DBPATH is not using the XFS filesystem type.

Resolution

To avoid performance issues when using EXT4 with WiredTiger, MongoDB Documentation strongly recommends using the XFS file system type with WiredTiger storage engine for data bearing nodes.

  • In general, if you use the XFS file system, use at least version 2.6.25 of the Linux Kernel.
  • If you use the EXT4 file system, use at least version 2.6.28 of the Linux Kernel.
  • On Red Hat Enterprise Linux and CentOS, use at least version 2.6.18-194 of the Linux Kernel.
  • XFS is a high-performance filesystem that is optimized for large files and high-throughput workloads.
  • XFS supports the preallocation technique used by MongoDB to efficiently allocate space for new files and data writes.
  • XFS also supports the noatime mount option, which disables the update of access time for files. This can improve performance by reducing the number of disk writes required for file access.

Overall, the combination of the WiredTiger storage engine with XFS filesystem provides high performance and efficient storage for MongoDB workloads, especially in write-heavy scenarios.

Need more support from Percona?

Percona experts bring years of experience in tackling tough database performance issues and design challenges.