Also, the "disk fragmentation" issue in Windows and Linux systems
Source: Internet
Author: User
Also, for details about the "disk fragmentation" Problem in Windows and Linux systems-general Linux technology-Linux technology and application information, see the following. People who use Windows operating systems have the habit of regularly organizing disk fragments to maintain the system. It seems that Windows also has the automatic sorting function, which usually shows that the hard drive lights are always on and the disk fragments are being organized by Windows. However, users using Linux, Mac, and other * Unix systems do not have such a "hobby" because their disks usually do not need to be fragmented, because the number of fragments is small and the impact is very small.
First, describe the concept of fragmentation. fragmentation is the storage space that cannot be used on the hard disk, rather than the so-called hardware damage.
In short, the cause of fragmentation is caused by operations such as file writing and file content changes. The generation of disk fragments is closely related to the file system and the operating system, to put it simply, according to the file operation method in Windows (writing without interval), more and more disk fragments will be generated and larger. In Linux, there will be fewer and fewer disk fragments for file system operations, because Linux uses the distributed storage concept and reserves space (which can be considered as "virtual fragments") to prevent fragments from being generated. When the remaining disk space is less than 5%, it is considered as fragments. A warning is usually issued when the available space is less than 8%.
In more detail, it is the file system in Windows, such as FAT and NTFS. Due to the size of the file cluster and the file operation method in the Windows operating system, a large number of disk fragments are generated, for example, Windows operating systems frequently use virtual memory (page files) to frequently write and delete hard disks. On the other hand, physical memory is not fully utilized, resulting in waste. It can be said that all disk fragments are squeezed out by Windows "placeholder". The sequential writing mode of Windows (starting from the partition) eventually leads to the ubiquitous fragmentation.
In addition, the disk fragments include internal and external fragments, and the causes are also complex. If you are interested, you can study it on your own.
* Unix file systems are excellent. The step-by-step format of the file system storage space and the write mode to the disk by the Linux operating system make the disk fragments seldom generate, because the file system reserves space, the operating system makes overall planning of the space, usually using enough continuous storage space for writing, instead of "squeezing" the small gap between other files, move the location of other files. As long as the remaining space is large enough (more than 5%), there will be no fragmentation issues in the Linux File System, so that the Linux operating system is not a "Placeholder ", there is no problem of "crowding out" disk fragments.
In addition, * the partition concept of Unix systems. If Linux and Mac partitions are all reasonably divided, it is recommended to mount/var to separate partitions to easily generate fragments. The page files used by the physical memory will also be forcibly mounted to a separate/swap during installation. In Linux, the memory allocation mode and the large cache mechanism also reduce the write operations on swap partitions (or page files) in virtual memory, greatly reducing the generation of fragments.
Disk fragmentation slows down the reading and writing of files in the operating system, affects efficiency and performance, and results in a waste of space. Disk fragments can cause data loss and system crash.
It is precisely because * Unix (such as Linux) systems are stable that excellent file systems will be widely used in large workstations. Like a banking system, with 24-hour data operations throughout the year, the hard disk capacity is extremely huge. If there are many fragments, can it be used? (who dares to use it !)? If so, how long does it take to segment a disk?
Disk fragments in Linux are not a problem. You can delete unnecessary files on a regular basis to ensure that the hard disk has sufficient available space.
In Windows, disk fragment is usually performed every week or every month. Therefore, Windows comes with disk sorting software. Of course, there are also necessary advanced paid software, disk fragmentation, and data security.
PS: I am using EXT3 and ReiserFS file systems. It is said that ZFS is very good and never used. It seems that GRUB boot cannot be used, which may be troublesome to use.
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