should I align logical and physical sector size?

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

voodooFX

Active Member
Jan 26, 2014
247
52
28
That sounds like a stupid question, but since I'm not 100% sure I prefer ask :)

I have some HGST Ultrastar SSD800MM SSDs which I have formatted with 512 bytes, but looking at the smart output seems that the drive has a physical block size of 4096 bytes and I wonder if I should format it with 4096 bytes?

Code:
=== START OF INFORMATION SECTION ===
Vendor:               HITACHI
Product:              HUSMM808 CLAR800
Revision:             C210
Compliance:           SPC-4
User Capacity:        800,176,914,432 bytes [800 GB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LU is resource provisioned, LBPRZ=1
Rotation Rate:        Solid State Device
Form Factor:          2.5 inches
Logical Unit id:      0x5000cca02b377150
Serial number:        2MVZH7AA
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Wed Jun 19 07:17:09 2019 CEST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Disabled or Not Supported
 

zxv

The more I C, the less I see.
Sep 10, 2017
156
57
28
If the filesystem supports it, it would not hurt to use a 4K block size.

However, since most file systems use 4K or larger blocks anyway, the performance difference may be limited unless you need to tune it for something specific, like databases, where larger blocksizes are definitely an advantage.

Many partition utilities will start the first partition at a 1M byte offset, to avoid any block-wise miss-alignment issues.

In other words, in certain typical cases it's OK as is.
 

ajs

Active Member
Mar 27, 2018
101
36
28
Minnesota
512 is fine as long as your io is aligned to 4k boundaries. Unaligned workloads will severely impact performance and write amplification by causing many internal read modify writes and sub map unit reads.