[Bug 230160] linuxulator doesn't implement madvise(MADV_DONTNEED) and any MADV_ flags with values >= 8 correctly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 11 18:35:53 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230160

--- Comment #9 from Mark Johnston <markj at FreeBSD.org> ---
(In reply to David Chisnall from comment #8)
MADV_FREE has no effect on shared memory (or anything other than private
anonymous memory); see vm_object_advice_applies().  We should update the man
page to that effect.

Aside from emulating Linux's MADV_DONTNEED, I'm not crazy about following the
precedent set by Linux by adding a MADV_ZERO that is required to have specific
side effects.  msync(2) might be a better entry point for this functionality?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-emulation mailing list