Many computer novices will ask such a question, why the mechanical hard disk I used before will slow down after a period of time, and the system may need to be reinstalled after a year or two. If you ask a computer expert at this time, the expert always said that I often do disk fragmentation management. At first, I didn’t know why I needed to use it, but after sorting it out, I found it was a lot faster. And this year I changed to a gaming laptop. , Using solid-state hard drives, but the master refused to let me do defragmentation.
First of all, we need to know what is the generation of disk fragmentation. In fact, the occurrence of fragmentation is due to the fact that the file partition table is not continuously stored when the content of the file is put into the hard disk, so that after deleting the file, some space is not released, which causes fragmentation. When the physical memory required by the application program is insufficient, the operating system generally generates a temporary swap file on the hard disk, and uses the hard disk space occupied by the file to virtualize it into memory. The virtual memory management program frequently reads and writes to the hard disk and generates a large amount of fragmentation, which is the main reason for the fragmentation of the hard disk.
The most common reason for fragmentation is downloading large files, because the downloaded large files are forced to be divided into several fragments and stored in the hard disk. Therefore, downloading is one of the important reasons for fragmentation. In addition, frequent deletion of files will also produce a large amount of disk fragments. The more frequent the deletion and modification of files, the more fragments there will be. The more file fragments on the disk, the slower the system reads and creates new files. This is mainly due to the fact that the hard disk needs to jump between multiple fragments when reading files, which increases the latency of waiting for the disk to rotate to a specified sector and the seek time required for the head to switch tracks.
The main principle of the disk defragmentation program is to arrange the scattered data on the hard disk in an orderly manner to reduce the addressing time and increase the access speed of the disk. At the same time, cleaning up the disk fragment files in time also helps to maintain the health of the hard disk. There are many ways to defragment the disk. You can use the defragmentation tool that comes with WINDOWS, or you can use a third-party defragmentation software.
We know that the storage of solid-state hard drives is a granular unit, not in the form of traditional disk platters. Its essence is completely different. The main problem of solid-state drives is how to prevent frequent reading and writing of a certain storage unit from causing Flash aging. SSDs use " The "wear leveling" mechanism is about averaging the number of times to read and write each block. For SSD, there is no head drive mechanism, and its electronic reading and writing principle can quickly find any data. Therefore, the effect of defragmentation is minimal for SSD. In addition, due to the limited read and write life of the SSD, disk defragmentation will frequently erase and write the hard disk, which will affect the life of the SSD.