Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Sep 2017 19:49:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   [Bug 222356] www/firefox: file-backed shared memory performance
Message-ID:  <bug-222356-21738-DLLtMTjDfB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-222356-21738@https.bugs.freebsd.org/bugzilla/>
References:  <bug-222356-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222356

--- Comment #1 from Konstantin Belousov <kib@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 offse=
t,
vm_size_t size,
         * I/O.
         */
        if (object->type =3D=3D OBJT_VNODE &&
-           (object->flags & OBJ_MIGHTBEDIRTY) !=3D 0) {
-               vp =3D object->handle;
+           (object->flags & OBJ_MIGHTBEDIRTY) !=3D 0 &&
+           ((vp =3D object->handle)->v_vflag & VV_NOSYNC) =3D=3D 0) {
                VM_OBJECT_WUNLOCK(object);
                (void) vn_start_write(vp, &mp, V_WAIT);
                vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222356-21738-DLLtMTjDfB>