Optimize Windows for SSDs
This article provides important information on how to optimize your Windows 7 operating system for maximum performance with SSDs. Regarding information from Microsoft and our own tests we identified that Windows 8.1 and 10 handle SSDs correct, the described task in this article are not neccessary anymore for these operating systems.
Turn Off Defragmentation
Defragmentation reorders the logically related data blocks scattered across the storage medium so that they are organized as sequentially as possible on the drive.
SSDs are not meant to be defragmented. Although defragmentation can improve the performance of normal hard drives, defragmenting SSDs provides no performance benefit and can instead have a negative impact on performance.
For configuration steps, see Deactivating Windows 7 Defragmentation for Solid-state Drives.
Deactivate Prefetch and Superfetch
Prefetch is responsible for ensuring that frequently used data is stored at the "front" of the hard drive.
Superfetch stores frequently used data & programs directly in RAM.
Both are unnecessary for SSDs due to their superior read speed.
- Open regedit as administrator
- In the directory on the left, open the drop-down menu for "HKEY_LOCAL_MACHINE"
- Navigate through the drop-down menu to "SYSTEM/CurrentControlSet/Control/SessionManager/MemoryManagement/PrefetchParameters"
- Open "Enable Prefetcher" and "Enable Superfetch" by double-clicking on them and set their respective values to "0"
- Windows 7 & SSDs: Defragmentierung, Superfetch, Prefetch (support.microsoft.com, Artikel-ID: 2727880, German)
- SSD und SuperFetch (c't 6/12, German)
Readyboot accelerates the boot process of Windows. Readyboost uses external USB Flash Memory (USB sticks) as a cache for a slower, internal HDD.
- Control Panel
- System and Security
- Administrative Tools
- Performance Monitor
- In the left panel, open the "Data Collection Sets" and click on "Startup Event Trace Sessions"
- In the right panel, double-click on "Readyboot"
- Open the "Trace Session" tab
- Remove the check from the "Enabled" checkbox
- Prefetching in Windows 7, Teil 1 - ReadyBoot (blogs.technet.com, German)
Move Paging File to HDD
A paging file or swap file increases the amount of usable memory on a computer. If the capacities of the existing physical memory (RAM) are exhausted, Windows moves some of this data to the paging file in order to avoid program or system errors.
For computers equipped with both an SSD and conventional HDD, the paging file can be moved to the HDD to save space on the SSD.
- Right-click on My Computer
- Select Properties -> Advanced System Settings
- In the Performance section, click on Settings
- Select the Advanced tab
- In the Virtual memory section, click on Change
- Deselect "Automatically manage paging file size for all drives"
- Select the SSD drive (system drive) and choose the option "No paging file"
- Select the desired HDD
- Choose either the "System managed size" or "Custom size" option
- Click Set and exit
- Windows 7 & SSD: Auslagerungsdatei verschieben (support.microsoft.com, article ID: 2727883, German)
Check TRIM Support
With the ATA Trim command, the operating system informs an SSD which data sections are no longer needed and can therefore be considered as deleted. Once the entire capacity of an SSD has been written to, ATA TRIM increases the service life and performance of the SSD.
- Open Run/Command Prompt as administrator
- Enter "fsutil behavior query DisableDeleteNotify"
- If the response is "Disable Delete Notify =1", TRIM support is deactivated and can be activated with the command "fsutil behavior set Disable DeleteNotify 0"
- Tipp für Windows 7: TRIM aktivieren: Performance von Solid State Disks erhöhen (tecchannel.de, 15.06.2012, German)
- Support and Q&A for Solid-State Drives (blogs.msdn.com, 05.09.2009)
Hibernation notably reduces the amount of time that Windows needs for the boot process when operating with conventional HDDs. SSDs have considerably higher access speeds compared to disk drives, which makes the booting process significantly shorter. Systems with SSDs therefore hardly benefit from hibernation mode.
With hibernation activated, Windows places a file on the system drive that is equal to the computer's amount of physical memory (RAM). Particularly with smaller SSDs, deactivating hibernation can free up valuable space on the drive.
- Open Run/Command Prompt as Administrator -> enter "powercfg -h off"
- Windows 7 & SSD: Ruhezustand deaktivieren (article ID: 2727881, German)
Deactivate System Restore
- Windows 7 & SSD: Systemwiederherstellung deaktivieren (article ID: 2727882, German)
If there are a lot of programs installed on the computer that have processes loading during the Windows startup, this can have a very notable effect on boot times.
- Enter "msconfig" in Run/Command Prompt
- Open the Startup tab
- Deactivate all unnecessary programs
Activate AHCI Mode in the BIOS
In IDE and RAID mode, hard drive controllers often operate with outdated drivers. This results in TRIM not functioning, which is why AHCI mode is needed. However, if one simply switches the hard drive controller to SATA AHCI in the mainboard BIOS, the system will not boot – the boot process will end with an error message (blue screen). Please use the following steps to avoid such errors.
- Open regedit as administrator
- Navigate to either: "HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Msahci" or: "HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/iaStorV"
- In the right panel, double-click on "Start" and enter "0" into the value field
- Restart PC/server
- Activate AHCI mode in the BIOS
- Windows und SSD - Konfiguration und Optimierung (answers.microsoft.com)
- Defragmentation (en.wikipedia.org)
Author: Armin Oberneder