Home > Windows Tips > > Terminal Services: Increase disk and pagefile performance, reduce fragmentation and save disk space
Win IT Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Terminal Services: Increase disk and pagefile performance, reduce fragmentation and save disk space


Peter Langford
02.25.2003
Rating: -3.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


This tip was submitted to the SearchWin2000.com Tip Exchange by member Peter Langford. Let other users know how useful it is by rating the tip below.


Follow the advice in this tip for handling profiles and pagefile on Terminal Services to increase disk and pagefile performance, reduce fragmentation and maintain system disk space, which also helps ensure that your users always get the newest copy of their roaming profiles.

Disk space on servers always seems to be an issue. System administrators seem to spend half of their time battling to free up space on their server system drives. Even when you allow for increased data due to service packs, etc., six months down the line and your two gig of free space have mysteriously disappeared. This can be an even bigger problem on machines running Windows 2000 Terminal Services.

Why? Because each user who logs onto a Terminal Server session has their profile loaded into the Documents and Settings directory. (I'm assuming that your using roaming profiles here, which most organizations running more than one Terminal Services server do. And even if you only have one server with local profiles, the following still holds true). A profile can happily consume 50 MB or more of disk space. Multiply that by 50 users and suddenly you've just lost 2.5 GB of your disk capacity, which in extreme situations could cause your server to crash.

There are a couple of things you can and should do.

  1. Move the Documents and Settings folder to a dedicated partition (preferably a single physical disk or pair), either by using a unattend.txt file during setup to specify the location of this directory, or by moving it after installation. (Note: The latter is NOT supported by Microsoft.)

    See Microsoft KB236621 and KB155197 for full details on how to do this. (They are both lengthy pieces.) Even if you have a huge system drive, the constant loading and unloading of profiles is going to add to the defragmentation of this.

  2. Use local or group policy in Windows 2000 to delete cached profiles on your servers. (This also ensures that your users get the newest version of their profiles, so they won't lose changes made when logged onto another server).

    You can edit the registry key HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionWinlogonDeleteRoamingCache and set the value to 1 (the default is 0). You can use this registry hack in Windows 2000, but I prefer using group policy, as you make the change once and it sets it for all computers in the same group object.

Now that you have a dedicated partition for your profiles, you may want to schedule a daily defrag of this drive to keep the permanently loaded profiles (default user, all user, local and domain administrator) in one contiguous space.

It might be a good idea to have your pagefile on this drive as well. With a daily defrag, your pagefile will be all in one place, and as it's on a separate physical device, disk I/O performance will be improved as well, which means that your pagefile will work more efficiently.

Incidentally, you should always set your pagefile minimum and maximum to be 2.5 times the amount of physical RAM for optimum performance; this stops the system having to shrink and grow the pagefile as requirements demand.

So there you go -- an easy peasy way to manage your cached profiles, reduce disk defragmentation, increase your pagefile performance and stop your server grinding to a halt due to lack of disk space.

Editor's Note: This tip originally appeared on SearchWin2000.com

Rate this Tip
To rate tips, you must be a member of SearchWinIT.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Windows Technology Updates, Reviews and Solutions
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT DownloadsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts