Hello,

I have been installing OpenBSD quite a bit in a virtualization
environment and the
underlying storage has been  formatted in 1MB blocks, and most other operating
systems have recommended for best performance to align the partition on a 1MB
Offset rather than a smaller value.

the reasoning behind this is that if you have files that are around
than 1MB in size
and they are stored in the file system it is likely that they will
cross a block boundary and while OpenBSD only wants to read the file,
the underlying storage system
will have to retrieve 2 blocks and this is wasteful on resources.

If the offset was set to 2048 sectors (at 1MB in my case) the  disk
performance of OpenBSD on my underlying system would be improved.
I have been setting the value of the initial offset to 2048 and I have
used exact sizes  in-terms of sector count to keep my subsequent
partitions aligned with the 1M offset,
I have not noticed any ill affect on my installs (for the past 2
years) and I think it
would be worth considering this as a suggested default when installing OpenBSD

Any comments suggestions insights welcome, as my experience  on virtualization
has been Vmware Based. But I would imagine most modern enterprise
storage systems are using larger block sizes... and by setting it to a
1MB or perhaps a larger value (as long as the value ends on a 1MB
Boundary eg 2MB or 4MB) depending on other users experience

Thanks for your Time,

Tom Smyth

Reply via email to