Current location - Education and Training Encyclopedia - Graduation thesis - What are the benefits of defragmentation? What are his principles?
What are the benefits of defragmentation? What are his principles?
What are the benefits of defragmentation? What are his principles? What are the benefits of defragmenting disk C? Hello!

First of all, let me briefly explain how disk fragmentation is generated:

The files on the disk are arranged according to the time of storage, and so on. Theoretically, the files are arranged closely without gaps.

But we often modify files, so the new content is not directly added to the location of the original file, but placed at the end of the disk storage space, and the system will add a contact mark between these two sections.

When modifying multiple files, there will be many discontinuous files on the disk.

Once the file is deleted, the discontinuous space occupied will be empty and will not be filled automatically. Moreover, the newly stored files will not be placed in these places. These empty disk spaces are called "disk fragmentation".

From the above, we know that there will be fragments in each partition slot of the hard disk.

There are too many fragments and too many other discontinuous files. When the system operates files, it will greatly reduce the efficiency because of repeatedly looking for contact files, which directly reflects that it feels slow!

Knowing the basic principle of disk fragmentation, I think you should know the solution.

Generally, in all versions of Windows systems, there is a "Disk Defragmenter" under "Programs", "Accessories" and "System Tools". When executing this command, a large number of hard disks will be read and written, and a large number of scattered files will be placed at the end of the disk, and then written into the files associated with it. In the end, there will be basically no scattered files on the disk, so the execution speed of the system will be reduced.

Therefore, the remaining space of each disk can't be less than 15%, otherwise it can't be defragmented!

But we also know that disk defragmentation has a great influence on hard disk, and it is the most frequent hard disk reading and writing operation!

So, is it necessary to clean the hard disk? Take XP system as an example, its defragmenter has the function of "analysis". After the analysis, it will report to you. If it suggests that the disk needs defragmentation, then it really needs defragmentation.

Finally, there are many non-Windows defragmentation software, all of which claim to be fast and effective, and the famous Vopt is one of them. However, in fact, defragmentation software such as Vopt didn't really defragment the disk, just added some hyperlinks. After finishing, the speed may be fast on the surface, but it will soon return to the original chaotic state. If Vopt is good, why doesn't Microsoft integrate into the new version?

Therefore, the best defragmentation software comes with Windows, which physically defragments the disk in the real sense. Therefore, the execution speed is very slow and usually takes several hours.

Also, when defragmenting, don't run any programs. It is best to close all programs that run automatically and reside in memory, and close the screen saver. Otherwise, defragmentation will be extremely slow and even start again.

Intimate reminder:

First, if there are backup files of GHOST system in a partition slot, don't tidy up the disk, which will make the system recover incorrectly.

Second, if you can't analyze and sort it out under normal circumstances, you can do it in safe mode.

Safe Mode: Press and hold F8 key when starting, and select "Enter Safe Mode" when you have a choice.

Personally, I think defragmentation once a month is enough!

Thanks for browsing!

It is recommended to use windows Optimizer to clean up the garbage in the registry file. I have used it for three years. It has many functions and many optimization options, but I never use its optimization function, and sometimes it is unstable after optimization. There is nothing wrong with Windows, so it is best not to "optimize".

I only use its two functions of "junk file cleaning" and "registry file information cleaning". I want to remind you that the default version downloaded online is * * *. After you find out the junk files, you can only manually remove them one by one, which is very tiring. However, the registered version does not have this restriction. You can use the Delete All function. Many people registered the crack patch online.

Also, when you clean up the registry file information and click Delete All, it will advise you to back up the registry file instead of backing it up, which will only increase your system space, no problem. I used it for three years, and it has always been like this.

So, since you want to clean up the registry file, why not use Windows Optimization? The latest version should be version 6.9. Enter the Windows optimizer in the "search answer" you know and you will see a lot of information about it. Experience has proved that most people choose the right one!

What are the benefits of cleaning up disk fragmentation? Sure.

After cleaning, the available space of your computer disk will increase, and your computer can store more things.

However, if your disk utilization is low (for example, only 20%), you don't need to defragment your disk.

What are the benefits of disk defragmentation? After the computer is used for a period of time, due to the access and deletion of files, the files and available space on the disk will become scattered, one here and one there, which we call "fragmentation". If this situation is not sorted out, the access efficiency of the disk will be reduced. Disk defragmenter is to put the stored files in a continuous space, so that the available space of the disk becomes a whole. Disk is like a warehouse, its function is to store and place. What should we do when the warehouse is in chaos? It's not to tidy it up. Disk defragmentation is to sort out disks, delete and clean up useless things. Moreover, if there is an error in the disk, disk defragmentation can also repair the initial error or problem of the disk. If it is bad, the disk is executed by reading and writing. If reading and writing affect it, it is that the quality of the disk itself is not good. This has little to do with disk defragmentation. If the disk is neat, it will be convenient for the head to store things (I think this is the reason why the disk is faster after defragmentation), but it will reduce the problem of irregular fragmentation of the disk. .....

When the system is used for a long time, it will produce disk fragments. Excessive fragmentation will not only reduce the performance of the system, but also cause the loss of stored files and even shorten the life of the hard disk. What is disk fragmentation In the logical volume of Windows, files are not always stored in continuous just a bunch of disks, but scattered in different locations. When the physical memory required by the application is insufficient, Windows will generate a swap file (usually pagefile.sys) on the disk, and virtualize the disk space occupied by the file into memory, that is, virtual memory. Due to the frequent data exchange between physical memory and virtual memory, Windows virtual memory manager will read and write hard disk frequently, resulting in a large number of fragments, which is the main reason for disk fragmentation. In addition, another major cause of disk fragmentation is the temporary files frequently generated by the system or application. For example, when a browser browses a web page, it will produce a large number of disk fragments due to constant caching. In addition, when installing or downloading new software, the system usually stores files in the first sufficiently large continuous available space. If there is not enough free space, Windows will store as many files as possible in the largest available space, then store the remaining data in the next available space, and so on. What harm will excessive disk fragmentation do to the system? When the system executes a program, the head of the hard disk drive must first search the files needed for program execution, and then read the data into memory or disk cache. Search time is called Averageseektime in hard disk performance index, and the unit is milliseconds (ms). If the application-related files can be placed in the continuous space of the disk, the time of head search will be greatly reduced. The same is true when reading. It takes only one-fifth of the time for the hard disk to read the data in the sector below the head, and then move the head to another place to read the data. When reading a disk, the system will first check whether the data is in the cache, and if it is, read it directly; If not, read from the hard disk. When the same data needs to be read many times, the cache plays a great role, but it is powerless to read a file for the first time. Therefore, the search time and reading time greatly affect the efficiency of program execution. According to the official Microsoft document, the more fragments in the volume, the lower the performance of the computer's file input/output system. We can also understand that too many disk fragments cause the head to constantly search and read data belonging to a file in different places, thus reducing the efficiency and speed of system execution. In the long run, it will also reduce the service life of the hard disk. To sum up, it is necessary for us to analyze and sort out disk fragments regularly (for example, once a month). The disk defragmentation module currently provided by Windows Optimizer can analyze local volumes and defragment merged files and folders, so that each file or folder can occupy a separate and continuous disk space on the volume. In this way, the system can access files and folders more effectively and store new files and folders more effectively. By merging files and folders, Disk Defragmenter will also merge the available space on the volume to reduce the possibility of new file fragmentation. If it helps you, please remember to adopt it as a satisfactory answer, thank you! Wish you a happy life! Vaella

Adopt it

It does affect the disk to some extent, but it is a good habit to clean the disk regularly. Defragmentation can improve the speed of reading and writing files, but it may lead to some unnecessary dangers: 1. Do not read or write data during defragmentation. Many friends like to listen to songs and play games while defragmenting, which is very dangerous, because the hard disk rotates at high speed when defragmenting, and reading and writing data at this time is likely to lead to computer downtime or even hard disk damage. 2. It is not appropriate to defragment the disk frequently. Unlike other computer operations, the hard disk will continue to rotate at high speed. If the disk is often fragmented, the life of the hard disk may be shortened. It is recommended to organize it once a month or so. Step 3 get ready. Before defragmenting the disk, you should first scan the drive to find disk errors, which can prevent the system from mistaking some files for logical errors and causing file loss. 4. Don't cross-arrange under the dual system.

What are the benefits of disk defragmentation? Another advantage of regularly defragmenting the hard disk is that when using software such as hard disk data recovery experts to recover mistakenly deleted files, the chances of success are greater.

Of course, if you do these operations frequently, it is harmful to the hard disk. Disk defragmentation needs to analyze the underlying hard disk to determine which data can be moved and which data cannot be moved, and then sort the files. Before the data structure of the hard disk is formally arranged, it will continue to randomly read and write data to other clusters, and then move the data back to the appropriate location after the order is arranged. These operations will take up a lot of CPU and disk resources.

Peek at Disk Defragmentation from Nine Aspects

=================================================

1. What is disk fragmentation?

In fact, disk fragmentation should be called file fragmentation, because files are scattered in different parts of the whole disk, rather than in continuous clusters of disks.

[Blocked advertisement]

When the physical memory required by the application program is insufficient, the general operating system will generate a temporary swap file in the hard disk, and use the hard disk space occupied by the file as virtual memory. Virtual memory management programs frequently read and write hard disks, resulting in a large number of fragments, which is the main cause of hard disk fragmentation.

Other settings, such as temporary files or temporary file directories generated when IE browser browses information, will also cause a lot of fragmentation in the system. File fragmentation generally does not cause problems in the system, but too many file fragments will make the system look back and forth when reading files, which will lead to the decline of system performance and seriously shorten the life of the hard disk. In addition, excessive disk fragmentation may also lead to the loss of storage files.

=================================================

Second, how is disk fragmentation generated?

In partition slots, files are stored in different parts of the disk, rather than in continuous clusters of the disk. In the process of file operation, Windows system may call virtual memory to synchronize the management program, which will cause each program to read and write the hard disk frequently, resulting in disk fragmentation.

=================================================

Third, the principle of disk reading and writing operation

After understanding the causes of disk fragmentation, it is necessary for us to understand the reading and writing actions of the disk when the program is executed. Generally speaking, when a program is executed, the magnetic head of the disk drive will do the following work: first, search the files necessary for program execution, then read the data, and finally do post-reading processing-send the data to the disk cache and memory. Search time is called average seek time in hard disk performance index, and the unit is milliseconds (ms). At present, the average seek time of the mainstream hard disk is less than 9.5 ms ... If the relevant files of the application can be placed in the continuous space of the disk, the head search time will be greatly reduced. The same is true when reading. The time required to read the data in the sector below the magnetic head is only one-fifth of the time required to move the magnetic head to another position to read the same data. When reading a disk, the system first checks whether the data is in the cache, and if so, directly reads it; If not, access the disk, that is, read the disk. When you need to read the same data many times, the cache plays a very important role, but there is nothing you can do about reading a file for the first time. Therefore, the search time and reading time greatly affect the efficiency of program execution.

Why clean the disk? Windows can't automatically put every file in the most suitable position on the disk according to the principle of minimizing the head search time. So Microsoft added the "Disk Defragmenter" to Windows, and provided the "TaskMonitor" to track the disk activity during the program startup, so that the "Disk Defragmenter" can work more effectively. "TaskMonitor" is automatically executed when Windows starts (of course, "TaskMonitor" should be selected in "Startup"). When loading an application, you can know the files searched and called when the program starts by listening to the disk access, locate the required files, and store the monitoring results in the hidden directory of "C: \ Windows \ Appleg". Most files in this directory have the extension "". Lgx ",where" lg "stands for log file and" X "stands for disk letter, such as". "lgd", used for D program. The file name of the log file is the file name of the application monitored by TaskMonitor. For example, the WinZip program on E disk is recorded as "Winzip32.lge". When the user defragments the disk, the program will move the related files of the application to the continuous space on the disk according to the information in the Applog directory.

TaskMonitor only searches file information in the process of program loading, and adjusts the optimization order according to the loading frequency of the program, which means that the software that is used the most can get the most attention. The Applog.ind file in the applog directory records the number of times the application is executed. Users need to start common software several times, be monitored and recorded by TaskMonitor, and then use disk defragmentation to sort it out, so as to really improve the startup speed of the program. However, if users change common software, such as WinZip, and now use ZipMap, then for a long time, disk defragmentation will first move files related to WinZip to a continuous space instead of ZipMap, unless ZipMap is loaded more times than WinZip. To solve this problem, users can delete the "Winzip32.lgx" file, the record file does not exist, and disk defragmentation will not optimize it.

=================================================

Fourth, should I organize my hard disk regularly?

In fact, there should be no doubt that the hard disk is cleaned regularly. If the hard disk defragmentation will really damage the hard disk, it will be after nearly astronomical defragmentation.

When the hard disk is used for a long time, the storage location of the file will become fragmented-the contents of the file will be scattered in different locations on the hard disk. The existence of these "fragmented files" will reduce the working efficiency of hard disk and increase the possibility of data loss and data damage. The defragmenter collects these fragments together and stores them as a continuous whole on the hard disk. Windows comes with such a program: DiskDefragmenter, but in the tool software NortonUtilities and Nuts &; There are better programs of this kind in Bolts.

However, for the moving parts in the hard disk, defragmentation is really a big job. If the hard disk has reached the final stage of its life, defragmentation may indeed be suicide. But in this case, even without defragmentation, the hard disk will crash quickly.

In fact, in most cases, regular hard disk defragmentation will reduce hard disk wear. In any case, it is much easier for hard disk heads to read files from 1 than from 8. Therefore, the life of a hard disk that is tidied every two or four weeks should be longer than that of a hard disk that is never tidied.

=================================================

Five, the preparation work before finishing

Before sorting out the hard disk, we usually have to clean up the junk information and check whether there are any errors, and finally we can talk about sorting out and optimizing the fragmentation. Therefore, before we tidy up the hard disk, we should do these things first:

1, the junk files and junk information on the hard disk should be cleaned up. After the system works for a period of time, there will be a lot of junk files, including temporary files generated during program installation, buffer files left when surfing the Internet, DLL files left after deleting software or error files generated during forced shutdown. It is suggested that "novice" friends use Microsoft's "disk cleaner" to do it for them, while "old bird" can certainly use some more powerful software or manually clean it.

2. Check and repair the errors in the hard disk. Microsoft's "disk scanner" is still the first choice. Although its speed is really not so good, as long as you have enough patience, I believe that most of the system errors have been fixed after this program scans the disk in detail. Of course, you can also try other tools, such as "Norton WinDoctor", an imperial doctor in Bian Que, which is much faster than "ScanDisk Tool" in Windows.

=================================================

Six, finishing methods and matters needing attention

In Windows, users can select "Programs/Accessories/System Tools/Disk Defragmenter" from the "Start" menu, pop up the window for selecting the drive, select the partition slot to be defragmented, and then click [OK] to start defragmentation. However, this method is very time-consuming. For a partition slot of about 2GB, it usually takes 65,438+0 hours, so readers are advised to:

1. When defragmenting the disk, it is best to close all other applications, including the screen saver, and set the size of the virtual memory to a fixed value. Don't read or write to the disk. Once disk defragmentation finds that the files on the disk have changed, it will start refreshing again.

2. The frequency of defragmentation should be properly controlled, and too frequent defragmentation will also shorten the life of the disk. Generally speaking, frequently read and written disk partition slots are sorted once a week.

=================================================

Seven, disk scanner command parameters

Command parameters can be said to be a basic skill in the DOS era, and many programs are started by command parameters. In the era of graphical interface, it is difficult to see its trace again, but it actually exists and plays a significant role. For example, many Windows game installers are implemented with the /Setup parameter. Usually we don't pay much attention to the command parameters of some programs, but they often contain some hidden functions, which is very helpful if used properly.

ScanDisk in Windows contains many command parameters, which can be realized in MS_DOS mode or in the Execute dialog box. If you need to use command parameters frequently, you can also create shortcuts.

/SILENT starts ScanDisk, and no option settings and advanced settings are allowed.

/A Check all local hard drives.

/N Automatically start and exit ScanDisk.

/P Prevents ScanDisk from repairing the errors it found.

X: X means to specify the drive letter to check (the/command parameter is not required).

For example:

1) Check drive E, and automatically start and exit ScanDisk.

SCANDSKW E: /N

2) Check all hard disks to prevent ScanDisk from repairing any errors found.

SCANDSKW /A /P

=================================================

VIII. Implementation of other documentation procedures?

After running other disk file defragmenter (such as WinAlign), the data recorded by TaskMon may be disturbed. If you defragment directly at this time, you may lose more than you gain and achieve the purpose of optimizing performance. The solution is to run Windows and your most commonly used programs many times before defragmentation, so that TaskMon can collect correct statistics again and guide disk optimization.

Finally, when you start the disk defragmenter of Windows98, you may be surprised by the Intel logo in the interface. Why do processor manufacturers participate in writing this software to optimize disks? This is because the slow hard disk seek time will lead to the decline of the overall performance of the system, which will damage the image of CPU's super computing power and make people mistakenly think that CPU performance is low. A test by Microsoft shows that starting Windows on Pentium 233 machine is only 3% faster than Pentium 150. In other words, even the fastest CPU can't overcome the shortcomings of disk delay. So, driven by the same interests, Intel and Microsoft jointly developed a defragmentation program for Windows98 to eliminate the bottleneck of slow hard disk seeking.

=================================================

Nine, how to quickly defragment the disk

Every time you need to defragment the disk, you need to choose Start * Programs * Accessories * System Tools * Disk Defragmenter, and then specify the drive, which is very troublesome. Is there a simple way to complete this series of operations?

In Windows Explorer, select the View * folder option (or View * option), select the File Types tab, and then select the drive in the list of registered file types. Click the Edit button to open the Edit File Type dialog box, select New, and type Quick Defragment in the Action column. Type "c: \ Windows \ defrag.exe"%1"\ noprompt" in the "Application used to perform this operation" column.

Click OK, then close, return to the File Types tab, and click Close. Now, open "My Computer", right-click the drive to defragment, and select "Quickly defragment" in the pop-up shortcut menu.

What is disk cleaning? What are the advantages and disadvantages of disk defragmentation? Disk cleaning is mainly to rearrange and combine the files in the disk and clean up some junk files (just like cleaning in the classroom). Of course, this is still a little different. The advantage is that it can optimize the read-write function of the disk and read and write data faster. The disadvantage is that it will accelerate the life consumption of the disk, generally speaking, it will be cleaned once a week or a month. Question: What is the sorting method of "rearranging files on disk"? Answer: Can you sort garbage? Almost. Don't think too deeply. That's about it. Computers are designed by people, so most things are related to life. Follow-up: Did you help you sort it out automatically? If there are 4 disks, do you need to clean each disk? Answer: The control panel has that, that is, first analyze the disk space (including useful and useless, as well as the garbage generated by some files), and then combine with the system to decide whether to deal with these garbage according to the degree, basically one month or one week. In addition, each disc is performed separately. It takes a while to process, which is a bit slow (basically this processing is carried out on the system disk and some commonly used software disks).

What are the benefits of defragmenting disks? After disk defragmentation, files will be stored more compactly, read faster, and then enter the system faster after booting. At the same time, virtual memory will be reorganized, which will benefit everyone.