Comparison and Selection of file systems in Linux

Source: Internet
Author: User
Article Title: Comparison and Selection of file systems in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. I have been using reiserfs in Linux, that was probably because of a sudden power failure shortly after linux was used. After that time, the Linux system will no longer be able to start. I heard that reiserfs can be automatically repaired after power failure, and the speed is very fast, so I started my reiserfs journey.

In the past, I thought that all linux file systems (such as ext2, ext3, reiserfs, jfs, and xfs) had no fragments, but encountered the same situation as windows: it runs quickly after the system is installed, and the slower it is to use. I recently saw some people on the Arch Linux Forum saying that reiserfs is fragmented and slow, so I began to suspect that I have used reiserfs for many years, so I searched for this article.

Filesystems (ext3, reiser, xfs, jfs) comparison on Debian Etch is a report recently written about testing various file systems on Debian Etch, skipping some specific data, I put the results here for reference by friends who need the same:

Use ReiserFS, JFS, or XFS to maximize the partition capacity (that is, to reduce the waste of space.
To quickly create a file system and quickly mount partitions, use JFS or XFS
To quickly operate large files, use JFS or XFS. To minimize CPU usage, JFS will be better.
For a large directory tree, use EXT3 or XFS. It is recommended that you use ReiserFS for a large number of small files. It is better to use XFS or ext3 for directory trees consisting of files of different sizes from 10 KB to 5 MB. Although JFS can minimize the cpu usage, it is still slow.
List contents in a directory and search under a specific directory tree. (1) faster but higher cpu usage (ReiserFS, XFS); (2) slower but lower cpu usage (ext3, JFS ). XFS is a good compromise, it has a relatively fast speed, moderate cpu usage and acceptable range of page errors.

Conclusion: ext3 wastes too much space and is slow to format. ReiserFS has a long Mount time, and many page errors may occur during daily operations. JFS has the lowest CPU usage. XFS should be the most suitable File System for writers and small commercial file servers, because:

It can maximize the use of partitions.
It is the fastest way to create, mount, and detach data.
It is the fastest way to operate large files larger than MB.
It is the second fastest operation for Small and Medium files
It finds a better balance between the search time and cpu usage of a large directory tree.
It is not the most cpu usage, but the system resources occupied are acceptable on older machines.
Of course, XFS is the best choice for daily applications because of its speed and scalability.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.