The emergence of modern hard drives with sectors of 4 KB (instead of 512 bytes) made the problem of alignment of sections relevant for both IT-specialists and ordinary users. The fact is that the discrepancy between the physical and logical distribution of data can lead to a sharp decline in the performance of the entire system and shorten the life of the equipment.
To explain the essence of partition alignment, we illustrate the placement of data stored on a regular hard disk:

The figure shows a simplified segmentation scheme, where one partition takes up all disk space and all sectors. The section corresponds with the first sector, the beginning of the section corresponds to the beginning of the first sector. However, this is too simplified scheme. After all, the section consists of logical units / blocks. Consider how they are related to the sectors:
')

The figure shows that two sectors correspond to one cluster. This means that when reading data, for example, a small text file from one cluster, the storage device reads data from two sectors.
Note: the beginning of the section corresponds to the beginning of the first sector and all clusters are aligned by sector, therefore, the section is aligned. Data operations are performed at maximum speed.
Now consider the reasons for the discrepancy between sections and sectors of the consequences of this phenomenon.
How and why does the discrepancy between partitions and sectors slow down the hard disk?The size of the physical sectors of modern hard drives (for example, Western Digital) is 4,096 bytes, and 4 KB data blocks are processed at the physical level; however, for external equipment and software, such disks look like “traditional” ones with 512-byte sectors. This allows compatibility with earlier software versions. In such cases, another level is added - the compatibility level.

The figure shows the three levels of data distribution. The lower level is, in fact, the hard disk and physical sectors of 4 KB each. The second level is an abstract representation in the form of 512-byte sectors for external systems. And the uppermost level is the current file system with 2 KB clusters, each of which is equal to four abstract sectors and half of the physical sector. Thus, 1 cluster = 4 abstract sectors = ½ of the physical sector.
Notice that all three levels are aligned with each other and the beginning of the disc. Thus, reading or writing data of one cluster is implemented using four 512-byte sectors and one 4K sector. The number of read-write operations is minimal; drive works with maximum performance.
But the situation changes for the worse when the logical level clusters shift relative to the underlying layers, as shown in this figure:

As you can see, the partition is offset from the beginning of the disk by one sector of 512 bytes. As a result, several logical clusters were associated with two physical 4KB sectors (second, fourth, and sixth), which doubled the number of read-write operations. In this case, the performance of the system is reduced, since the hard disk drive performs two operations in two sectors instead of one, as with proper partition alignment.
What are the causes of bias? All versions of Windows OS prior to Vista, when creating clusters, volumes are oriented to sectors of 512 bytes and place the beginning of the partition in accordance with them, and not with 4 KB sectors as shown in the previous figure, where the beginning of the partition is shifted to one sector of 512 bytes.
Usually the section starts with 63 sectors. 63 sectors - the established size of the “cylinder” of the disk and some older versions of DOS or Windows require that the partition be aligned with the “cylinder” for correct addressing and access to the sectors. Modern operating systems do not use the outdated CHS addressing scheme (cylinder / read head / sector). But for a number of reasons, all versions of Windows prior to Vista create partitions according to this rule.
Interestingly, the sections aligned in 63 sectors are not matched for 4 KB sectors for purely mathematical reasons.

It is obvious that 63 sectors of 512 bytes do not correspond to a whole number of 4 KB sectors. Thus, the first and all subsequent disk partitions will be located with an offset.
What does the Paragon Alignment Tool do?In the coming days, Paragon Software will present the Paragon Alignment Tool (PAT) utility. In fact, it moves partitions by a number of sectors of 512 bytes, aligning the volumes. For example, to align a partition with a size of 63 sectors, you just need to move it forward one sector with a size of 512 bytes.

Now the beginning of the section corresponds to the beginning of the 4KB sector, and this section and all subsequent ones are arranged correctly.

PAT shifts the beginning of the partition by 2048 sectors of 512 bytes from the beginning of the disk, which corresponds to 1 MB, and is also well suited for 4 KB sectors.
The need to align sections for SSDFor SSDs, the problem of misallocating partitions is even more relevant than for traditional hard drives. The size of the memory modules of modern SSD is 4096 bytes, which is analogous to 4 KB sectors. Thus, all the previously mentioned problems associated with the alignment of partitions, arise when using SSD.
However, in addition to reducing the speed of the file system, there is another problem that is unique to SSD. Memory cells of solid-state disks fail faster with a large number of write operations. Thus, with the wrong location of partitions on the SSD, not only the speed of the system is reduced, but also the SSD itself is endangered.
Aligning partitions with PAT eliminates redundant read / write operations, which can significantly increase the speed and extend the life of the SSD.
The need for partition alignment for SAN and RAIDRAID technology allows you to combine multiple hard drives and other storage devices into one large data array. The system perceives this array as one large storage device, and the data is distributed across all of its resources. The volume, after reaching which the data cease to be recorded on one disk of the array and begin to be recorded on another, is called the size of the stripe, which, in turn, can be very different (8 KB, 16 KB, 32 KB or 64 KB).
When using software or hardware RAID, system performance may decrease if the initial partition position does not match the stripe size. In this case, the number of operations with data on multiple disks of the RAID array increases.
To solve this problem, PAT shifts sections by 2048 sectors. This offset is suitable for most stripe sizes. Working with data becomes faster by eliminating redundant operations.
The need for partition alignment in virtual environmentsAligning partitions in a virtual infrastructure environment is very important for performance, equipment life and efficient use of storage. Incorrect partitioning results in the virtual machine receiving more data from the array than requested. This not only reduces work efficiency, but with such excessive load, more storage resources are required.

This figure shows the configuration of a VMware ESX \ Server \ vSphere server using RAID / SAN storage. Here, the sections are incorrectly located on two levels at once, which leads to a serious decrease in performance. For example, to read data from the first cluster, the system must read three VMFS blocks and four RAID blocks (and even more stripes).
Currently, PAT cannot move VMFS volumes themselves, but can align partitions on virtual disks.

With this configuration, all volumes and partitions are located correctly and the overall speed of data operations has doubled.