[Bug 240061] MADV_FREE rewinds time to before fork()
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Aug 26 14:30:31 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240061
Mark Johnston <markj at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alc at FreeBSD.org,
| |kib at FreeBSD.org,
| |markj at FreeBSD.org
--- Comment #1 from Mark Johnston <markj at FreeBSD.org> ---
Out of curiosity, how did you come to notice this behaviour?
I think the solution you proposed would solve the problem. We would want to
ensure that the restrictions specified in vm_object_advice_applies() are
checked before modifying the object chain. In particular, MADV_FREE only marks
pages clean at the MI layer if the object is anonymous and is mapped into no
more than one address space. For OBJT_VNODE mappings, MADV_FREE does not clear
the MI dirty bits or requeue the page, but it will clear the dirty bit from
PTEs in the specified range.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list