How Important is Partition Alignment ???

BuckSkin

Member
Power User
VIP
Local time
3:58 PM
Messages
523
As if my poor numb skull didn't have enough stuff floating around in it, I discovered that there was such a thing as partition alignment.

I Google-searched it and everything I came up with was way over my head and seemed to be more oriented toward Windows 2003 and 2008 "servers", and I don't know what a server is.

I did find a formula for determining if one's partitions were aligned and did the math, dividing some number by 4096 to see if it came out even; it did not, having a remainder of 1024.

My understanding is that discs are comprised of 512-sized blocks and and one wants the stuff stacked atop these blocks to align at every fourth joint.

Is partition alignment something I need to worry about ?

Thanks.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Optiplex 780m "mini-tower"
OS
Windows 7 Pro x64
CPU
Intel Core Two Duo E8600 3.33 ghz
Motherboard
Whatever DELL put in it
Memory
8GB
Graphics Card(s)
Gigabyte Radeon R7 240
Monitor(s) Displays
HP 2159m
PSU
750 Watt Corsair CX750
Keyboard
Logitech Wireless
Mouse
Logitech Wireless
Browser
Chrome, Firefox, IE
Enter ALIGN SSD in search window at top of this page. Lots of good reading.
Art.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home built
OS
Win7 sp1 Pro 64bit / XP sp2 Pro (games only)
CPU
Intel Core 2 Duo E8400 @ 3.00GHz
Motherboard
Intel Corporation DP35DP (CPU1)
Memory
8.00 GB Dual-Channel DDR2 @ 400MHz (5-5-5-18)
Graphics Card(s)
1024MB GeForce GTX 560
Sound Card
NVIDIA High Definition Audio
Monitor(s) Displays
SyncMaster (2048x1152@60Hz)
Hard Drives
240GB Sandisc Extreme Pro SSD
244GB Seagate ST3250410AS
488GB Seagate ST500DM002-1BD142
931GB Western Digital WDC WD1003FZEX
PSU
Corsair 720
Case
ATX
Keyboard
HID Keyboard Device Logitech
Mouse
HID-compliant mouse Microsoft
Other Info
TSSTcorp CDDVDW SH-S223L

HL-DT-ST BD-RE BH12LS35
Hi,
You can run this and post a screen shot of the results
Show us your SSD performance 2 - Windows 7 Help Forums

If you see red x's on the top left you can use free mini tool to align the partitions
Best Free Partition Manager for Windows | MiniTool Partition Free

396101d1486160011-show-us-your-ssd-performance-2-a-mini-tool-align-partition.jpg
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom assembled by me :}
OS
Win-7-Pro64bit 7-H-Prem-64bit
CPU
i7-5930K 2nd i9-9940x both water blocked VRM's too
Motherboard
ASUS SABERTOOTH X99 2nd ASUS x299 Apex
Memory
Trident-z 3200C14 2nd Trident-z 3600C16
Graphics Card(s)
EVGA 1080ti ftw3 2nd Titan Xp both water blocked
Sound Card
Built-in Realtek
Monitor(s) Displays
1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24" 144Hz
Screen Resolution
1920 x 1080 144Hz
Hard Drives
2-Samsung M.2 Evo & Evo Plus
2-Samsung 850 EVO 500GB SSD's/ 3-2.5 W.D. Black 1tb-&3-1tb/3-3.5 WD Black 1tb hdd's
PSU
EVGA SuperNOVA 1000-P2 2nd 1200-P2
Case
2-Corsair Obsidian Series 450D Black ATX Mid Tower
Cooling
Custom water loops
Keyboard
Logitech G710+/ 2nd Logitech G910
Mouse
2-RedDragon M901 Perdition 16400 dpi Gaming mouse = wired
Internet Speed
Comcast Ping 19ms 89.31mbps download speed 6.12mbps upload
Antivirus
Malwarebytes Pro/ Superantispyware Pro
Browser
FireFox & Pale moon
Other Info
2nd ASUS X299 Apex/Intel i9-9940x with Custom water loop/7H-Prem-x64/Corsair 450D case/Ram Trident-z 3600C16 4x8gb / Samsung970Evo plus 500gb SSD/Dual ssd EZ swap evo/PSU EVGA SuperNova 1200w-P2 80+Platinum/GPU Titan Xp /8-ML-140 on push-pull on 2-280GTX rads
Does this pertain to HDDs as well ?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Optiplex 780m "mini-tower"
OS
Windows 7 Pro x64
CPU
Intel Core Two Duo E8600 3.33 ghz
Motherboard
Whatever DELL put in it
Memory
8GB
Graphics Card(s)
Gigabyte Radeon R7 240
Monitor(s) Displays
HP 2159m
PSU
750 Watt Corsair CX750
Keyboard
Logitech Wireless
Mouse
Logitech Wireless
Browser
Chrome, Firefox, IE
Does this pertain to HDDs as well ?
It can. The crucial factor is whether the disk is an "Advanced Format" type. Not all HDDs are AF (though probably anything 500GB+ almost certainly is), and AFAIK all SSDs are AF, regardless of size.

Traditional disk drives have long used storage allocation units (sectors) of 512 bytes ... long enough that operating systems came to assume that and hard-coded that value into their disk access routines. For various engineering reasons tangential to this discussion, drive manufacturers have switched to using allocation units internally (inside the drive itself) of 4096 bytes.

However, older OSes (Win7 and earlier) were designed to expect 512-byte sectors, so for backward compatibility many drive manufacturers use drive controller firmware that makes each internal 4KB sector appear to the outside world as eight 512-byte sectors. These types of AF drives are known as "512e" (emulated 512-byte), while AF drives that do not have 512e controllers are often called "4Kn" (native 4KB).

The reason this matters is that all drives can only read/write full sectors at a time, so if the OS wants to write/rewrite a single "fictitious" 512-byte sector, an AF-type drive would have to write an entire 4KB "real" sector without changing 7/8 of it. That requires the drive to read into a cache the relevant 4KB sector from the disk, alter the 1/8 of the cache copy the OS wants changed, then rewrite the full 4KB cache back to the disk.

As inefficient as that may sound, it's not all that bad because modern OSes (XP and up) and file systems (NTFS) never read/write one 512-byte sector at a time anyway; they're designed to read and write in 4KB blocks--i.e., what they perceive as 8 sectors at a time. This is ideal for AF drives, provided the 8 512-byte sectors the OS wants to access line up exactly with a single AF sector on the drive.

To illustrate the impact of misalignment, consider what happens if the 8 sectors an OS wants to write span, let's say, the last four 512e sectors of one AF sector and the first four 512e sectors of the next AF sector. To write those 8 512e sectors, the drive controller would have to read and cache *two* AF sectors, save half and modify half of each one, then write both AF sectors back to the disk.

Contrast that with a properly aligned partition, in which no read-and-save would be necessary and the 8 512e sectors can be written straightaway to a single AF sector.

As you can see, that can drastically affect disk performance. So yes, partition alignment is important when using modern hard disks. The performance hit is even more dramatic with SSDs because TRIM and "garbage collection" come into play, whereas those technologies aren't a factor in traditional magnetic HDDs.

Many tools can be used to determine if your partitions are already aligned. To keep things simple, let's stick with ThrashZone's suggestion of MiniTool Partition Wizard--which is an excellent, all purpose partitioning tool anyway. Right-click on any given partition and select "Properties". In the Properties window, select the "Partition Info" tab. Note the values for First Physical Sector and Last Physical Sector.

A properly aligned partition will align on 1MB boundaries (2048 512e sectors). So take the First Physical Sector value and divide by 2048. If it's an exact multiple, the front of the partition is aligned. Take the Last Physical Sector plus 1, and divide by 2048. If it's an exact multiple, the back of the partition is aligned. Repeat for each partition.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Optiplex 7050
OS
Windows 7/8.1/10 multiboot
CPU
Intel Core i7-7700
Motherboard
Dell, Intel Q270 chipset
Memory
48GB (2x16GB Crucial DDR4-3200 + 2x8GB Hynix DDR4-2400)
Graphics Card(s)
Intel HD630 + AMD Radeon R7 450 PCIe
Monitor(s) Displays
Asus VC279 (27")
Screen Resolution
1920x1080
Hard Drives
Toshiba M.2 NVMe (256GB),
Samsung 960 Evo (500GB),
WD Red Plus 80EFBX (8TB)
Many tools can be used to determine if your partitions are already aligned. To keep things simple, let's stick with ThrashZone's suggestion of MiniTool Partition Wizard--which is an excellent, all purpose partitioning tool anyway. Right-click on any given partition and select "Properties". In the Properties window, select the "Partition Info" tab. Note the values for First Physical Sector and Last Physical Sector.

A properly aligned partition will align on 1MB boundaries (2048 512e sectors). So take the First Physical Sector value and divide by 2048. If it's an exact multiple, the front of the partition is aligned. Take the Last Physical Sector plus 1, and divide by 2048. If it's an exact multiple, the back of the partition is aligned. Repeat for each partition.


I know that took a lot of typing and I appreciate it.

It will take me a bit to digest it all, but I will.

I followed a path to find my "Partition Starting Offset", a huge number that I then divided by 4096; the instructions I was following said that things were okay if it divided with no remainder; my number ended up with a remainder of 1024, twice the 512 and 1/4th the 4096.

Are you familiar with that test ?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Optiplex 780m "mini-tower"
OS
Windows 7 Pro x64
CPU
Intel Core Two Duo E8600 3.33 ghz
Motherboard
Whatever DELL put in it
Memory
8GB
Graphics Card(s)
Gigabyte Radeon R7 240
Monitor(s) Displays
HP 2159m
PSU
750 Watt Corsair CX750
Keyboard
Logitech Wireless
Mouse
Logitech Wireless
Browser
Chrome, Firefox, IE
I'm not familiar with what instructions you may be following, but if they have you dividing by 4096 then it sounds like they're using multiples of bytes rather than multiples of sectors. That's okay, provided they choose the correct divisor. (Using bytes is not an altogether crazy approach--the Windows registry itself actually indexes partitions by their byte location instead of sector location.) Since sectors are universally assumed to be 512 bytes, doing the math with byte values isn't any different except for the divisor to be used.

Unfortunately, a divisor of 4096 is not correct. That will tell you if things line up with the 4KB boundaries of individual AF sectors, but a properly aligned partition is more than that. It lines up on 1 MB boundaries--that is, 2048 512-byte sectors (or 256 AF sectors), not just on single AF sector boundaries.

A properly aligned partition is aligned on 1MB boundaries instead of 4KB boundaries to facilitate Windows working more efficiently with huge gobs of data, megabytes at a time--such as the MFT, page file, and hibernation file.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Optiplex 7050
OS
Windows 7/8.1/10 multiboot
CPU
Intel Core i7-7700
Motherboard
Dell, Intel Q270 chipset
Memory
48GB (2x16GB Crucial DDR4-3200 + 2x8GB Hynix DDR4-2400)
Graphics Card(s)
Intel HD630 + AMD Radeon R7 450 PCIe
Monitor(s) Displays
Asus VC279 (27")
Screen Resolution
1920x1080
Hard Drives
Toshiba M.2 NVMe (256GB),
Samsung 960 Evo (500GB),
WD Red Plus 80EFBX (8TB)
Hi,
You can run this and post a screen shot of the results

I was a bit uncertain which product you are meaning; is HDTune the one I should use; if so, does the free version accomplish what we are after ?


I went ahead and downloaded the MiniTool Partition program.


Thanks.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Optiplex 780m "mini-tower"
OS
Windows 7 Pro x64
CPU
Intel Core Two Duo E8600 3.33 ghz
Motherboard
Whatever DELL put in it
Memory
8GB
Graphics Card(s)
Gigabyte Radeon R7 240
Monitor(s) Displays
HP 2159m
PSU
750 Watt Corsair CX750
Keyboard
Logitech Wireless
Mouse
Logitech Wireless
Browser
Chrome, Firefox, IE
Does this pertain to HDDs as well ?
Hi,
No it is only for ssd's
I don't believe a hdd would matter if it was aligned or not
About all I ever do is make sure partitions are an even gb # except for any system reserved partition which i leave alone if they exist.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom assembled by me :}
OS
Win-7-Pro64bit 7-H-Prem-64bit
CPU
i7-5930K 2nd i9-9940x both water blocked VRM's too
Motherboard
ASUS SABERTOOTH X99 2nd ASUS x299 Apex
Memory
Trident-z 3200C14 2nd Trident-z 3600C16
Graphics Card(s)
EVGA 1080ti ftw3 2nd Titan Xp both water blocked
Sound Card
Built-in Realtek
Monitor(s) Displays
1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24" 144Hz
Screen Resolution
1920 x 1080 144Hz
Hard Drives
2-Samsung M.2 Evo & Evo Plus
2-Samsung 850 EVO 500GB SSD's/ 3-2.5 W.D. Black 1tb-&3-1tb/3-3.5 WD Black 1tb hdd's
PSU
EVGA SuperNOVA 1000-P2 2nd 1200-P2
Case
2-Corsair Obsidian Series 450D Black ATX Mid Tower
Cooling
Custom water loops
Keyboard
Logitech G710+/ 2nd Logitech G910
Mouse
2-RedDragon M901 Perdition 16400 dpi Gaming mouse = wired
Internet Speed
Comcast Ping 19ms 89.31mbps download speed 6.12mbps upload
Antivirus
Malwarebytes Pro/ Superantispyware Pro
Browser
FireFox & Pale moon
Other Info
2nd ASUS X299 Apex/Intel i9-9940x with Custom water loop/7H-Prem-x64/Corsair 450D case/Ram Trident-z 3600C16 4x8gb / Samsung970Evo plus 500gb SSD/Dual ssd EZ swap evo/PSU EVGA SuperNova 1200w-P2 80+Platinum/GPU Titan Xp /8-ML-140 on push-pull on 2-280GTX rads
About all I ever do is make sure partitions are an even gb # except for any system reserved partition which i leave alone if they exist.

Thanks !
Do you mean "even GB # " as in 2 or 4 or 6 or 8; or do you mean so long as it is not a fractional number ?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Optiplex 780m "mini-tower"
OS
Windows 7 Pro x64
CPU
Intel Core Two Duo E8600 3.33 ghz
Motherboard
Whatever DELL put in it
Memory
8GB
Graphics Card(s)
Gigabyte Radeon R7 240
Monitor(s) Displays
HP 2159m
PSU
750 Watt Corsair CX750
Keyboard
Logitech Wireless
Mouse
Logitech Wireless
Browser
Chrome, Firefox, IE
Hi,
Not necessary to use even numbers but you can I find it easier to count :)
But indeed no fractions 1gb is a block
50gb's .....
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom assembled by me :}
OS
Win-7-Pro64bit 7-H-Prem-64bit
CPU
i7-5930K 2nd i9-9940x both water blocked VRM's too
Motherboard
ASUS SABERTOOTH X99 2nd ASUS x299 Apex
Memory
Trident-z 3200C14 2nd Trident-z 3600C16
Graphics Card(s)
EVGA 1080ti ftw3 2nd Titan Xp both water blocked
Sound Card
Built-in Realtek
Monitor(s) Displays
1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24" 144Hz
Screen Resolution
1920 x 1080 144Hz
Hard Drives
2-Samsung M.2 Evo & Evo Plus
2-Samsung 850 EVO 500GB SSD's/ 3-2.5 W.D. Black 1tb-&3-1tb/3-3.5 WD Black 1tb hdd's
PSU
EVGA SuperNOVA 1000-P2 2nd 1200-P2
Case
2-Corsair Obsidian Series 450D Black ATX Mid Tower
Cooling
Custom water loops
Keyboard
Logitech G710+/ 2nd Logitech G910
Mouse
2-RedDragon M901 Perdition 16400 dpi Gaming mouse = wired
Internet Speed
Comcast Ping 19ms 89.31mbps download speed 6.12mbps upload
Antivirus
Malwarebytes Pro/ Superantispyware Pro
Browser
FireFox & Pale moon
Other Info
2nd ASUS X299 Apex/Intel i9-9940x with Custom water loop/7H-Prem-x64/Corsair 450D case/Ram Trident-z 3600C16 4x8gb / Samsung970Evo plus 500gb SSD/Dual ssd EZ swap evo/PSU EVGA SuperNova 1200w-P2 80+Platinum/GPU Titan Xp /8-ML-140 on push-pull on 2-280GTX rads
Back
Top