[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 #8 from David Chisnall <[hidden email]> ---
(In reply to Bill Sorenson from comment #7)

As I said above, there is no mechanism for doing this with shared memory
segments - we cannot zero pages in the middle of a shared-memory segment
without using memset / bzero and this does not allow the kernel to decommit the
physical pages.  I haven't tested whether MAV_FREE allows the kernel to lazily
replace the pages with zeroed pages, but for our uses we need to guarantee
zeroing.

On Linux you can do this with some forms of shared memory using fallocate to
punch a hole in the underlying object, though apparently it isn't very
reliable.

--
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]"