New possible generic solution for stuttering and stalling under Windows XP (32-bit and 64-bit) by aligning the system partition and optimizing the Allocation Unit size for 4kb writes.
BEGIN DISCLAIMER
This solution is aimed at fixing the stuttering and stalling problem under Windows XP (32-bit and 64-bit) and is based on aligning the system partition on the disk and optimizing the Unit Allocation Size for 4 kilobyte writes. In theory this “fix” should result in a performance boost of around 10 – 15%. However, on my system (Thinkpad T60p (ICH7-M)) the performance increased with approx 300% (see benchmarks in post #2) and stuttering and stalling disappeared.
Because of this discrepancy between theoretical and actual performance increase, I have chosen to term this solution as “possible” until others can confirm my findings on their systems (my theory is that the partition alignment reduces write overhead just enough so the SSD controller does not stall and that this is the reason for 300% increase (instead of 15%) in small file copy performance where heavy random writes are involved).
UPDATE: Thanks to the information from Microsoft, provided by Tony, this fix is now confirmed to be working.
UPDATE 2: Nice simple guide with pics located here: http://www.ocztechnologyforum.com/fo...221#post325221
UPDATE 3: Use free Vista Recovery Disc (120 MB download) to align partition without needing access to second computer or temporary HDD:
http://www.ocztechnologyforum.com/fo...56&postcount=3
UPDATE 4: Microsoft finally admit alignment is top priority...http://www.ocztechnologyforum.com/fo...&postcount=161
UPDATE 5: It would seem that choosing starting offset at 128 sectors (64kB) instead of 64 sectors (32kB) results in even higher performance increase. Text changed to recommend aligning partition at 128 sectors.
As with my SteadyState fix, this solution is only proposed to those who are experiencing poor performance (stuttering and stalling) with their Core series drives. If your system is working well this fix is unlikely to result in significant performance increase.
END DISCLAIMER
This thread contains a possible generic solution to fix the OS stuttering and stalling under Windows XP (32-bit and 64-bit) that some users of the Core series v1 and v2 SSDs are experiencing. The stuttering and stalling seems to be related to random write performance (which is similar on all first generation MLC-drives) but it is unclear why only some users are affected by the problems.
(This is the second solution I have found to the problem. Another solution is to install Windows SteadyState (see http://www.ocztechnologyforum.com/fo...ad.php?t=47183), which converts random writes into sequential writes. )
This solution fixes the OS stalling and stuttering by aligning the system partition and optimizing the Unit Allocation Size for 4 kilobyte writes. For a background to this solution and some benchmarks, see post #2 in this thread.
INTRODUCTION
This solution is more complicated to implement than the SteadyState fix as it requires you to delete any existing partitions on your SSD (since it is not possible to align existing partitions with data on them). It will also require you to either access a second computer (to which you can connect your SSD and perform the partition alignment) or require you to have access to a second hard drive that can temporarily be used as system drive while you are aligning the partition on your SSD. (UPDATE - if your system has an optical drive, you do not need a temporary hard drive or access to a second computer. You can align the partition using the Vista Recovery Disc method http://www.ocztechnologyforum.com/fo...56&postcount=3)
Once you have performed the partition alignment (and formatting) you can either do a fresh re-install of Windows XP or transfer back an existing Windows XP installation onto the aligned partition. However, both alternatives require you to first prepare the SSD, before proceeding further.
As always, always make sure that you have a backup of your system and data before proceeding further. For the purposes of this guide, I will be assuming that you have an existing Windows XP installation already setup on your SSD and that you want to transfer it back to the SSD once the partition has been properly aligned (however, if you choose to do a fresh re-install you still can follow this guide until the partition cloning part). I will also assume that you have access to another disk drive that can be temporarily used as a system drive.
GETTING THE TOOLS
There are several ways to create an aligned partition on a disk. Vista’s Diskpart tool is capable of doing so using the “align” parameter when creating partitions. However, for the purposes of this guide I am assuming that you are running Windows XP. This will require you to download a utility in order to be able to create the aligned partition.
You can either download Diskpar or Diskpart (both are command line tools). Diskpart is newer of the two and is more capable. However, Diskpar displays alignment properties in bytes, while Diskpart displays alignment properties in kilobytes. So if you really want to use Diskpart, you need to download Diskpar as well to be able to confirm that your partition really is properly aligned.
Diskpar can be downloaded from: https://kb.wisc.edu/images/group14/4556/diskpar.exe
Diskpart can be downloaded from: http://download.microsoft.com/downlo...part_setup.exe
Please note that the Diskpart version hosted by Microsoft is an older version than the one used in Windows Server 2003 and Windows Vista. In the later versions of Diskpart, alignment is achieved by using the “Align” parameter while in this version alignment is achieved by using the “Offset” parameter.
In this guide I will be using Diskpar.
In addition to the partition alignment tool(s), you will need an appropriate drive cloning and/or shadow copy capable application. This is required for the transfer of the existing Windows XP installation into the aligned partition (if you do not want to do a fresh re-install). In this guide I will use the fully functional trial edition of Drive Snapshot. Drive Snapshot is able to restore an imaged system partition into an existing partition (without changing the partition offset).
http://www.drivesnapshot.de/en/index.htm
Finally, you will need an application that is able to generate a valid boot sector on your SSD should the previous one become damaged (or if you are implementing this fix on a completely new drive). MBRwizard 2.0 should be able to do the trick
http://www.mbrwizard.com/download.shtml
At this point I am assuming that you have done the following:
1.) Made a full backup of your SSD (if you are planning to re-use your existing Windows XP setup). Preferably a full drive image by using your favorite drive imaging software (Drive Snapshot might actually not be the best one suited for this).
2.) Made a full backup of your system partition of your SSD using Drive Snapshot. Just use the default settings of Drive Snapshot.
3.) Gotten access to a second computer running Windows XP (or cloned your existing system to a temporary hard drive) and connected the SSD to it by SATA or USB.
PREPARING AN ALIGNED PARTITION ON THE SSD
1. First use Disk Management and delete all existing partitions on the SSD, since Diskpar requires an unpartitioned disk to operate on. Also take note of what disk number the SSD has in Disk Management, as it will be used as input in Diskpar. When you are finished, close Disk Management.
2. Diskpar has two different modes of operation, either giving you information on existing partitions or creating new partitions according to your input.
Fire up a command prompt and first run: “diskpar –i X”, where X corresponds to the disk number of the SSD from Disk Management. If you have selected the correct drive, Diskpar will say that there are 0 partitions on the disk you have selected.
If you have selected the correct partition, run “diskpar –s X” and Diskpar and answer yes to the two questions asked by Diskpar. Then specify 128 as the start sector and select an appropriate size for the partition.
Below is a copy of the output from running diskpar, where I have marked in red, the input made by the user
C:\Install>diskpar -i 1
---- Drive 1 Geometry Infomation ----
Cylinders = 4139
TracksPerCylinder = 240
SectorsPerTrack = 63
BytesPerSector = 512
DiskSize = 32041820160 (Bytes) = 30557 (MB)
End of partition information. Total existing partitions: 0
C:\Install>diskpar -s 1
Set partition can only be done on a raw drive.
You can use Disk Manager to delete all existing partitions
Are you sure drive 1 is a raw device without any partition? (Y/N) y
---- Drive 1 Geometry Infomation ----
Cylinders = 4139
TracksPerCylinder = 240
SectorsPerTrack = 63
BytesPerSector = 512
DiskSize = 32041820160 (Bytes) = 30557 (MB)
We are going to set the new disk partition.
All data on this drive will be lost. continue (Y/N)? y
Please specify starting offset (in sectors): 128
Please specify partition length (in MB) (Max = 30557): 30557
Done setting partition.
---- New Partition information ----
StatringOffset = 65536
PartitionLength = 32041304064
HiddenSectors = 128
PartitionNumber = 1
PartitionType = 7
You now should use Disk Manager to format this partition
C:\Install>
3. Start up Disk Management and format the new partition. Format it as an NTFS disk with 4096 bytes in Allocation Unit Size and set it as Active.
You have now successfully created an aligned partition optimized for 4 kilobyte writes! Now you need to transfer back your system onto the aligned partition (or re-install XP if you choose so).
If you want to do a fresh install, remember to NOT repartition the drive during the Windows install process. Just leave the partition as its and select quick NTFS format.
However, if you want to transfer your existing system to the aligned partition you need use Drive Snapshot and restore the saved system partition into your newly aligned system partition.
Use Drive Snapshot to do so. If your aligned partition is larger than the Drive Snapshot image, you will get a question if you wish to resize the partition. Just answer YES and ignore any error messages at the end, should Drive Snapshot complain that it was unable to do so.
If everything has gone according to plan, your Windows XP setup is now running on a system partition that is aligned with the SSD and the Allocation Unit Size is optimized for 4 kilobytes. In my case this boosted small file copy performance by 300% and eliminated stalling and stuttering,



Reply With Quote




Bookmarks