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

David Chisnall <thera...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|linuxulator doesn't         |linuxulator doesn't
                   |implement                   |implement
                   |madvise(MADV_DONTNEED)      |madvise(MADV_DONTNEED) and
                   |correctly                   |any MADV_ flags with values
                   |                            |>= 8 correctly

--- Comment #3 from David Chisnall <thera...@freebsd.org> ---
(In reply to Mark Johnston from comment #2)

Sorry, wanting MADV_ZERO is an unrelated issue: we have some code that would
get a very nice perf improvement if we had it.

In our own code, we implement a FreeBSD equivalent of Linux's MADV_DONTNEED by
doing an mmap with MAP_FIXED over the address range.  This works fine for
anonymous memory mappings (which is all that Linux supports), but it means that
we have to fall back to bzero for shared memory (which means that, among other
things, we get a unique physical page for each virtual page, even though
there's a good chance that the pages are going to stay zero for a while).

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