Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


block_alignment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
block_alignment [2014/05/22 08:20] – created adminblock_alignment [2014/05/22 08:20] admin
Line 3: Line 3:
 This is an area where you can still find a LOT of incorrect information out on the internet. Many people still believe that aligning to the erase block is a must for SSDs. However, this is not necessary. Simply aligning to a 4096KB block (or a multiple thereof) will give you the best performance. Many of the common partitioning tools will do this automatically. However, it is easy to check with /usr/bin/blockdev: This is an area where you can still find a LOT of incorrect information out on the internet. Many people still believe that aligning to the erase block is a must for SSDs. However, this is not necessary. Simply aligning to a 4096KB block (or a multiple thereof) will give you the best performance. Many of the common partitioning tools will do this automatically. However, it is easy to check with /usr/bin/blockdev:
  
-  #blockdev --getalignoff /dev/<partition>+  blockdev --getalignoff /dev/<partition>
  
 If the returned value is "0", the partition is aligned. If the returned value is "0", the partition is aligned.
block_alignment.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1