Re: [PATCH v2 1/2] fio: add support for POSIX_FADV_NOREUSE

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

 



On 3/31/23 12:41 PM, Jens Axboe wrote:
> On 3/31/23 12:37 PM, Yuanchu Xie wrote:
>> As of Linux kernel commit 17e810229cb3 ("mm: support
>> POSIX_FADV_NOREUSE"), POSIX_FADV_NOREUSE hints at the LRU algorithm to
>> ignore accesses to mapped files with this flag. Previously, it was a
>> no-op.
>>
>> Add it in fio as an fadvise_hint option to test the new behavior.
> 
> I just applied this, but then I pondered if we'll be breaking normal
> installs that don't have POSIX_FADV_NOREUSE available? Maybe the
> libc define predates the kernel actually implementing it by long
> enough that this doesn't matter? Let's see what happens...

Somewhat unsurprisingly, this did break the build on OSX. I added
a patch to make it conditionally available.

-- 
Jens Axboe





[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux