[Bug 222356] www/firefox: file-backed shared memory performance

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Sep 15 19:49:14 UTC 2017


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

--- Comment #1 from Konstantin Belousov <kib at FreeBSD.org> ---
Could it be that msync(2) is called over that mappings ?  Try this

diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index fa197214296..33e7e6f8643 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -1083,8 +1068,8 @@ vm_object_sync(vm_object_t object, vm_ooffset_t offset,
vm_size_t size,
         * I/O.
         */
        if (object->type == OBJT_VNODE &&
-           (object->flags & OBJ_MIGHTBEDIRTY) != 0) {
-               vp = object->handle;
+           (object->flags & OBJ_MIGHTBEDIRTY) != 0 &&
+           ((vp = object->handle)->v_vflag & VV_NOSYNC) == 0) {
                VM_OBJECT_WUNLOCK(object);
                (void) vn_start_write(vp, &mp, V_WAIT);
                vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gecko mailing list