File System Requirements

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 文件系统要求

| username: Clover

Is there anything unsuitable about XFS? Can anyone explain?

| username: zhanggame1 | Original post link

It is said that XFS is not as stable as EXT4 and has performance fluctuations.

| username: Fly-bird | Original post link

In fact, both can be used. The official recommendation is as follows: based on our production environment practice, it is best to use SSD physical disks, as cloud disk IO is not sufficient.

| username: redgame | Original post link

I recommend ext4.

| username: 大飞哥online | Original post link

xfs: Supports single volumes up to 8EiB, with a maximum file size of 8EiB. It more efficiently supports parallel IO operations, has better scalability on RAID, and handles high multi-threaded concurrent pressure better than ext4. However, it cannot compress and performs poorly when deleting a large number of files. It is better suited for scenarios with high demands for large file read/write and throughput, and has strong scalability for handling large files.

ext4: Maximum volume of 1EiB and maximum file size of 16TiB. It has mechanisms like journal checksums and delayed allocation, which can better protect data integrity and consistency. It is better suited for scenarios with high demands for file deletion and fault tolerance, and is more efficient at handling small files.

| username: TiDBer_vfJBUcxl | Original post link

xfs is also an option, but the official recommendation is to use ext4.

| username: TiDBer_vfJBUcxl | Original post link

Some previous posts mentioned that XFS has a risk of data loss. To be safe, it’s better to use ext4 in a production environment.

| username: ShawnYan | Original post link

XFS is also fine, it depends on your own needs.

| username: cassblanca | Original post link

I’ve used xfs without any issues.

| username: 像风一样的男子 | Original post link

In fact, both can be used. If you are pursuing extreme performance, use ext4. In high concurrent read and write scenarios, the xfs file system can have a certain impact on the performance of NVMe SSDs.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.