From nobody Thu Apr 13 14:25:30 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Py2171b1pz45BF8 for ; Thu, 13 Apr 2023 14:25:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Py2170Jnzz43vH for ; Thu, 13 Apr 2023 14:25:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681395931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xj1xan8AyeEacTOqoxh+wFC5P/btDygI1gCch1x4BA8=; b=Asxp+I4BaOtGU0a8Hhc6GWvEKOrxSRjyq8h6zqf3X2J+ItaUfyi6RCrlIpdMaRp1tfaqFF R2Y7s+jWIngbvIKvIrlUuAufMW+luN0azHKRYUY9BkXtWVTw9o9yHPtOFtN9ziym99fWY8 Ih3Sr3OJYUipFbj+MEd/2xpT9dovM+VZ480sl1dyaoRG/NHFBgh8Y6GRe2hjCJUTGP5dck oaOc7B2MLCJ96NnkuKIBzGFzifmkbgnlzwNHlhE0l3Yj9CVyy4IzHrAuY7r9tyIHUX8F51 BKQly+5vmSZG1S5RQdErCFYLRfIiyLZNvI2+JSYDs1UlmDNnx8ZO+yvPrHK2Uw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681395931; a=rsa-sha256; cv=none; b=kN6ejQOcZGiuoi8DVCD5zeAkse+0/mpTAhRARpwyCC7MivKvbHNjo1BdjpKTZrIN6J8lNb ZK9YhMvSzYShz24aNtuqj3XaRijUlrDhsvyy3vTWESxeOn2aqdpwLVk6FR5ArhGKlS1e3V akf/aQpTqNLUj5Uofbg8bDlScvfwwEUILS7iai3ErTkNG3DJxuxpKaD6n/FopxfFzYndSV l2GqxJiOR9xRBaNx4pCatxqWzJCAPw/oXHFqBkOSKAoqmPpI3d9gl4+GVAOYOxX1uLPscV 0jhxWqFQuLQvfMINam/m9IPvMZ2ECE2mPJG+YRB1J+4xix1hk+JRp2LK3I7wPg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Py2163wXFzlKm for ; Thu, 13 Apr 2023 14:25:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33DEPUwZ089239 for ; Thu, 13 Apr 2023 14:25:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33DEPUHr089238 for bugs@FreeBSD.org; Thu, 13 Apr 2023 14:25:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 270810] munmap does not always sync the underlying file Date: Thu, 13 Apr 2023 14:25:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270810 --- Comment #3 from Konstantin Belousov --- NFS is not POSIX compliant, for many reasons besides mmap. It is inherent = in the protocol. This is not going to change. FWIW, try to think how could reliable write-back from client to server on m= map could be implemented? System has the cache on client, and the data on serv= er. You need to implement coherency for async userspace writes to the cached pa= ges which are invisible to OS until it actively queries for dirty page status. The only known reliable way is to make each write fault to detect it. Then= you will complain about performance being 100x times worse than now. --=20 You are receiving this mail because: You are the assignee for the bug.=