web123456

Difference between linux xfs and ext4

Starting from centos7.0, the default file system is xfs, centos6 is ext4, and centos5 is ext3

The biggest difference between ext3 and ext4 is that ext3 is in fsck(file system check, used to check and maintain inconsistent file systems. If the system loses power or the disk has problems, you can use itfsckCommand to check the file system) takes a lot of time (the more files, the longer the time), and ext4 will take a lot of time when fsck

ext4 is the fourth generation extended filesystem (English: Fourth EXtended filesystem, abbreviated as ext4) is a log file system under the Linux system and is a successor to the ext3 file system.
The file system capacity of ext4 reaches 1EB, while the file capacity reaches 16TB, which is a very large number. This may not be important for the average desktop and server, but it is very important for users of large disk arrays.
Ext3 currently only supports 32,000 subdirectories, while ext4 removes this limit and theoretically supports an unlimited number of subdirectories.

xfs is a very excellent log file system, designed by SGI. xfs is known as the industry's most advanced and most upgradeable file system technology
xfs is a 64-bit file system that supports a single file system with a maximum of 8EB minus 1 byte. It depends on the maximum block limit of the host operating system when deploying. For a 32-bit Linux system, the file and file system sizes are limited to 16TB
xfs does indeed do better than ext4 in many aspects. Ext4 is limited by disk structure and compatibility issues, and its scalability and scalability are indeed not as good as xfs. In addition, after many years of development, xfs has been better refined in various locks.