Skip to content

Disk utilities

Partition alignment

Unaligned partitions and disk sectors cause two disk writes for every OS write. This significantly reduces disk I/O throughput. Use parted to create and align partitions to avoid this issue.

First, determine the optimal starting sector to ensure the partition is aligned with disk sectors.

initial sector=(optimal_io_size+alignment_offset)/physical_block_size

To get the parameters for the sdd disk:

cat /sys/block/sdd/queue/optimal_io_size
cat /sys/block/sdd/alignment_offset
cat /sys/block/sdd/queue/physical_block_size