Ext3 is a log-type file system that extends the ext2 system and is compatible with ext2. The advantage of a log file system is that the file system has a cache layer for operation. If the file system is not used, you must detach the file system so that the data on the cache layer can be written back to the disk. Therefore, when the system is shut down, all its file systems must be shut down before shutdown. If the file system is shut down before shutdown (such as power failure), the file system information may be inconsistent after the next reboot.
Ext3 is a log-type file system that extends the ext2 system and is compatible with ext2. The advantage of a log file system is that the file system has a cache layer for operation. If the file system is not used, you must detach the file system so that the data on the cache layer can be written back to the disk. Therefore, when the system is shut down, all its file systems must be shut down before shutdown. If the file system is shut down before shutdown (such as power failure), the file system information may be inconsistent after the next reboot. Therefore, the file system must be reorganized, fix inconsistencies and errors. However, this entire task is quite time-consuming, especially for large-capacity file systems, and it cannot guarantee that all data will not be lost. To overcome this problem, use the so-called 'journal File System )'. The most important feature of such a file system is that it records the write operations of the entire disk in a certain area of the disk, so that you can trace back when necessary. Because Data Writing involves many details, such as changing file headers, searching for disk writable space, and writing data segments one by one. If every detail is interrupted, this will cause inconsistency of the file system, and thus need to be reorganized. However, in a log-type file system, because every detail is recorded in detail, when a process is interrupted, the system can directly trace and reorganize the interrupted part based on these records, it does not have to take time to check other parts. Therefore, the reorganization process is fast and almost no time is required.
Ext4 is the default file system of Karmic Koala. Ext4 is an ext3 extended log file system. It is the fourth version of the original extended File System (ext or extfs) specially developed for Linux.
Prospects for the next-generation Linux File System: whether it is BTRFS or ext4
Compared with Ext3, Ext3 has the following features:
Compatibility
Upgrading Ext3 to ext4 can provide higher system performance, eliminate storage restrictions, and obtain new functions without re-formatting partitions. ext4 will use a new file structure for new data, the old file is retained. Mounting an ext3 File System to ext4 does not require a new disk format, and ext3 can be used for re-mounting. This only loses the advantage of ext4.
Large file system/File Size
Currently, ext3 supports a file system of up to 16 TB. The maximum size of a single file is 2 TB. Ext4 adds a 48-bit block address, which supports a maximum of 1 EB file system and a single 16 TB file.
1EB = 1024PB = 2 ^ 50;
1 Pb = 1024 TB = 2 ^ 40;
1 TB = 1024 GB = 2 ^ 30.
Subdirectory scalability
EXT3 each directory contains a maximum of 32000 subdirectories. Subtract and..., that is, 31998
Ext4 breaks this limit and can have unlimited number of subdirectories.
Extents
Traditional Unix-derived file systems use Indirect block ing schemes to track each block for corresponding data files, which is inefficient for large files. Modern file systems use different methods called "extends ". Extends basically refers to a series of continuous physical fast. Data is usually called data in the following N blocks. A mb file can be allocated to an extends instance. Instead of creating an indirect ing table with 256000 blocks, the large files (4 kb for each block) are divided into many ranges. Extends improves performance and reduces fragmentation. Extends encourages continuous disk layout.