From nobody Thu Apr 13 15:01:04 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 4Py2p91fKkz45F2w for ; Thu, 13 Apr 2023 15:01:05 +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 4Py2p90f5vz47rS for ; Thu, 13 Apr 2023 15:01:05 +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=1681398065; 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=hX5REFsv6x57GRM18yYGHXXLyuUOUwC3XUkbX9QC+Rc=; b=wNtwMkAm1bcMHXc+NLkeL4E5nEmu+CzTdrzD0zNNaoVYPa5cuw1yY4GyfY7Tk5bfm+30IH OU85LYkj8JtpR5eLIhAG8FDeOoSrr2+lqsY1+oFUq7t964iUJkMgDHhLOA+McedUrYAcbB 4fF2l3tfIpA1+S8O9OCC1n/vxOgBqe1e4q2+A8pwgKkpxtg2Eb79MCV0kCnsCMwalO2fVm D78wrYObaRIgSu629TOvyrg9GNNI3wWI+gtArAAKDXdc8TBn4JGN0sl2KOa7kdwaGs/tOe pw0UDv7KqdfW1Os5GVBV5ju6h6wEy5mNUM7jQo+T/7XmenxZrLHRxkVnLPO50Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681398065; a=rsa-sha256; cv=none; b=JoVOMFmmUHgL6Ca7YD4VpXRgV52f8RKmIuZgjpnDjUq1GfDWulAjscLNvSL7KsnNgdl84o GRQUyq273vQ+1h8mS67cv2JcHWP5rxICQbfn3624UM/P0A0WqAbn66hLsOLpjmwJWRIpza Gn3sAXifbRBe54nmb2R3s2olvbKz2gcNTitdZ8ru7DbiSuZ5zjFbYpLXGpciVLQXVY6VyT 2/8kwKSB5nGWO7S2dWAscRDNvSE95+a10DGabmZH0702xfQ0mu1VqZpcgg8aBeEhn56naW nozitkdmbSUd+OL9ZrNG7N9TwiEU58WyraSKegbsHDrynWZDDErYs6eU+zsUhg== 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 4Py2p86qmHzmTV for ; Thu, 13 Apr 2023 15:01:04 +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 33DF14eT037992 for ; Thu, 13 Apr 2023 15:01:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33DF1420037991 for bugs@FreeBSD.org; Thu, 13 Apr 2023 15:01:04 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 15:01:04 +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: geoffrey@dommett.com 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 #4 from geoffrey@dommett.com --- I am not suggesting that a file mapped on 2 machines is going to update in = any timely way, it would be ridiculous to suggest mmap should be a replacement = for mpi. However, when mmap is used for file IO, one obviously needs all writes= to finish. I expected munmap or program exit to perform such cleanup, but clea= rly it does not unless msync is called. The man mages of msync state: The msync() system call is usually not needed since BSD implements a cohere= nt file system buffer cache This is clearly not true any time the file is on an nfs server.=20=20 No such call is necessary on linux either. If you are saying this lack of cleanup when a process terminates is not a b= ug, the man pages are at best misleading, and introduces a portability issue. --=20 You are receiving this mail because: You are the assignee for the bug.=