Windows 7 Forums


Windows 7: SSD Tweaks and Optimizations in Windows 7

14 Mar 2010   #9
lightningltd

Windows 7 64-bit
 
 
SSD Tweaks and Optimizations in Windows 7

Hello to all my fellow and future users of SSD drives and Windows 7.
I wanted to set up an area with real-world tips on getting the most out of your SSD and the Windows 7 operating system. I will separate each type of tip to its own message to keep things easier to read and to follow.
...


Last edited by lightningltd; 15 Mar 2010 at 12:31 AM..
My System SpecsSystem Spec

14 Mar 2010   #10
lightningltd

Windows 7 64-bit
 
 
Cool free Tools...

What would SSD speed be without some free, cool tools that are helpful...

Benchmarking (as above): http://www.softpedia.com/get/System/.../HD-Tune.shtml
Auslogics Disk Defrag: Download Auslogics Disk Defrag for free
CrystalDiskInfo: Crystal Dew World - Download Center
Crap Cleaner (Keeps things cleaned up): http://www.ccleaner.com/ (I have it auto-clean on logoff)

Helpful well behaved Windows 7 gadgets (get them from http://windows.microsoft.com/en-US/windows/downloads/personalize?T1=desktopgadgets )
All CPU Meter (shows memory and cpu usage, all cores)
Wireless network meter (also works for wired) shows network usage
Drive Meter 1.0.0.1 Shows all IO to your drives.. MOST useful of the three!

Last edited by Brink; 14 Mar 2010 at 03:10 AM.. Reason: replaced direct download link
My System SpecsSystem Spec

14 Mar 2010   #11
lightningltd

Windows 7 64-bit
 
 
SSD Virtuilization Tips...

I use VMWare all day long on my SSD and have found a few little tricks to make it run smoother with less writes to the SSD.
My host is Windows 7 64-bit. My VMs are mostly XP pro andd home (and a Server 2008R2)....



Basically, the tips are as follows and assume you are running VMWare:
With the exception of the page file, follow the tips for configuration in the VM as you would if it was the host OS. Even in a VM, a page file is needed (to a point). Just google things like XP SSD tips, etc.

If you have 2 drives (The SSD and a normal HD), then you can really pump up the speed of the VM if you are running it off the SSD...
1) In the VM settings, create a new virtual drive. Put it on the normal Hard drive (I set mine to 1 gig). Inside the VM, set the new virtual drive as the VMs page file drive. This off-loads a lot of writes to the normal hard drive without really affecting performance.

2) (advanced) Did you know you could run a VM in an almost read-only state from the SSD? Did you know that you can have a VM reading from both drives at the same time during VM boot and operation and writing to the HD only without raid? Basically, we can use the snapshot feature in VMWare to create a fake raid setup for each virtual machine:
In the VMX file for the VM, we need to edit/add the line
workingDir = "E:\VMWare Images\XP Home Personal SnapShot\"
where the directory is where you will be storing the snapshot on the spinner.
In the settings for the VM in VMWare, make sure to uncheck "independent" under advanced options for the virtual hard disk on the VM.
Click on VM up top then create snapshot. As of that point on, all the writes will go to the snapshot file on the spinner and all the reads will come from both.
There is a trade off after a while... Since all writes to the VM drive (snapshot) are block level writes, the more you use the VM, the less performance gain U will get (more and more reads will come from the snapshot file). To prevent that, I merge the snapshot file once a week or once every 2 weeks to the VM on the SSD.

Also, to save space on the SSD, I only put my most used VMs on the SSD (the 2 that are used all day).
My System SpecsSystem Spec
03 Apr 2010   #12
lightningltd

Windows 7 64-bit
 
 
SSD Optimization

There seems to be some debate over the use of defragging utilities on your SSD drive. The purpose of this post is to try to clear this up a bit. In order to do this, we must look at where the opinions are comming from, and how an SSD actually works.

The main proponents that say that you DO need to defrag your SSD also sell defrag programs, which I am SURE is a coincidence (NOT!).

The opponents of defragging your SSD are pretty much all the makers of SSD drives, virtually every expert on the subject of SSDs, and of course the biggest experts on Windows and how it operates at the high and low levels with the hardware, MICROSOFT, who created the operating system. They all say the same thing: You do not need to defrag your SSD. Defragging it like a hard drive WILL lower its life expectancy without increasing performance.

So, just looking at who says not to do it, I would think that there should not be too much debate, but as with a lot of things, a lack of understanding (or a simple plain english explanation) of a new technology tends to cause some to hold on to long held beliefs left over from similar hardware (spinning hard drives).

Lets look at the hardware aspect of what an SSD must do to work and be widely accepted by the users: Imagine where SSD technology (and prices) would be today if you had to buy a new motherboard (or computer) just to use an SSD. In addition to the motherboard, you would need to purchase a new 'magic' operating system that could utilize the features of the SSD. The expense alone of all these 'upgrades' would have prevented the mass sales of SSDs, keeping the prices extremely high, and the number of manufacturers low, since it would remain as a high-end only item that only the richest users could afford.

So How does the SSD work with current and past hardware and operating systems without the need for 'magic' expensive upgrades?
Simply put, the first job of the SSD controller is to lie its butt off! Really! Here are the lies the controller must tell in order to work:
1: It has to tell your BIOS and motherboard "Don't mind me, I'm just a plain old fast hard drive. you can boot from me and use me!"
2: After the hardware accepts the SSD, the SSD controller has to tell the same lie to the operating system which is used to performing input and output to specific blocks on a hard drive. Basically, the operating system is fooled into thinking it is in full control of where on the SSD the data is going, since it has always had control in the past on normal hard drives. There is a lot of logic inviolved in this, so the controller has its own processor and basic operating system (firmware).

So, what does this have to do with defragging? Lots...
On a normal hard drive, you want all your most used data in the fastest area all together, since it has to move the drive head around if the data is not all in one place. Once you write the data to a location, it is up to the operating system to know where it is and to maintain the pointers to it on the physical location on the platters. The data stays there until it is told to move it. Defragging software does this for you through the operating system. Your Spinning disk drive can write and overwrite to any location the operating system says to ("write this data from x through y, read the data to me from x through y).

The SSD does things a little differently. There are no platters or heads to move. Data comes from several places at once instead of from one sequential location. Due to the limited number of writes to any one location (cell) of the SSD, the controller must be in control of where things are written to, or the SSD would wear out very quickly. When the operating system tells the SSD to write something to a specific location, the controller tells the operating system that it did (lies). It then spreads the data out in the unused areas of the SSD. This is called 'wear leveling'. When the operating system asks for it back, the controller takes the location that the OS asked for and converts it to the actual cells where it is stored and sends the data to the OS. The SSD controller also likes to move things around when it is idle to keep as many free cells as possible, but does not need to tell the OS that it is moved. The changes are done in the location conversion table (this is not the actual name, just description of what it does).

Bottom line, there is no need to defragment the SSD, since the operating system has absolutely NO CONTROL at all where the data is actually (physically) stored on your SSD. The SSD will put the data where it pleases, even during a defrag operation!
Personally, I would love it if the firmware could somehow block the defrag operation, but it is allowed to happen simply to maintain compatibility with your operating system and drivers.

Hope this clears this one up for some of you (us)

Last edited by lightningltd; 19 Apr 2010 at 02:38 AM..
My System SpecsSystem Spec
22 Apr 2010   #13
Ramesh Rawat

Windows 7 Ultimate x64 Version 6.1.7600 Build 7600
India
 
 

Dear Sir,
Your this tutorial "SSD-tweaks-optimizations-windows7" had immensely helped me, a layman, to understand and follow it step by step.
Since about last four hours I had been doing all these activities, very successfully.
A few hitch I came across which I will properly draft before posting it as my doubts.
Some actions I have to undo like disabling items under Event Trace Session: all I did as per your ideas, but again had to undo as I could not access the web pages. I do not have any idea if this failure is the part of the changes. Will try again.
This message is to express how grateful I am to you, Sir.
So beautifully explained, narrated and step by step demonstrated by you.
My regards
Ramesh
My System SpecsSystem Spec
.


25 Apr 2010   #14
Noels

PC, Windows 7 32 bit
Solomons, MD
 
 
Problem with fsutil.exe command

lightningltd,

I appreciate your well done tutorial on SSD Tweaks and Optimizations... Thank you! I ran into a problem early, though... From the Start Button, I typed run, then command and fsutil.exe behavior, etc... to find out if my TRIM is active. I got stopped right away with the admonition that the fsutil command requires administrative privileges. Help, how do I prove that I have Administrator Privileges at the command prompt?

Thanks for your help, Noels


.
My System SpecsSystem Spec
25 Apr 2010   #15
pparks1

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Noels View Post
. I got stopped right away with the admonition that the fsutil command requires administrative privileges. Help, how do I prove that I have Administrator Privileges at the command prompt?
It's simple...you just need to run the command prompt as an admin.

2 methods

1). Right click on the Command Prompt under Accessories and choose Run as Admin

2). From start, run, type cmd in the search window and hit CTRL-SHIFT-ENTER.
My System SpecsSystem Spec
25 Apr 2010   #16
whs

Vista, Windows7, Mint Mate, Zorin, Windows 8
Florida in winter, Black Forest/Germany
 
 

Very useful and down to earth.
My System SpecsSystem Spec
25 Apr 2010   #17
Noels

PC, Windows 7 32 bit
Solomons, MD
 
 

pparks1,

Many thanks. I tried both methods and the first worked A-OK, but I couldn't get the second to work... As one as one works for me, I'm in business.

Appreciate it, Noels
My System SpecsSystem Spec
25 Apr 2010   #18
whs

Vista, Windows7, Mint Mate, Zorin, Windows 8
Florida in winter, Black Forest/Germany
 
 

Quote   Quote: Originally Posted by Noels View Post
pparks1,

Many thanks. I tried both methods and the first worked A-OK, but I couldn't get the second to work... As one as one works for me, I'm in business.

Appreciate it, Noels
If you want to set cmd to always run in elevated mode, right click on cmd (in Accessories) > Advanced > and check the box "Run as administrator" > OK > Apply
Now it always runs in elevated mode.
And if you want to have a nicer cmd window, have a look at my little tutorial.
My System SpecsSystem Spec
26 Apr 2010   #19
lightningltd

Windows 7 64-bit
 
 

All the answers given to the cmd prompt were correct... Great job... +reps given for helping this user.
My System SpecsSystem Spec
Comment

 SSD Tweaks and Optimizations in Windows 7 problems?



Tutorial Tools



Similar help and support threads for: SSD Tweaks and Optimizations in Windows 7
Windows 7 Tutorial Category
Windows 7 slates "this Christmas," touch optimizations in 2011 News
Tweaks/Optimizations for a old Win7 desktop? Performance & Maintenance
Windows 7 Optimizations Performance & Maintenance
Tweaks for Windows 7 General Discussion
20 Windows 7 Tweaks & Tips News


All times are GMT -5. The time now is 01:28 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32