Hi Nate, big thanks for your useful response. I tried out the gdisk command - you missed out saying that once it's running, you need to type 'p' to get the partition table listing. Here's mine:
Code:
Disk /dev/disk0: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 47A52648-E357-448D-A0F4-620FD48E35F3
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 8-sector boundaries
Total free space is 13 sectors (6.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 975503591 465.0 GiB AF00 Macbook HD
3 975503592 976773127 619.9 MiB AB00 Recovery HD
As you can see, partition 1 and 2 start on the same offsets as yours, and this is the case for every modern mac I've looked at.
What I'm hearing however, is that as well as the partitions being aligned, the SECTOR OFFSET also needs to be aligned. I'm stumbling my way through this topic, but the general gist (the numbers appear different to me every time I look at it) is that SSDs have 4kb page sizes, and that the first offset should also be a multiple of 4kb from the start of the SSD. (in the tables above, the first offset is Partition 1 starting at sector 40)
Why? Because the filesystem measures offset starting from the start of the sector. (possibly only from the start of the first sector, not from any other sector).
So if the first sector has the wrong offset, then even though the filesystem is still aligned on 512byte boundaries, the OS is not saving files to neatly fit into the SSD 4kb page size. Some files are overlapping on pages when they could neatly fit into one page.
Realigning on page size is meant to have a small but measureable effect on random r/w. The last test I saw of this was a year or two ago, and gave a 50mb/s increase. (Fun to have for tweakers like us but not a big deal for normal people
)
I was wiping and reinstalling a Macbook Pro HDD the other day and for *fun* I tested a custom offset, theoretically aligned on page boundaries:
Sector 1 (EFI) Start at 4096 sectors (not Disk Utility's 40 sector offset)
Sector 2 (Main) Start at 409600 sectors (not 409640)
Result: Failure. OSX started to install then refused to continue halfway though. Disk Utility said EFI was too small, claimed to repair it, but actually failed to repair it. I wiped and restarted with standard DU offsets which went fine.
I need to recalculate these offsets to give the right size EFI partition while staying on page boundaries. (A too big EFI partiton might be OK but I don't know how sensitive the installer is). But I haven't really got the time or the knowledge to do so. If you can suggest some numbers I'll try again maybe in a couple of weeks as I have another disk wipe coming up soon.