Reiserfs file system
Blue forest http://www.lslnet.com, August 28, 2000 21:55
1. What is Reiserfs?
Reiserfs is a new file system that you can choose to load your Linux operating system and other applications and data files in the blue dot Linux. It contains data, including file data, file name, and log support through a distinctive way-full balance tree structure. Reiserfs also supports massive disks and disk arrays, and can continue to protect quickly and high efficiency. The Reiserfs file system has been used in high-end UNIX systems such as SGI, etc.
2. REISERFS features (comparison with EXT2):
Reiserfs has many advantages over traditional file system --ext2 on Linux, in the following.
Search way REISERFS is based on balanced tree file system structure, especially for a large number of files, such as file systems on the server, search speed is faster than EXT2; EXT2 uses local two-point lookup method, comprehensive performance is not REISERFS.
Spatial allocation and utilization The directory in Reiserfs is fully dynamically allocated, so there is no situation in which common disk space that cannot be recycled in EXT2 is not available. Reiserfs Sub-file (<4K) can directly store the tree, small file read, and write speed faster, and the tree node is aligned by byte, the small file can share the same hard disk block, save a lot of space. EXT2 uses fixed-size block allocation strategies, that is, less 4K small files should occupy 4K space, resulting in a serious space for space.
The advanced log mechanism Reiserfs has an advanced log (the unfinished file operation does not affect the integrity of the entire file system structure when the system is accidentally crashing. Although EXT2 is very strong, once the file system is not turned off, it will have to perform a long inspection system data structure, which is necessary to prevent data loss. Operation. For larger server file systems, this "file system check" may continue for hours, which long is unacceptable under many occasions. A technology "log file system" to solve this problem. With the help of the log, each change in the data structure is recorded, the logs ensure that the corresponding logs have been written to the hard disk before each actual data modification. Because of this, when the system suddenly crashes, it can restore a complete system after the next time a few seconds, the system can be used quickly.
Supporting massive disks and excellent comprehensive performance Reiserfs is a fairly modern file system, in contrast, although performance is already good, but its design is only a standard in the 1980s. Reiserfs' appearance, so that Linux has a high-end commercial UNIX like IRIX / AIX. Reiserfs can easily manage the hundred g of the file system, there is a place in enterprise applications, due to its efficient storage and fast small file I / O features, it also performs well on the desktop system: start the X-window system Time REISERFS is less than EXT2 less. EXT2 cannot manage a single file of 2G, which also makes Reiserfs excellent in some large enterprise applications than EXT2.
3. Disadvantage
Reiserfs a shortcoming of the most critical criticism is that every version of the upgrade, it will be reformatted once, and this shortcoming is also improved.
4. REISERFS origin and future
On July 23, 1997, Hans Reiser announced his REISERFS file system based on balanced tree structure. This is the first public appearance of Reiserfs. Since then, Reiserfs has been developing and developing under the development group under the Hans Reiser and the leadership. SUSE Linux also has a major help in its development. Since Reiserfs has some very useful features, it is more important that it is much faster than ext2fs, so it is quickly used by many people. It is said that the version of the Linux kernel 2.4.0 may use Reiserfs as its file system. Current Reiserfs can only be used on Intel structural systems, but the Reiserfs version that supports other architectures is also actively developed. We are waiting for the arrival of REISEFS that is more powerful and compatible. Attachment: How to add a Reiserfs file system
Introduction
The Reiserfs file system is a new Linux file system. It consists of data, including file data, file name, and log support through a distinctive way - full balance tree structure, and can continue to maintain quickly search speed and high efficiency on it. The Reiserfs file system has always been used on high-end UNIX systems such as SGI.
Reiserfs is developed and developed under the development group under Hans Reiser and its leadership, and SUSE Linux also helped its development. Since Reiserfs has some very useful features, it is more important that it is much faster than ext2fs, so it is quickly used by many people. It is said that the version of the Linux kernel 2.4.0 may use Reiserfs as its file system. Current Reiserfs can only be used on Intel structural systems, but the Reiserfs version that supports other architectures is also actively developed. We are waiting for the arrival of REISEFS that is more powerful and compatible.
installation
Download the Reiserfs patch from http://www.devlinux.com/namesys, make sure that the downloaded patch version is consistent with your kernel version.
After downloading, log in to the system as root, switch to / usr / src / linux directory, execute the command:
#gunzip /Path/to/Linux-2.2.16-Reiserfs-3.5.22-patch.gz
#patch -p1 -i /path/to/linux-2.2.16-Reiserfs-3.5.22-PATCH
After doing the above two steps, recompile KERNEL, compile Reiserfs into kernel or make a module.
Reiserfs related applications under the / usr / src / linux / fs / reiserfs / utils directory. You can install them with the following:
#mkdir bin
#make
#make install
Finally, you can re-format a already existing partition with the "fdisk" command or reformat a already existing partition with the "mkreiserfs" command. Specifies the Reiserfs type to load this partition, such as "mount -t reiserfs / dev / hda2 / down" so you can use this new partition.
Excerpted from: http://www.bluepoint.com.cn