optimize now
Volume One   Issue #6
 

In This Issue
Deploying Applications with Active Directory Group Policy
PerfectDisk's SMARTPlacement...Bring Order to Chaos
Special Savings!
Quick Links
Welcome
retro giftsWelcome to another edition of Optimize Now. We want to say thanks for all your support and feedback this year, and we look forward to providing you with even more information in 2008.
 
In this issue, we take a look at deploying applications with Active Directory, and take a close look at PerfectDisk's patented optimization strategy SMARTPlacement. 
 
Thanks for reading. We wish you a wonderful holiday season and healthy and prosperous 2008.
Join Our List
Join Our Mailing List

Deploying Applications with Active Directory Group Policy

While numerous applications come with their own mechanism for deployment, such as the PerfectDisk Command Center, many organizations prefer to deploy all applications with Microsoft's Active Directory Group Policy. This provides a consistent method for this activity and reduces the learning curve for those involved with this aspect of enterprise system management. And while many organizations are "Active Directory shops," there are still many others that have not yet begun using Active Directory and are just now in the planning stages.
 
As an introduction, Active Directory is a network operating system that functions as a single point of management for Windows-based user accounts, clients, servers and applications. It serves as a secure system for sharing applications and services, and provides the ability to build applications that give a single point of access to multiple sources in a network. Active Directory also allows for any object on a network to be tracked and located, and allows administrators to deploy programs to many computers and apply critical updates to an entire organization.
 
A directory service is a place to store information about network-based entities such as applications, files, printers and people. It gives a consistent way to name, describe, locate access, manage and secure information about these resources and acts as a main switchboard of the network operating system.
 
Now, we'll take a look at how to use Active Directory to deploy applications, even those that don't come with a Windows installer package. Windows administrators know that one of the biggest chores they have is dealing with application lifecycle management. Even if there are only 20 machines in the network, it's a laborious process - much more than that, and certainly when the number is in the thousands or tens of thousands, visiting each machine is not an option for updating an applcation.
 
It's common today for applications to include a Windows installer package (an .MSI file) to help you deploy via Active Directory. And even if the application you want to deploy does not include a Windows Installer package, it is possible to make your own .MSI file for an existing application.
 
The reason that .MSI files are the preferred installer package for Windows is because of the file format's capabilities. When you install or uninstall an .MSI file on a machine running Windows, Windows creates a system restore point. Furthermore, .MSI files allow the application to be "self healing," meaning that if part of the application is damaged or removed, Windows has enough information to replace the damaged or missing parts. And, .MSI files allow the system to automatically perform a rollback to its previous state if an installation should fail.
 
However, if an application does not have an.MSI file, you will need to rely on a third party .MSI creation tool, of which there are several. MSI files are actually database files with information pertaining to every file and setting that the application installs or modifies. Since they involve some level of complexity, most of the .MSI file creation utilities require you to do at least some scripting when you create an .MSI file.
 
Within Active Directory, group policies are the main component of network security. Group policy objects can be applied to either users or computers. Deploying applications through Active Directory is also done through the use of group policies, and therefore applications are deployed either on a per user basis or on a per computer basis.
 
There are two different ways that you can deploy an application through Active Directory. You can either publish the application or you can assign the application. You can only publish the application to users, but you can assign applications to either users or to computers. The application is deployed in a different manner depending on which of these methods you use.
 
Publishing an application doesn't actually install the application, but rather makes it available to users. For example, if you were to publish PerfectDisk, since it is a group policy setting, it would not take effect until the next time that the user logs on. When the user does log in, however, they will not initially notice anything different. The user would be able to see PerfectDisk in the Control Panel and click on the Add/Remove Programs option and see it on the list. The user can then choose to install PerfectDisk on their machine.
 
Assigning an application to a user works differently than publishing an application. Again, assigning an application is a group policy action, so the assignment won't take effect until the next time that the user logs in. When the user does log in, they will see that the new application has been added to the Start menu and/or to the desktop.
 
Although a menu option or an icon for the application exists, the software hasn't actually been installed. To avoid overwhelming the server containing the installation package, the software is not actually installed until the user attempts to use it for the first time. This is also where the self-healing feature comes in to play. Whenever a user attempts to use the application, Windows always does a quick check to make sure that the application hasn't been changed. If files or registry settings are missing, they are automatically replaced.
 
Assigning an application to a computer works similarly to assigning an application to a user. The main difference is that the assignment is linked to the computer rather than to the user, so it takes effect the next time that the computer is rebooted. Assigning an application to a computer also differs from the user assignments in that the deployment process actually installs the application rather than just the application's icon.
 
Setting up the actual deployment is simple. The most important thing to remember is that the .MSI file and the corresponding package must exist within a network share, and everyone must have read permissions for that share.
 
To perform the deployment, open the Group Policy Editor. To publish or assign an application to a user, navigate through the group policy console to User Configuration / Software Settings / Software Installation. Now, right click on the Software Installation container and select the New / Package commands from the shortcut menu. Select the appropriate .MSI file and click Open. You are now asked whether you want to publish or assign the application. Make your selection and click OK.
 
The process for assigning an application to a computer is almost identical. The only real difference is that you would use the Software Settings / Software Installation container beneath the Computer Configuration container rather than beneath the User Configuration container.

PerfectDisk's SMARTPlacement™ - Bringing Order to Chaos

The word random has a negative connotation; it implies disorder and a lack of discipline. This is why something that is well thought out and executed is generally preferred over something that is random. When you shop for groceries you make a list; you don't randomly grab things off the shelf. You pray the bank doesn't randomly debit your account; and you probably would not file important papers randomly in a file cabinet.  Even the lottery lets you pick your own number, eliminating some of the randomness from winning or losing.  These are just some things in life where you want order instead of chaos, and this is certainly true on your disk drive.

The Windows file system is somewhat random. When it creates or extends a file it looks for available space on the drive and places the file wherever it finds space. If it can create the file in one piece, that's great. If it creates the same file in 100 pieces, that's OK too. As a result, the location of any given file on the disk is random.

The same kind of random behavior applies to the Windows Disk Defragmenter (WDD). Its goal is to try and defragment as many of your data files as it can, paying very little attention to anything else. When it finishes, most of your file may be defragmented, but they are randomly scattered all over the disk. Data files are in among system files, metadata files and directories. Files that change frequently are intermixed with files that rarely change. Worst of all, from a system performance standpoint, the remaining free space is splattered all over the disk in a very random fashion. This kind of random file placement causes unneeded disk accesses, wastes disk space, and uses excess resources with each successive defragmentation.

PerfectDisk's SMARTPlacement™ technology is a patented file placement scheme that intelligently places files on the disk. SMARTPlacement uses several criteria to determine where it should place a file. The net benefit of SMARTPlacement is it creates a disk that minimizes unnecessary disk accesses, makes the best use of disk space and reduces the time and resources needed on subsequent defragmentation passes. To explain how SMARTPlacement works, we need to look at the different kinds of files on the disk and how PerfectDisk treats them.

Boot Files
Boot files are files the operating system uses in the boot, or startup process. PerfectDisk defragments these files and SMARTPlacement locates them at the front of the disk near the Master Boot Record (MBR). This results in faster boot times. The WDD tries to do something like this through the prefetch folder; but over time it will fail due to its inability to consolidate free space in the area where it wants to place the files.

Master File Table (MFT) /Reserved Zone
The MFT is the index to the disk volume and the Reserved Zone is an area adjacent to the MFT that allows the MFT to grow without fragmenting. By default, the Reserved Zone is 12.5% of the total volume size. Only PerfectDisk relocates the MFT and its Reserved Zone about 1/3 of the way into the volume in accordance with a Microsoft white paper which suggests this location delivers a 5-10% performance improvement. This makes sense when you consider the MFT is accessed for every file request. If the index is located amid the data files, the seek distance is roughly half of what it would be were the MFT on the outer perimeter of the disk. The WDD defrags the MFT and places it wherever it can find room. In other words, its location is random. 

System Files
There are special system files that cannot be moved online, notably the page file (on all systems) and the hibernate file (on workstations). The page file is part of the operating system's virtual memory system and it is usually 2-3 times the physical memory in size.  The hibernate file is created when you opt to shut down a workstation in hibernate mode. The size of the hibernate file is equal to the size of physical memory. With today's systems, these two files can be very large and they can fragment. PerfectDisk's offline defragmentation defrags these files and SMARTPlacement positions them roughly in the center of the disk. As with the MFT, these files can be very active and this is an ideal locality to minimize disk I/O. The WDD does nothing with the system files; it leaves their unmovable fragments randomly scattered all over the disk

Metadata Files
Metadata files are special files related to the Windows files system.  Several of these files cannot be moved online, but they can be moved with a PerfectDisk offline defragmentation. SMARTPlacement positions these files near the system files in the middle of the disk for the same reasons stated above. The WDD does nothing with the metadata files; it leaves their unmovable fragments randomly scattered all over the disk.

Free Space
In addition to defragmenting all the Windows file types, PerfectDisk also consolidates the free space on the disk into the largest possible chunk with its Space Restoration Technology™. There are three benefits to free space consolidation. First, it reduces the number of unnecessary physical access to the disk. When the file system can find adequate free space, it can write to the disk in fewer accesses. Contiguous free space improves file write speed in the same way defragmentation improves file read speed.  Secondly, it slows re-fragmentation. Fragmented free space exacerbates file fragmentation. Fragmentation is the problem we are trying to fix, not foster. Thirdly, free space consolidation maximizes the usable space on the disk. SMARTPlacement positions the free space at the end of the disk for the reason explained below.
 
Data Files
User data files represent the largest portion of the total files on a disk (at least after some use) and SMARTPlacement divides these files into three categories based on their frequency of change. The categories are: Rarely Modified, Frequently Modified and Occasionally Modified.

Rarely Modified files are files that have not changed in the last 60 days (this is user definable).  These files are defragmented and SMARTPlacement groups them together at the front of the disk. If these files remain unchanged, the next time PerfectDisk runs these files are already defragmented, and they are right where PerfectDisk wants them to be.  As a result, the Rarely Modified files do not need to be moved. This means subsequent defrags take less time and use fewer resources because there is less work to do.

Frequently Modified files are files created or changed in the last 30 days (also user-definable). The Frequently Modified files are positioned between the Occasionally Modified files and the Directory files. This area is proximal to the contiguous free space. New files or changing files can find adequate free space to accommodate their requirements in the fewest possible disk I/Os. The next time PerfectDisk runs it is easy to marry any file extents with the original piece of the file, since it is nearby. This also minimizes file movement in the defrag process. If files have been deleted, the resulting free space "hole" can easily be merged with the contiguous free space, maintaining its integrity and allowing better "packing" of files on the disk.

Occasionally Modified Files are files that don't meet the requirements to be categorized as Rarely Modified or Frequently Modified. These files are sandwiched between these categories. PerfectDisk waits to see if these files migrate to one of the other categories, or if they are deleted and become free space. The WDD does not categorize files and has no intelligent file placement of any sort.
 
Directories
Every disk has some number of directory files. PerfectDisk defragments both FAT and NTFS directories and SMARTPlacement positions them at the end of the Frequently Modified Files and adjacent to the consolidated free space. When a new directory is created, it will be in one piece due to the contiguous free space. If a directory is deleted, its space will be added to the adjacent free space.

Summary
There is an old adage that says, "Failure to plan is a plan for failure." Raxco has given our SMARTPlacement scheme a lot of thought over the years and from time to time we have changed the locality of certain files in response to changes in the file system. The current layout has been well received by customers.  It has also met our design goals of creating a disk that is fast, maximizes the use of valuable disk space, reduces excessive I/O, eliminates the need to defrag frequently and reduces the time and resources used on subsequent defragmentation passes.  Why not defragment your disk drives with software that has a plan?

Special Savings!
 
PerfectDisk Server for just $99 - 
special offer extended through December! 
 
Visit www.raxco.com for details.
Limited time only.
 
If you haven't already done so, don't forget to subscribe to our newsletter mailing list above so that you'll continue to receive future issues.
 
Sincerely,
 
Optimize Now Newsletter
Raxco Software, Inc.