On 12/14/23 00:57, Christoph Hellwig wrote:
On Wed, Dec 13, 2023 at 08:41:32AM -0800, Jaegeuk Kim wrote:
How that works, if the device gives random LBAs back to the adjacent data in
a file? And, how to make the LBAs into the sequential ones back?
Why would your device pick random LBAs? If you send a zone append to
zone it will be written at the write pointer, which is absolutely not
random. All I/O written in a single write is going to be sequential,
so just like for all other devices doing large sequential writes is
important.
Bio splitting is one potential cause of write reordering that can be
triggered even if the filesystem submits large writes. The maximum segment
size in the UFS driver is rather small (512 KiB) to restrict the latency
impact of writing data on reads.
Bart.