Teach you how to improve the read-ahead file so that the shutdown speed is as fast as lightning

  
First, only read the system file
Because Prefetch saves the index information of the system and application, from the perspective of improving the startup speed, the author reminds everyone that you can only set the system file to read, and skip the index of the application. File reading process. To do this, you can run “regedit” after opening the registry editor, select HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management\\PrefetchParameters, double-click on the right side of "EnablePrefetcher", you can see the value is 3 , that is, read system files and applications, we can change it to 2, that is, only pre-read Windows system files.
Second, shut down automatically clear the pre-read file
We can also automatically clear the contents of the pre-read folder by shutting down, in order to speed up the next boot speed. Open Notepad and enter del %systemroot%Prefetch*.* /q in it to save the file as a del.bat file. Then open the "Run" window, enter gpedit.msc and press Enter to open the Group Policy Editor, select "Computer Configuration & mdash; Windows Settings & mdash; Script", double click on the right side of the "Shutdown" item. Click the “Add” button in the window that opens to add the del.bat file. In this way, when the system is shut down, the group policy will call del.bat in the background and run the commands to clear the contents of the pre-read folder, thus improving the speed of the next startup.
Third, prohibit the program to generate index files
read-ahead files cause the system to start slower, because it is caused by reading the index file generated when running the program. Therefore, we only need to prohibit the generation of PF files.
Enter "msconfig" in the "Run" window and press Enter to open the System Configuration Utility window, switch it to the "Services" tab, and then click on the "Task Scheduler" item. Cancel and save the settings, which will prevent the index file from being created.


Copyright © Windows knowledge All Rights Reserved