Re: Question about O_APPEND | O_DIRECT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 27, 2023 at 05:08:22PM +0000, Trond Myklebust wrote:
> Note that APPEND would only really work with O_DIRECT, since it is
> anathema to cached I/O to not be able to control the placement of the
> data.

Yes.

> In addition, the model will always break down if someone decides they
> want to write a log entry of size > wsize. Once you have to split up
> the data, you (obviously) lose the atomicity you need in order to write
> a contiguous record.

Yes.  Note that there is work going on to define atomic I/O limits
on the various Linux lists currently.  Although in the block layer
we also have a separate limit for the maximum append size already.





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux