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.) |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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