Using the XFS File System with Better Performance
Principle
XFS is a highly scalable, high-performance, and robust journaling file system. It is perfect for processing large files while ensuring smooth data transmission. Therefore, the XFS file system is preferred if possible.
When creating an XFS file system, you can increase the block size of the file system. This method is more suitable for processing large files.
Procedure
- Run the following command to format the disks (sda1 is used as an example):
mkfs.xfs /dev/sda1
- Run the following command to specify the block size. The default block size is 4 KB (4096 B). The following command assumes that you need to change the block size to 8192 B.
mkfs.xfs /dev/sda1 -b size=8192
Parent topic: I/O Tuning