From nobody Fri Dec 8 13:53:37 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 4Smt016bh6z541YZ for ; Fri, 8 Dec 2023 13:53:37 +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 4Smt0152q5z4Whc for ; Fri, 8 Dec 2023 13:53:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702043617; a=rsa-sha256; cv=none; b=Sf0y53W0MgBXG8KwjiVH3kNLhQqDDsdJU35qmPhg7qb3Zkb/5SnLH2NpY+jb/wvcetpUkE EBbaw/H4CyV58HgSUj50MUn9GiD59cnYmis8C1im6E14qPWRHKytl4mpEFLLL/J7Q0YyVc Thj4sTlX4rw1G6TxJ8ED1qBfesPmpurNeC8id+b/9IioqN11GYkd3I8rAnp2fR+M8nHq3S CWKzPmw9ztRJa21qaB0+UAxEfJCCa/jqzg0utk48t/K4L9AjsJtSt3RtMcrfv5eZOwbpNw JWEFjqeBbHip1UdjOF3cERNQMbbwzY5jDOwi9vZTbgmIDy5QPVZMM2OinsgXcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702043617; 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=n8c/OXRQilfvdImAY5LTY925R6GPvOlrC7iKTR9czAc=; b=CdaKdQ2RahLZaOzOjHyaYvXcIgiqe3hFFqNcvBPSN8iRFnESIa42XjxXO4E5tXl/h7j1I7 AAfpV5OrKexxpo1e+CD1BlwcJ7dENXeGBYaB9/pZtg1Wv2SmaJ09LrbbIai0HI2k929JQh txqcAdD5aG/g3JPybD4Gr21KPNtEdFVkoUfK2rF0WPWGAEcsosv0x8dCDfGpwnc5nhOKb1 YqrBZXSkIRpfjyKM+rkJJa94GSZbaPnudMhXO7Nuufm8rEffA2ootWIUa4cBni1DU6iJlb iR22uA+8sWA2I8Iq0r5pk+88BYf6O/HL7ZDYKH9rvCqy49C9CFs0+ncI+kPBzw== 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 4Smt0147BHz8G1 for ; Fri, 8 Dec 2023 13:53:37 +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 3B8Drb2j024699 for ; Fri, 8 Dec 2023 13:53:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3B8DrbYj024698 for bugs@FreeBSD.org; Fri, 8 Dec 2023 13:53:37 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 275632] process being killed which has a big file mmap'ed and performs writes to it Date: Fri, 08 Dec 2023 13:53:37 +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: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275632 --- Comment #3 from Martin Birgmeier --- The issue is certainly reproducible - it happens every time I let the progr= am run. Some background: "cawic" stands for "compare and write if changed". It is basically a fancy way of copying stdin to a pre-existing file, but only tho= se portions which have changed are actually written. The pre-existing file is actually a disk image; it is being updated from the physical disk every few months (backup). The 128 block size was chosen to match the ZFS default block size. Writing = only changed portions is intended to minimize snapshot sizes of the ZFS filesyst= em the file resides on. The current workaround is to restart the program until it runs to completio= n - the parts which have already been written will only be read, then the next = part is partially rewritten and either fails there or finally succeeds. -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.=