[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

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