Windows 7 SSD Tweaking Guide - Overclock.net - An Overclocking Community

Forum Jump: 

Windows 7 SSD Tweaking Guide

Reply
 
Thread Tools
post #1 of 72 (permalink) Old 10-05-2011, 04:33 PM - Thread Starter
New to Overclock.net
 
UsedPaperclip's Avatar
 
Join Date: Mar 2011
Location: Detroit, MI
Posts: 1,994
Rep: 272 (Unique: 234)
Windows 7 SSD Tweaking Guide

Installing Windows 7 on your SSD

1)Switch to Storage Setting to AHCI (refer to motherboard's manual)

2)Boot from the Windows 7 DVD

3)When you see the three options related to choosing a language, click Next

4)When you see the window with the big "Install Now" button, click the text below it that says "Repair Your Computer" to provide access to where we need to be

5)You'll see a little window appear named "System Recovery Options" which will immediately search for Windows installations

6)When it finishes, you will see a dialog box. Select "Use recovery tools that can help fix problems starting Windows. Select an operating system to repair." Now highlight the appropriate Windows installation and then click Next.


Start here if you are using your SSD as a Data Drive and Windows is already installed.
-Note: This can be done from a command prompt in windows or with Disk Management if you are using your SSD as a data drive.

7)Click "Command Prompt"

8)Type diskpart to load DiskPart

9)Type list disk

10)Type select disk 0 (or whichever number your SSD gets, the size should tell you which is drive is which)

11)If you want to be sure you have the right one selected, type list partition.

12)Once you know you have the right drive selected, type clean.

13)Type create partition primary align=1024

14)Type format quick fs=ntfs

15)Once its finished, Type active

16) Type list partition to verify the new parition.

17)Type exit

18)Type exit again

19)Click Restart

20)Boot from the DVD again and perform a normal installation using the "Custom (advanced)" type of installation. DO NOT FORMAT THE DRIVE AGAIN!!


My recommended changes in windows for your SSD

The following steps are intended to limit the amount of unnecessary writes to your SSD and also save you some space. Although the TRIM command has increased the life of an SSD dramatically, you may still want to limit the amount of writes to your drive to preserve the NAND cells and keep it running in top shape while saving disk space. This guide will be more beneficial for the anal retentive and SSDs without TRIM.

Verify TRIM is enabled on your SSD
A) Click start and type in cmd and hit the enter key
B) Type in fsutil behavior query disabledeletenotify
- DisableDeleteNotify = 1 (Windows TRIM commands are disabled)
- DisableDeleteNotify = 0 (Windows TRIM commands are enabled)

Disable automatic defragmenting
A)Click the Windows start button and type Disk Defrag and hit Enter.
B) Click the Configure Schedule Button.
C)Uncheck the box for Run On a Schedule then click Ok and Close.
D)Never Defrag a Solid State Drive

Disable System Restore (If OS is on SSD)
A)Hit Start and right-click on Computer and select Properties
B)On the left side of the window, click System Protection.
C)Highlight the Drive located on your SSD and click Configure.
D)Click the radio button to Turn Off System Restore, click Ok, and Close

Reduce Page File Size
A)Hit Start and right-click on Computer and select Properties
B)On the left side of the window, click Advanced System Settings.
C)Under the Advanced tab, in the Performance section click Settings…
D)Click the Advanced tab, and under Virtual Memory, Click Change
E)Uncheck Automatically manage paging file size for all drives.
F)Highlight your SSD and underneath it, click the Custom Size radio button.
G)Under Initial size and Maximum size, type in 1024 and then click Set and click OK. You must reboot for this to take effect
Move your temp files to a Mechanical hard drive. (If Users Folder is being used on the SSD)
A)Hit Start and right-click on Computer and select Properties
B)On the left side of the window, click Advanced System Settings.
C)Under the Advanced tab, in the on the bottom click Environmental Variables…
D)Click on the variable TEMP then click Edit…
E)Under the Variable Value: box, enter in the new path you would like for your temp files, ex. D:\Temp Files\TEMP
F)Click on the variable TMP then click Edit…
G)Under the Variable Value: box, enter in the new path you would like for your temp files, ex. D:\Temp Files\TMP
H)Click Ok and you must reboot for this to take effect.

Disable Hibernation
A)Type cmd in the windows start menu search box, then right click on cmd.exe and choose Run as administrator.
B)In the command prompt type in powercfg –h off and hit enter. You must reboot for this to take effect.
Moving or Disabling Memory Dumps (Especially helpful for us overclockers)
A) Hit Start and right-click on Computer and select Properties.
B)On the left side of the window, click Advanced System Settings.
C)Under the Advanced tab, in the on the Startup and Recovery box, click Settings…
D)Under the System failure section, you will see Write debugging information and a dropdown box. To disable memory dumbs click the dropdown box and select (none)
E)If you would like to keep memory dumps change the path in the Dump file: box for example; D:\Temp Files\Memory Dumps\MEMORY.DMP
Disable Superfetch (SSDs are Fast enough to disable Superfetch to free up RAM)
a. In the Windows start menu search box, type regedit and hit enter.
b.Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters and you will see a Binary Value called EnablePrefetcher
c.Double click on EnablePrefetcher and change the value from 3 to 0.
d.You must reboot for this to take effect.


Disable Recycling Bin on your SSD
A)Right click on your Recycling Bin and click Properties.
B)Under Settings for selected location you will see a radio button called Don’t move files to the Recycling Bin. Remove files immediately
when deleted
. Click this radio button and click OK.


Enable Write Caching on your SSD
A)Open up your Computer. In Computer, right click on the drive that is your SSD and click Properties.
B)Click on the Hardware tab at the top.
C)Double click on the Disk Drive that is your SSD. Now in the new window click the Policies tab.
D)Under the Write-caching policy box, make sure Enable write caching on this device and Turn off Windows write-cache buffer flushing on the device are both checked. Now click OK and exit.


Disable Indexing on your SSD
A)Open up your Computer. In Computer, right click on the Drive that is your SSD and click Properties.
B)Click on the General tab at the top.
C)At the bottom you will see a box called Allow files on this drive to have contents indexed in addition to file properties, uncheck this box and hit Apply.
D)Make sure the radio button for Apply changes to the drive C:\, subfolders and files is selected and click OK.
E)You will be prompted with a window that says Error Applying Attributes, click Ignore All and it will disable indexing on all files on your SSD, this will take some time.
F)Click OK to close the window.


Disable Reliability Monitor (If OS in on SSD)
A)Type cmd in the windows start menu search box, then right click on cmd.exe and choose Run as administrator.
B)In the command prompt type in:
schtasks.exe /change /disable /tn \Microsoft\Windows\RAC\RacTask and hit enter.
C)If you want to enable reliability monitor run the command:
schtasks.exe /change /enable /tn \Microsoft\Windows\RAC\RacTask and hit enter.
D)If a SUCCESS message comes up after the command is entered then it worked.


I also made a guide to move users off of your OS drive to a different partition/drive For more SSD Tweaks to help reduce useless SSD writes, improve performance, and save more space Here


Web Browser Cache Managing for Chrome, Firefox, and Internet Explorer

Firefox Cache

How to Move Disk Cache Location
A) Open Firefox and in the address bar type about:config and hit enter.
B) Click I'll be careful, I promise! Navigate to browser.cache.disk.capacity and then double click to edit the value. Enter in the amount of disk cache you would like to use for Firefox in Kilobytes. I use 30mb so I enter in 30000 and hit OK.
C) Right click on the web page and choose New then String. In the Preference name box add browser.cache.disk.parent_directory and hit OK. Under the browser.cache.disk.parent_directory box, enter in where your Firefox Cache location will be. I have mine set to S:\Temp Files\Firefox Cache.

How to Disable Disk Cache and Use Ram Cache
A) Open Firefox and in the address bar type about:config and hit enter.
B) Click I'll be careful, I promise! Navigate to browser.cache.disk.enable and then double click to so that it is set to false.
C) Right click on the web page and choose New then String. In the Preference name box add cache.memory.capacity and hit OK. Under cache.memory.capacity, enter in the amount of RAM you would like to use in kilobytes. I use 30mb so you would enter 30000 in the box for that.

Chrome Cache

How to Move Disk Cache Location
A) Right click on the desired chrome shortcut and click Properties.
B) Next to the Target: you will see the path for the chrome.exe location; after chrome.exe type in --disk-cache-dir="S:\TempFiles\Chrome Cache"
*NOTE: S:\TempFiles\Chrome Cache is an example, you would enter in where you want the chrome cache to be stored on your computer.

How Change Disk Cache Size
A) Right click on the desired chrome shortcut and click Properties.
B) Next to the Target: you will see the path for the chrome.exe location; after chrome.exe type in --disk-cache-size=1 --media-cache-size=1". This will change the maximum cache to 25mb.
*NOTE: If you want to edit Chrome to change the directory and cache size, it would look like this: --disk-cache-dir="S:\TempFiles\Chrome Cache --disk-cache-size=1 --media-cache-size=1"


If you guys have any suggestions on how to make the guide easier to follow or any other good tweaks I missed I would appreciate it thumb.gif

UsedPaperclip is offline  
Sponsored Links
Advertisement
 
post #2 of 72 (permalink) Old 10-05-2011, 04:38 PM
Retired Staff
 
Murlocke's Avatar
 
Join Date: Dec 2004
Location: Cedar Falls, IA
Posts: 17,092
Rep: 912 (Unique: 541)
Somethings I agree with, other things I strongly disagree with. One thing I strongly disagree with is moving the page file off the SSD. You should just set it to a small static number such as 1024-1024 and keep it on the SSD. Every SSD maker will tell you the same.

Moving all your temp files/page files off the SSD is defeating what the SSD is good at. Yes, SSDs have a "max number" of writes.. but the number is so large that the drive will fail from something else far before you reach the max writes. This goes double for larger SSDs, the larger the SSD - the higher it's rated for max writes.



Murlocke is offline  
post #3 of 72 (permalink) Old 10-05-2011, 04:40 PM - Thread Starter
New to Overclock.net
 
UsedPaperclip's Avatar
 
Join Date: Mar 2011
Location: Detroit, MI
Posts: 1,994
Rep: 272 (Unique: 234)
Quote:
Originally Posted by Murlocke;15193487 
Somethings I agree with, other things I strongly disagree with.

One thing I strongly disagree with is moving the page file off the SSD. You should just set it to a small static number such as 1024-1024 and keep it on the SSD. Every SSD maker will tell you the same.

You are right about that but my main intentions were to save space and reduce writes. I think I will go with you on this one though and reduce the size instead of move it.
Quote:
Originally Posted by Murlocke;15193487 
Moving all your temp files/page files off the SSD is defeating what the SSD is good at. Yes, SSDs have a "max number" of writes.. but the number is so large that the drive will fail from something else far before you reach the max writes. This goes double for larger SSDs, the larger the SSD - the higher it's rated for max writes.
Not having cache or temp files on your ssd will not affect your noticeable performance anyways. Most people periodically clear there cache and temp files anyways. The only thing it will affect are programs that extract their contents to the temp folder before installing. Also, just a reminder of the main reason I made this guide in the first place.

Quote:
Originally Posted by UsedPaperclip 
The following steps are intended to limit the amount of unnecessary writes to your SSD and also save you some space. Although the TRIM command has increased the life of an SSD dramatically, you may still want to limit the amount of writes to your drive to preserve the NAND cells and keep it running in top shape while saving disk space. This guide will be more beneficial for the anal retentive and SSDs without TRIM.

UsedPaperclip is offline  
Sponsored Links
Advertisement
 
post #4 of 72 (permalink) Old 10-05-2011, 04:57 PM
Retired Staff
 
Murlocke's Avatar
 
Join Date: Dec 2004
Location: Cedar Falls, IA
Posts: 17,092
Rep: 912 (Unique: 541)
Quote:
Originally Posted by UsedPaperclip;15193514 
You are right about that but my main intentions were to save space and reduce writes. I think I will go with you on this one though and reduce the size instead of move it.

I can see doing it with some of the older/smaller SSDs that the OS barely fits on. Those SSDs will also suffer much more from temp file writes because there are less sectors to write on. In that case I would debate moving temp files/page files.

For the people with newer 120-240GB SSDs, max writes really isn't anything to be concerned with. Many newer SSDs are rated at ~50GB/day for 5 years, and I don't know many home user that even use 10GB/day. I think most people on here probably will upgrade their SSD every 2-3 years too.

I've had my 80GB X25-M with a 1GB page file and all temp files on it for almost 2 years, and i'm about to reach 3TB of writes - which averages out to about 8GB/day and I consider myself a pretty heavy user. tongue.gif
Quote:
Originally Posted by UsedPaperclip;15193514 
Also, just a reminder of the main reason I made this guide in the first place.

Don't mind me, just giving my 2 cent. I know many people do this. I just never understood the whole "reducing unnecessary writes" part of it. In most cases, the SSD will die from something else far before reaching max writes.

If you are low on space or your SSD doesn't support TRIM, I would definitely recommend moving temp files/page files off of it.



Murlocke is offline  
post #5 of 72 (permalink) Old 10-05-2011, 05:03 PM
New to Overclock.net
 
claymanhb's Avatar
 
Join Date: May 2005
Location: OC, CA, US, Earth
Posts: 5,137
Rep: 351 (Unique: 248)
Nice! There can never be too many of these guides! I learn something new with every one.

CPU
5820k @4.5GHz 24/7
Motherboard
GA-X99-SLI
GPU
MSI 1080 TI Seahawk X
RAM
16GB gSkill 3200
Hard Drive
1tb 850 EVO
Hard Drive
4TB of Spinners
Power Supply
Corsair RM850X
Case
Fractal R5 Ti Window
Operating System
H110i GT
Monitor
Samsung 34" S34E790C Curved Ultrawide/ Oculus Rift CV1
Keyboard
Blackwidow Ultimate
Mouse
G900 Chaos Spectrum
CPU
i5 2500K @4.9GHz
Motherboard
ASUS P8Z68-V PRO
GPU
pny 970
RAM
4x4GB Hyper X 1600
Hard Drive
120GB Corsair Force 3+2TB Hitachi HDD+1.5TB WDGrn
Optical Drive
Lite ON BD RE
Power Supply
NZXT HALE90 850W
Case
Thermaltake Element G
Operating System
Win7HP64
Monitor
58" Samsung Plasma
Keyboard
Blackwidow Ultimate
Mouse
Logitech MX-518
CPU
6700hq
GPU
1070
RAM
16gb
Hard Drive
1tb 850 evo
▲ hide details ▲
claymanhb is offline  
post #6 of 72 (permalink) Old 10-05-2011, 05:05 PM - Thread Starter
New to Overclock.net
 
UsedPaperclip's Avatar
 
Join Date: Mar 2011
Location: Detroit, MI
Posts: 1,994
Rep: 272 (Unique: 234)
Quote:
Originally Posted by Murlocke;15193747 
I can see doing it with some of the older/smaller SSDs that the OS barely fits on. Those SSDs will also suffer much more from temp file writes because there are less sectors to write on. In that case I would debate moving temp files/page files.

For the people with newer 120-240GB SSDs, max writes really isn't anything to be concerned with. Many newer SSDs are rated at ~50GB/day for 5 years, and I don't know many home user that even use 10GB/day. I think most people on here probably will upgrade their SSD every 2-3 years too.

I've had my 80GB X25-M with a 1GB page file and all temp files on it for almost 2 years, and i'm about to reach 3TB of writes - which averages out to about 8GB/day and I consider myself a pretty heavy user. tongue.gif


Don't mind me, just giving my 2 cent. I know many people do this. I just never understood the whole "reducing unnecessary writes" part of it. In most cases, the SSD will die from something else far before reaching max writes.

If you are low on space or your SSD doesn't support TRIM, I would definitely recommend moving temp files/page files off of it.
Dont get me wrong I appreciate the help, and I know that SSDs especially larger ones with trim perform better and last longer but I still felt that OCN needed a cleaner guide than what has been written before. Maybe I am a bit late but at least we have a guide that I am personally satisfied with biggrin.gif

UsedPaperclip is offline  
post #7 of 72 (permalink) Old 10-05-2011, 05:15 PM
Storage Nut
 
Sean Webster's Avatar
 
Join Date: Nov 2010
Location: Boca Raton, FL
Posts: 21,076
Rep: 1660 (Unique: 967)
Oh wow...I was actually writing a guide just like this for the last week but I was busy with college... doh.gif

I call a lock on "going from hd to ssd thread", mines!

I AM THE SSD BENCHMARK GURU
Storage Essentials | My Build Logs | My Server Build Log | flickr | Steam | Depression and I
Some say he once took a backup of the entire NSA database. Others say he lays SSDs like chickens lay eggs. All we know is, it's Sean Webster!
Le Main Rig
(15 items)
Terrorbyte V2
(16 items)
Test Bench
(8 items)
CPU
i7-6700K
Motherboard
ASRock Z170 OC Formula
GPU
Gigabyte GTX 960 WindForce 2X OC
RAM
G.SKILL Ripjaws V
Hard Drive
480GB ADATA SX8200
Hard Drive
1TB Samsung 960 EVO
Hard Drive
2TB HP EX950
Power Supply
Corsair RM650
Cooling
Noctua NH-U12S
Case
Fractal Design R5
Operating System
Windows 10 Pro 64-Bit
Monitor
BenQ GW2765HT
Monitor
BenQ GW2765HT
Keyboard
Patriot Viper V760
Mouse
Patriot Viper V560
CPU
Intel i7 4790K
Motherboard
ASUS Maximux IV Extreme
RAM
Corsair Vengeance Pro
Hard Drive
128GB Samsung 830
Hard Drive
480GB SanDisk Extreme II
Hard Drive
2TB WD Red
Hard Drive
2TB Samung Spinpoint F4
Hard Drive
2TB Hitachi Deskstar 7K3000
Hard Drive
1TB Samsung Spinpoint F3
Hard Drive
3TB Toshiba DT01ACA300
Hard Drive
Seagate Barracuda 7200.14
Power Supply
Corsair 650TX
Case
Norco RPC 4224
Operating System
Windows 10 Pro
Other
LSI 9261-8i
Other
Intel RES2CV240
CPU
i5-4670k
Motherboard
Asrock Z97 Extreme6
RAM
32GB Kingston HyperX Beast 2400MHz
Hard Drive
128GB Samsung 850 Pro
Power Supply
850W Be Quiet! Dark Power Pro 10
Cooling
Thermaltake Water 3.0 Ultimate
Case
Thermaltake Urban T81
Operating System
Windows 8.1 Pro
▲ hide details ▲


Sean Webster is offline  
post #8 of 72 (permalink) Old 10-05-2011, 11:19 PM
New to Overclock.net
 
XSCounter's Avatar
 
Join Date: Mar 2011
Location: Moscow
Posts: 1,253
Rep: 127 (Unique: 104)
Even TwoCables couldn't answer the following question:

What is the purpose/benefit in creating manual alignment of 1024 instead of the default one which is done by Windows 7 during installation?

I couldn't find any evidence supporting the fact that this alignment gives better performance or anything.

Nice guide nevertheless wink.gif

XSCounter is offline  
post #9 of 72 (permalink) Old 10-06-2011, 12:46 AM
New to Overclock.net
 
Join Date: Feb 2010
Location: UK
Posts: 1,021
Rep: 138 (Unique: 112)
Quote:
Originally Posted by XSCounter;15197512 
What is the purpose/benefit in creating manual alignment of 1024 instead of the default one which is done by Windows 7 during installation?
As I understand it the thrust is that by forcing alignment to 1024 you ensure that you partition on the erase block size boundries on the SSD. If you fail to do this then a single delete operation sent to the SSD can span two blocks and thus effectively have to perform two delete operations, one on each block. This will impact performance.

Here's a reasonable link on the issue.
infected rat is offline  
post #10 of 72 (permalink) Old 10-06-2011, 06:19 AM - Thread Starter
New to Overclock.net
 
UsedPaperclip's Avatar
 
Join Date: Mar 2011
Location: Detroit, MI
Posts: 1,994
Rep: 272 (Unique: 234)
Quote:
Originally Posted by infected rat;15198050 
As I understand it the thrust is that by forcing alignment to 1024 you ensure that you partition on the erase block size boundries on the SSD. If you fail to do this then a single delete operation sent to the SSD can span two blocks and thus effectively have to perform two delete operations, one on each block. This will impact performance.

Here's a reasonable link on the issue.

That is right, a lot of people dont realize this. I wish I still had my benchmarks from testing. I gained a decent amount of performance aligning the SSD properly over just letting windows use its default format on the SSD. It is definitely worth it to spend the extra 4 minutes properly formatting it.

Quote:
Originally Posted by SeanWebster;15193999 
Oh wow...I was actually writing a guide just like this for the last week but I was busy with college... doh.gif

I call a lock on "going from hd to ssd thread", mines!

Lol, the more the better, a lot of people like to do different things, this is just what I do. The only thing I have in there I may not do is disable superfetch because I have plenty of RAM but others may not and can benefit from the extra ram. I have had these sitting around for quite some time and my boss just recently asked me about SSDs because he was going to buy one so I figured I would share both of my "SSD" how to's with OCN.

UsedPaperclip is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off