Re: RFC: posix_fadvise( "to end of file" ) semantics
From:
Collin Funk
Subject:
Re: RFC: posix_fadvise( "to end of file" ) semantics
Date:
Sat, 01 Nov 2025 11:47:22 -0700
User-agent:
Gnus/5.13 (Gnus v5.13)
Pádraig Brady <P@draigBrady.com> writes:
>> fadvise was added to 'cp'? I assumed that the impact of it would be
>> minimal, but that report proves otherwise at least for ZFS.
>
> We saw a 5% speedup when reading from SSD:
>https://github.com/coreutils/coreutils/commit/15f1d0c9a
> I measured a more significant speedup with spinning disks.
Great, thanks. 5% will likely be apparent for large files, so it is
definitely worth using. I guess the issues are more likely to arise on
complex filesystems like ZFS that support transparent compression and
encryption.
Collin