I have a Raspberry Pi 2 running the FreeBSD-11.0-RELEASE-arm-armv6-RPI2 image on a 16GB microSD card.
I've just noticed that the partitions in this image may not be aligned for optimal performance on flash storage:
The MS-DOS firmware slice starts at sector 63, which I expect is done to conform to legacy CHS partitioning standards, but this partition is mostly only read from, so not a problem.
The FreeBSD slice then starts at sector 102438, and the UFS root partition inside that starts a further 90 sectors on, for a total offset of 102528 (50.0625 MiB), which obviously doesn't align with the typical SD card flash erase block size of 4MiB.
Could this be hurting I/O performance and causing unnecessary additional writes and wear on the SD card?
I've just noticed that the partitions in this image may not be aligned for optimal performance on flash storage:
Code:
# gpart show
=> 63 30703553 mmcsd0 MBR (15G)
63 102375 1 !12 [active] (50M)
102438 30601178 2 freebsd (15G)
=> 0 30601178 mmcsd0s2 BSD (15G)
0 90 - free - (45K)
90 30601088 1 freebsd-ufs (15G)
The MS-DOS firmware slice starts at sector 63, which I expect is done to conform to legacy CHS partitioning standards, but this partition is mostly only read from, so not a problem.
The FreeBSD slice then starts at sector 102438, and the UFS root partition inside that starts a further 90 sectors on, for a total offset of 102528 (50.0625 MiB), which obviously doesn't align with the typical SD card flash erase block size of 4MiB.
Could this be hurting I/O performance and causing unnecessary additional writes and wear on the SD card?