Increase performance of your Server 2008 R2 and Windows 7

If you are not so satisfied with the performance of your Server 2008 R2 or your Windows 7 then you should read this short article.

If the performance is low be sure that 8dot3names are disabled on your filesystem. You can disable it from the command line. Use the following command:

fsutil 8dot3name set 1

(1 means that it disables 8dot3 name creation for all volumes on the system.)

Make sure that the running of the command was successful. Use the following command:

fsutil 8dot3name query C:

You have to get this message back:

“The volume state for Disable8dot3 is 0 (8dot3 name creation is enabled). The registry state of NtfsDisable8dot3NameCreation is 1 (Disable 8dot3 name creation on all volumes). Based on the above two settings, 8dot3 name creation is disabled on C:.”

Truthsfully this action above will only disable the shortname creation on your volumes thus your computer does not need to search the volumes all the time when it want to create a uniqe short name for your long filename.
If you have a huge amount of files this can save disk performance, cpu utilization, memory and time.

Let’s continue:
When I said to my computer to show me the files what I have in a specifiy folder I faced that beside to the file names there is the shortname of  the file too.
I used this command:

dir /x

and I got this:

C:\Program Files>dir /x
Volume in drive C is System
Volume Serial Number is 3C35-1CF7

Directory of C:\Program Files

2012.10.02.  13:41    <DIR>                       .
2012.10.02.  13:41    <DIR>                       ..
2012.04.06.  09:40    <DIR>          APPLES~1     Apple Software Update
2012.10.02.  13:41    <DIR>                                      Avaya
2012.10.02.  11:09    <DIR>          AVAYA_~1   Avaya_OLD
2012.03.23.  11:03    <DIR>                                      Axantum
2011.09.08.  11:01    <DIR>                                      Bullzip
2012.03.29.  16:17    <DIR>          CDBURN~1    CDBurnerXP
2012.08.17.  14:28    <DIR>          CHECKP~1     CheckPoint

As matter of fact this is not a big deal because after we have switched off the shortname creation we have told to the operating system that do not check the shortnames. Why is it important?

For instance I create a file: my_fascinating_summer_at_see.docx (or whatever) my system will take a look whether do I have a file with the same name. If I had more than 1 million files in that folder (because this is a fileserver) the search would take so long time but it would run only once. If the shortname creation had been enabled the system should take another look to determine whether do I have already a file with that particular shortname. But this is a different search and if you have huge amount of files it takes very long time. So the system does two different searches if the shortname creation is enabled.

Independently from the things above there is posibility to remove the short file names. Use the following command:

fsutil 8dot3name strip /s /l C:\8dot3name_strip.log C:

The command above is going to remove your short names (with /s switch recursively) but if  the short name is referring to a registry thread it will be kept. You will also have a log file in which you are able check the activitates. Please bear your mind that this solution is working only via Server 2008 R2 and Windows 7.

That’s all.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s