From nobody Fri Dec 8 12:42:42 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 4SmrQB3QRGz53w07 for ; Fri, 8 Dec 2023 12:42:42 +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 4SmrQB14Grz4PBV for ; Fri, 8 Dec 2023 12:42:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702039362; a=rsa-sha256; cv=none; b=g9/4+ZJb/FP65cqTAoLGd3Zq79hDCrCPamPEGusWCZI+RYT3itoAcZemU0HbWA1bzRRO6s EFTddYtXf90a5mnivoOPUW8421jsMFYsBCEJBDh4QpdVvFzxYflEi7h5MQ2lr4XtBL10nh Tb7c+ziHmYRI300G6jqnPJmWvKJVzVjhVXgli8nr+eHuQ3qQc8MXXPmlxxRoZ6RTIPIRhF 1zq8Jf4lFnw8rVkBEzWKMMDoNISJw81YS+2CoewlN8sxLUJPxmYftb2+GOHKvPVGBDGcvz zLK87Vn2H2HsczbX4+/lqn5zy4M48BRvk3asgrJNiqtngv0kEjF7CzX7sZyRIg== 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=1702039362; 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; bh=3K8J/sdW46vp82IgI5E2+1m4Rpd26Ye9xDV7tiOR/zg=; b=cYENREdPKJ/3uplF9DF7KrxqsGoBST0btZV/9Cao56KsdbZA6bhv0zgKFA/v+FkWyFoTej 3V4sjhgN2RZNTbJKHOyspmKAuiBlD/HyvUo0dup8HtnufLYDpVWT/TSpUVEOJxPSVwLy5P cdxJzthUbLptKkB4vi09aXKx4zSZDIKE0gaT4b8e2RndveeWlTHmPizCMHeXf9C+qv0buG YVjfrbdHvYKm6UdPWcz76C9W+HJ2xCVrRJyTwe6cFoWxYDPaLfDaLG5k78nlSOCLK1IJ9S uch4Vx1gYXXCvZEGArhW59V6PMOzJiNmnyUQi3WolgsghLKG2HL3TKTxdIsDqA== 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 4SmrQB090Lz6Ct for ; Fri, 8 Dec 2023 12:42:42 +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 3B8CgfDR017999 for ; Fri, 8 Dec 2023 12:42:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3B8Cgfec017998 for bugs@FreeBSD.org; Fri, 8 Dec 2023 12:42:41 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 12:42:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 Bug ID: 275632 Summary: process being killed which has a big file mmap'ed and performs writes to it Product: Base System Version: 14.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: d8zNeCFG@aon.at Scenario: - FreeBSD stable/14 52369c5d29f5f, amd64 - 244 GB file on ZFS - The file is being mmap'ed in its entirety by a program called "cawic". - Read and write operations are performed on selected portions of this mapp= ing (specifically, the contents are - sequentially from the beginning to the en= d - read in blocks of size 128k and some of these blocks immediately rewritten = with updated data, such that ultimately all blocks will have been read and some = will have been rewritten). Result: - The process is killed, with the following message in dmesg: pid 28386 (cawic), jid 0, uid 20201, was killed: failed to reclaim memory - Swap space was not used Expected result: - The process should run to completion successfully. Notes: - This was working correctly (i.e., the process never was killed) some time before FreeBSD 12; with FreeBSD 12 the same issue occurred. - The ZFS filesystem on which the file resides has compression on. - If no blocks are ever written (all are only read), the process is not kil= led. --=20 You are receiving this mail because: You are the assignee for the bug.=