📜 ⬆️ ⬇️

WD Advanced Format on Windows Server 2003

For the full functioning of the disk with Advanced Format tenology under WinXP, it is desirable to align it - these are the official recommendations and test results. For XP, there are utilities laid out on the WD website. There are no problems in Vista / 7/2008 Server either - Advanced Format is supported by them out of the box. As for Win2003, there is no official information about the use of disks with AF, either from WD or from MS. Moreover, the partition alignment utility (WD Align) refuses to work in Win2003.

The purpose of this small study was to experimentally confirm the need to align disk partitions with Advanced Format technology, operating under Windows Server 2003. As well as identifying ways of this alignment. Under the cut a bit of theory, practice, conclusions and instructions.

1. Theory


1.1. Advanced format

Technology WD Advanced Format is to use the so-called "long sectors" the size of 4kb on the physical disk level. While the traditional sector size is 512 bytes. Modern operating systems can work with 4kb sectors, but WinXP and Win2003 do not belong to those. For backward support, the clever WD made a hardware emulation: “inside” the disk information is stored in 4kb-sectors, but the “outside” of the OS works with it through 512-byte sectors.
Details about the technology can be read, for example, here , here or here . I will introduce a little squeeze.


')
The first problem with this emulation is that when writing a 512-byte sector, the disk has to read 4 kb sector, change the 512-byte sector, recalculate ECC and write the changed 4 kb sector back. But this problem fades into the background when formatting a disk in WinXP / Win2003 - in this case, the beginning of the partition does not coincide with the boundaries of the physical 4kb sectors. Because of this formatting feature, the created partition is shifted to one 512-byte sector.



As a result, when querying the operating system, the disk in some cases has to work not with one physical 4kb sector, but with two neighboring ones. This, of course, reduces performance.

As a solution to this problem, WD proposes to align the sectors of the section along the boundaries of the physical sectors. Two solutions are proposed for this: hardware and software. The hardware solution is to install a jumper 7-8 on the hard disk. To align the sections programmatically in universal access lined utility called WD Align .

There are some limitations in the hardware solution: WD does not guarantee normal operation when partitioning a disk into several (> 1) partitions. In addition, the hardware solution (jumper) is not visible either in the utility or in the operating system. So, theoretically, you can first plug in the jumper, and then perform the alignment programmatically (or create a partition in the modern OS) - and as a result get a “double” shift.
For these reasons, software alignment will be discussed further (but hardware will also be tested).

1.2. WD Align and Windows Server 2003

Under the above link for software sector leveling, WD offers two utilities: from Paragon and from Acronis. The version from Paragon in general refuses to be installed on Win2003 (and, by the way, it is honestly not in Supported Operating Systems). The version from Acronis is installed in Win2003, but it also defines the disk as “Not a Western Digital Advanced Format format disk,” and the section as “Not optimally aligned section”. Alignment section of the utility in this situation can not be done.

There are no official announcements about the support of Advanced Format technology in Windows Server 2003, the use of WD Align too. According to the theory - in Win2003 almost the same core as in WinXP. And that means that they should work with disks (almost?) Equally. To test this possible "almost" performance tests were performed.

2. Practice


It should immediately be said: the purpose of the tests was not to measure the maximum speed of the disk and, moreover, not to compare it with other disks or other tests. The purpose of these tests was to identify the relative difference in the speed of the disk with aligned and non-aligned sections.

The WD20EARS of 2TB was used as a test subject, and Iometer 2006.07.27 was used as a test tool . A rather detailed guide in English is attached to the program. In Russian with a description of the main settings can be found, for example, here .
Many tests have been performed with different access specifications, including the following variations:
- Read / Write - read / write
- Sequential / Random - random / sequential disk access
- Transfer Request Size - a different block size when accessing a disk (512 / 2k / 4k / 16k / 64k)
- Outstanding I / Os - different number of simultaneous disk requests (1/4/16/64/256)

Out of the whole set of obtained data, I present results that can be shown, sufficiently and sufficiently, whether there is a difference between aligned and non-aligned sections. Access specification parameters are as follows:
- Read / Write: 50% / 50%
- Sequential / Random: 100% Sequential
- Transfer Request Size: 512 / 2k / 4k / 16k / 64k
- Outstanding I / Os: 1
The disk was tested in the following formatting options:
1. Unaligned unpartitioned disk. Unallocated
2. Unaligned marked disk. Unaligned.
3. The aligned (jumper) marked disk. Aligned (hard).
4. Aligned (WD Align) marked disk. Aligned (soft).
To reduce the influence of random factors on the system under test, all “unnecessary” services were turned off and the network connection was turned off.
Each access specification was tested for 5 minutes with a delayed reading (Ramp Up Time) of 15 seconds.

Test results are as follows:


Verdict: you need to align partitions on disks with Advanced Format under Windows Server 2003, which is consistent with theory. Of course, a disk with unaligned partitions will work, but the speed is lame.

3. Leveling Instructions


As it was already said in the theoretical part, using WD Align utility under Win2003 will not work. Therefore it is necessary to perform alignment in a different environment, and then give Win2003 for use. You can choose from:
- Creating partitions using standard Windows Server 2003 tools, and then aligning WD Align from the boot disk.
- Creating partitions using standard Windows XP tools, and then leveling WD Align in the same XP.
- Creating partitions using standard Windows Vista / 7/2008 tools.
- Modification of the installer WD Align from Paragon, so that it can be installed in Win2003.

In most cases, having Win2003, the first option is simpler and more reliable (the rest of the options were not checked by me personally). Therefore, I provide a detailed description of the option with the boot disk:
0. Do not forget to remove the jumper 7-8 if you inserted it.
1. Download and install WD Align from Acronis ( take here ).
2. Run the WD Align Bootable Media Builder utility and create a bootable disk.
3. In order for WD Align to later see the hard disk, you need to initialize it and create partitions on it (you can format it with fast formatting).
4. Boot from the created boot disk and align the partitions (now the utility should define the disk as WD Advanced Format).
5. Reboot into Win2003. To check, you can run WD Align, opposite the sections should be an icon "Optimally aligned section". Opposite the drive there will be an icon “Not a disc of Western Digital Advanced Format format”, but there's nothing to be done with this glitch.

Source: https://habr.com/ru/post/108697/


All Articles