Re: Do I have to fsync after aio_write finishes (with fallocate preallocation) ?

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

 



On Thu, Aug 31, 2023 at 8:47 PM Dave Chinner <david@xxxxxxxxxxxxx> wrote:
>
> On Thu, Aug 31, 2023 at 06:06:23PM -0700, Shawn wrote:
> > Hi Dave,
> > If ext size hint is not set at all,  what's the default extent size
> > alignment if the FS doesn't do striping (which is my case)?
>
> No alignment. XFS will allocate exact sized extents for the
> writes being issued...

=> Seems this can explain why io_submit() latency was very high for
small aio_write (4KB, 12KB, etc).
When I did fallocate() 1MB space before moving on to the next 1MB
chunk, then io_submit latency becomes normal.

So ext size hint can achieve the same effect as fallocate() in this
case, might be even better.

>
> -Dave.
> --
> Dave Chinner
> david@xxxxxxxxxxxxx




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux