OST performance slow? Defrag it

I found this up on BlankMan’s Blog and it’s damm cool.

… One of the frustrating realities about OST files is that they become progressively slower as they become older. One of the factors influencing this is fragmentation.

 As the Exchange Team blog says: 
“We usually recommend no more than about 2500 – 5000 messages in any of the critical path folders.  The critical path folders are the Calendar, Contacts, Inbox, and Sent Item folder. Ideally, keep the Inbox, Contacts and Calendar to 1000 or less.  Other folders, particularly custom folders created by the user, can handle having larger numbers of items without having a broad impact on the user experience (20,000 items in my “Cookie Recipes” folder?  No problem – except when I need to find that recipe from last Christmas!).”

So the more folders, the slow thing go … so BlankMan used Contig.exe from Sysinternals to defrag is OST :-|.  Contig is a single-file defragmenter that attempts to make files contiguous on disk and is perfect for quickly optimizing files that are continuously becoming fragmented, or that you want to ensure are in as few fragments as possible.

The syntax for Contig.exe:

Contig v1.54 – Makes files contiguous
Copyright (C) 1998-2007 Mark Russinovich
Sysinternals – http://www.sysinternals.com/


Contig is a utility that relies on NT’s built-in defragging support
to make a specified file contiguous on disk. Use it to optimize execution
of your frequently used files.

Usage:
    d:utilsContigContig.exe [-v] [-a] [-s] [-q] [existing file]
or  d:utilsContigContig.exe [-v] -n [new file] [new file length]

  -v: Verbose
  -a: Analyze fragmentation
  -q: Quiet mode
  -s: Recurse subdirectories

So lets check out my OST:

C:>d:utilsContigContig.exe outlook0.ost -a

Contig v1.54 – Makes files contiguous
Copyright (C) 1998-2007 Mark Russinovich
Sysinternals – http://www.sysinternals.com/

Processing outlook0.ost
outlook0.ost is in 42 fragments

Summary:
     Number of files processed   : 1
     Average fragmentation       : 42 frags/file

d:utilsContigContig.exe outlook.ost -a

Contig v1.54 – Makes files contiguous
Copyright (C) 1998-2007 Mark Russinovich
Sysinternals – http://www.sysinternals.com/

Processing C:outlook.ost
C:outlook.ost is in 61 fragments

Summary:
     Number of files processed   : 1
     Average fragmentation       : 61 frags/file

so time to defrag

C:>d:utilsContigContig.exe outlook.ost

Contig v1.54 – Makes files contiguous
Copyright (C) 1998-2007 Mark Russinovich
Sysinternals – http://www.sysinternals.com/

Processing C:outlook.ost

Summary:
     Number of files processed   : 1
     Number of files defragmented: 1
     Average fragmentation before: 61 frags/file
     Average fragmentation after : 1 frags/file

Kewl, now lets check it out
C:d:utilsContigContig.exe outlook.ost -a

Contig v1.54 – Makes files contiguous
Copyright (C) 1998-2007 Mark Russinovich
Sysinternals – http://www.sysinternals.com/

Processing outlook.ost
C:outlook.ost is defragmented

Summary:
     Number of files processed   : 1
     Average fragmentation       : 1 frags/file

Kewl ;-) Thanks BlankMan!

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: