neon
neon copied to clipboard
pageserver: explore whether it's a good idea to replace `BlockBuf::blocks` with one big buffer.
BlockBuf::blocks currently holds a list buffers. In the write path, we are writing them one block at a time. Since these blocks resides next to each other on disk, we could do a big disk write instead.
https://github.com/neondatabase/neon/blob/0066f23c656b54446f49f95b19bc13776597c9b6/pageserver/src/tenant/block_io.rs#L254-L259
DoD
Investigate whether it is a good idea to
- Replace
BlockBuf::blockswith one big buffer, OR - memcpy
BlockBuf::blocksto the same buffer and do one big disk write.
Then implement if possible.
I'd like to help with this. Can you explain what exactly is needed? Does this issue need some additional arguments on what would be a better approach?
This issue was moved to Jira: LKB-2018