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

--- Comment #8 from David Chisnall <thera...@freebsd.org> ---
(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.
_______________________________________________
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"

Reply via email to