Are segments block-aligned? #5081
|
Does the writer attempt to align the starts of segments to a 4 KiB boundary within a vortex file? I'm assuming that seeking to the start of a segment is a common thing when reading a vortex file; if so, block-aligning them may reduce read amplification and pagecache usage. (I did a quick search and found a lots of mentions of alignment in the code, but AFAICT those are about aligning in-memory byte buffers to the size of their element type.) |
Answered by
robert3005
Oct 26, 2025
Replies: 1 comment
|
They’re not aligned right now but it’s one of the changes we’d like to make to the writing logic to give you an option to page align them. Then we’d also be able to leverage O_DIRECT for reading on certain devices |
0 replies
Answer selected by
connortsui20
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They’re not aligned right now but it’s one of the changes we’d like to make to the writing logic to give you an option to page align them. Then we’d also be able to leverage O_DIRECT for reading on certain devices