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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

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

--- Comment #9 from Mark Johnston <[hidden email]> ---
(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.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[hidden email]"