Q: How does Windows perform disk optimization for key files used during startup?

John Savill

May 20, 2011

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A: Windows tracks the key files used during startup and logon and stores them in Layout.ini, which is in the %SystemRoot%Prefetch folder (e.g. C:WindowsPrefetch). You can view it in Notepad or any other text editor. The first part is shown below, and as you can see, it shows the files used, such as NTOSKRNL.EXE and HAL.DLL.

[OptimalLayoutFile]
Version=1
C:WINDOWSSYSTEM32NTOSKRNL.EXE
C:WINDOWSSYSTEM32PSHED.DLL
C:WINDOWSSYSTEM32KDCOM.DLL
C:WINDOWSSYSTEM32CLFS.SYS
C:WINDOWSSYSTEM32CI.DLL
C:WINDOWSSYSTEM32HAL.DLL
C:WINDOWSSYSTEM32CONFIGSYSTEM
C:WINDOWSSYSTEM32CONFIGSOFTWARE
C:WINDOWSSYSTEM32C_1252.NLS
C:WINDOWSSYSTEM32C_437.NLS
C:WINDOWSSYSTEM32L_INTL.NLS
C:WINDOWSFONTSVGAOEM.FON
C:WINDOWSSYSTEM32DRIVERSACPI.SYS
C:WINDOWSSYSTEM32DRIVERSWMILIB.SYS
C:WINDOWSSYSTEM32DRIVERSAMDXATA:SYS
C:WINDOWSSYSTEM32DRIVERSATAPI.SYS
C:WINDOWSSYSTEM32DRIVERSATAPORT.SYS
C:WINDOWSSYSTEM32DRIVERSBOWSER.SYS
C:WINDOWSSYSTEM32DRIVERSCNG.SYS
C:WINDOWSSYSTEM32DRIVERSCOMPBATT.SYS
C:WINDOWSSYSTEM32DRIVERSBATTC.SYS

When the system is idle, a scheduled task runs on non-SSD systems that uses the information in Layout.ini and moves all the files to the outer tracks of the disk, improving their performance. The process that moves the files is actually defrag.exe.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like