On 20.01.25 02:30, Lance Yang wrote:
MADV_PAGEOUT should fail on VMAs with the VM_DROPPABLE flag. While MADV_PAGEOUT is intended to move anonymous pages to swap, VM_DROPPABLE should not be swapped out. There is an issue where using MADV_PAGEOUT on a VMA with the VM_DROPPABLE flag behaves like MADV_DONTNEED, causing the pages to be dropped. This could break the semantics of MADV_PAGEOUT, IMO.
It behaves exactly correct I think. They can be dropped any time, which includes on misplaced MADV_PAGEOUT.
-- Cheers, David / dhildenb