aws-quickstart / quickstart-microsoft-activedirectory

AWS Quick Start Team
Apache License 2.0
114 stars 113 forks source link

Unusual Partition Alignment Value #148

Open Snozzberries opened 2 years ago

Snozzberries commented 2 years ago

When I was reviewing the PowerShell module for the New-VolumeFromRawDisk cmdlet. I saw that the alignment was set to 4,000 KiB, which although divisible by 4,096 seemed unusual. I tested and found that 4,000 KiB alignment was almost the least performant option given my conditions.

I didn't find anything very clear within the AWS documentation in general, only the EBS volumes Size and configuration constraints document.

Is there a specific benefit to using 4,000 KiB as the alignment?

Testing: https://snozzberries.github.io/2022/07/23/aws-ebs-partition-alignment.html

Reference: https://github.com/aws-quickstart/quickstart-microsoft-activedirectory/blob/c543d4e8c101dfdbbe5beafddbdff32f02c123f9/scripts/Modules/Module-AD/Module-AD.psm1#L41