From unknown Sun Jun 22 11:38:07 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#67733] [PATCH] daemon: Sacrifice builders on OOM. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Dec 2023 21:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67733 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67733@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170215696827711 (code B ref -1); Sat, 09 Dec 2023 21:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Dec 2023 21:22:48 +0000 Received: from localhost ([127.0.0.1]:49096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rC4me-0007Ct-53 for submit@debbugs.gnu.org; Sat, 09 Dec 2023 16:22:48 -0500 Received: from lists.gnu.org ([2001:470:142::17]:42978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rC4mc-0007Cf-1C for submit@debbugs.gnu.org; Sat, 09 Dec 2023 16:22:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rC4mI-0000qr-Mm for guix-patches@gnu.org; Sat, 09 Dec 2023 16:22:26 -0500 Received: from tobias.gr ([80.241.217.52]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rC4mD-0002d6-7i for guix-patches@gnu.org; Sat, 09 Dec 2023 16:22:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=Y9ANycDGVdXB8 Wa5chrJfAWXFPisp4gh0KcOV7gEDHs=; h=date:subject:to:from; d=tobias.gr; b=P3g43kx+L7XOaG9VH0Y9E5Wz7MQ0nxKhobY2lKCqAeVxhP+ihduuNkTfA7MWTk5Lrjr0 jQ3p2wE3m+Fyu2NH8DqdDQDWx4nxZ94D6hdAG1UL2N49FR044YqQcT0Vqt5cDthzBFj3Jt LvRGCYN63xsbTYkRuX88qd96c0zSpjArra6w/GFizPe9lplQ21ESFYHnFctl2Jyn5IeWgk WDbgHIuil+zRTL9m97h9a0uwqDf9X4qeVYBN+I8DnL6454KnrDQRGCx97zvoRVDuvl9boU xU/iE4kQOHf6Q+gCJ6Zqy+CxzTHOfx991hH7/DMpSmxnzMYcKTRUuIekBzrchaNw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 70131821 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sat, 9 Dec 2023 21:22:16 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Sun, 3 Dec 2023 01:00:00 +0100 Message-ID: <20231203000032.29995-1-me@tobias.gr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=80.241.217.52; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: 13 X-Spam_score: 1.3 X-Spam_bar: + X-Spam_report: (1.3 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_96_XX=3.405, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * nix/libstore/build.cc (DerivationGoal::runChild): Maximise our OOM score adjustment. Change-Id: I418c763b499ca16e1ffe3c6033319112b9744f51 --- nix/libstore/build.cc | 6 ++++++ 1 file changed, 6 insertions(+) Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * nix/libstore/build.cc (DerivationGoal::runChild): Maximise our OOM score adjustment. Change-Id: I418c763b499ca16e1ffe3c6033319112b9744f51 --- nix/libstore/build.cc | 6 ++++++ 1 file changed, 6 insertions(+) Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * nix/libstore/build.cc (DerivationGoal::runChild): Maximise our OOM score adjustment. Change-Id: I418c763b499ca16e1ffe3c6033319112b9744f51 --- nix/libstore/build.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index e8259aa4e8..9241418abc 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -2154,6 +2154,12 @@ void DerivationGoal::runChild() determinism. */ int cur = personality(0xffffffff); if (cur != -1) personality(cur | ADDR_NO_RANDOMIZE); + + /* Ask the kernel to eagerly kill us & our children if it runs out of + memory, regardless of blame, to preserve ‘real’ user data & state. */ + try { + writeFile("/proc/self/oom_score_adj", "1000"); // 100% + } catch (...) { ignoreException(); } #endif /* Fill in the environment. */ -- 2.41.0 From unknown Sun Jun 22 11:38:07 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#67733] [PATCH v2] daemon: Sacrifice builders on OOM. References: <20231203000032.29995-1-me@tobias.gr> In-Reply-To: <20231203000032.29995-1-me@tobias.gr> Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Dec 2023 21:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67733 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67733@debbugs.gnu.org Received: via spool by 67733-submit@debbugs.gnu.org id=B67733.170215721928128 (code B ref 67733); Sat, 09 Dec 2023 21:27:02 +0000 Received: (at 67733) by debbugs.gnu.org; 9 Dec 2023 21:26:59 +0000 Received: from localhost ([127.0.0.1]:49101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rC4qg-0007Jc-QF for submit@debbugs.gnu.org; Sat, 09 Dec 2023 16:26:59 -0500 Received: from tobias.gr ([80.241.217.52]:47658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rC4qf-0007JT-4V for 67733@debbugs.gnu.org; Sat, 09 Dec 2023 16:26:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=eV+kbvBD97XDR +LH+xsNQfakXShzhhcsfUAKAjcaOrw=; h=date:subject:to:from; d=tobias.gr; b=BEEJIJdwMQew6nJ/25NmQfWK3J4e7WD0Att6dLGQqkMDZhZag5o6SEfl6Ud8ZGmeAUhz 7EFqJmgx3KvAF7kvB0mXqf36qljo6jRnEMJL1pKz0g/S1EQBqPr2BjA2u2oLkIQ6cFXpYb FkX/rhwbLAWLj1kmMpZVJnSfQufqJc/TMSymsLp2b9LRaFSy0s5IePKXHUBBl8/CIJ0ixQ Fs8Ih7kMMG89opc0auYQCwEn8bHBCfusnPNYTZVUJF31+VhYpYZm4CORb3eygtZ+9YfevX 0v4ru/zMXjCN9gipfPRXjCxEI4MnfMHLHk9tQHxkUmC1V9olzo+lpLKz7PiTtSaw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 8b53d2d2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <67733@debbugs.gnu.org>; Sat, 9 Dec 2023 21:26:40 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Sun, 3 Dec 2023 01:00:01 +0100 Message-ID: <20231203000124.30383-1-me@tobias.gr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * nix/libstore/build.cc (DerivationGoal::runChild): Maximise our OOM score adjustment. Change-Id: I418c763b499ca16e1ffe3c6033319112b9744f51 --- v2: Tabs tabs tabs tabs. Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * nix/libstore/build.cc (DerivationGoal::runChild): Maximise our OOM score adjustment. Change-Id: I418c763b499ca16e1ffe3c6033319112b9744f51 --- v2: Tabs tabs tabs tabs. Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * nix/libstore/build.cc (DerivationGoal::runChild): Maximise our OOM score adjustment. Change-Id: I418c763b499ca16e1ffe3c6033319112b9744f51 --- v2: Tabs tabs tabs tabs. nix/libstore/build.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index e8259aa4e8..54555b92d7 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -2154,6 +2154,12 @@ void DerivationGoal::runChild() determinism. */ int cur = personality(0xffffffff); if (cur != -1) personality(cur | ADDR_NO_RANDOMIZE); + + /* Ask the kernel to eagerly kill us & our children if it runs out of + memory, regardless of blame, to preserve ‘real’ user data & state. */ + try { + writeFile("/proc/self/oom_score_adj", "1000"); // 100% + } catch (...) { ignoreException(); } #endif /* Fill in the environment. */ base-commit: e796c68025aca372ff8e16eb0c235155af92f743 -- 2.41.0 From unknown Sun Jun 22 11:38:07 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#67733] [PATCH v3] daemon: Sacrifice builders on OOM. References: <20231203000032.29995-1-me@tobias.gr> In-Reply-To: <20231203000032.29995-1-me@tobias.gr> Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Dec 2023 21:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67733 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67733@debbugs.gnu.org Received: via spool by 67733-submit@debbugs.gnu.org id=B67733.170215755228742 (code B ref 67733); Sat, 09 Dec 2023 21:33:02 +0000 Received: (at 67733) by debbugs.gnu.org; 9 Dec 2023 21:32:32 +0000 Received: from localhost ([127.0.0.1]:49106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rC4w4-0007TW-K6 for submit@debbugs.gnu.org; Sat, 09 Dec 2023 16:32:32 -0500 Received: from tobias.gr ([80.241.217.52]:33654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rC4w2-0007TK-Fi for 67733@debbugs.gnu.org; Sat, 09 Dec 2023 16:32:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=8ohN/T/y4g7aJ sKJ2JtAsrqPuiEmJV/nYLDIH1i66FU=; h=date:subject:to:from; d=tobias.gr; b=l+D1vsYuEU3yxDOt4cR5SzkqNG2egDzA5FOKi7aa609GfXvcJ+BPcmxVJutjDbx+mcuG JFZIRUN+IA4KLy6cvQcx5o+uZb1zIBH4/SgCcDVQBuBGmnnuhKa1Wq9QmR5NxTmZqE7ezd 2yGiF6eiVkNejJLLmGFrijzhGEAV+YGbSKxsZOg5UHbXjKYmcrP7CfqJyxSEzHci3Oo8mO JUWi2uvsPiObtjiUJ7AiiGlms4kEqumDzgAs2LnOjaRVHIL2Ihx1T5qKy8iqYnUrHkrPwl /SONiydthIqmBEPXaDOJbSaDnmDkz0GMAF/pztVE61GDg3qM1QAzGgWM7jehPjZw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 041a7f3d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <67733@debbugs.gnu.org>; Sat, 9 Dec 2023 21:32:14 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Sun, 3 Dec 2023 01:00:01 +0100 Message-ID: <20231203000111.30681-1-me@tobias.gr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * nix/libstore/build.cc (DerivationGoal::runChild): Maximise our OOM score adjustment. Change-Id: I418c763b499ca16e1ffe3c6033319112b9744f51 --- v3: In my defens, I'm on a fone. Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * nix/libstore/build.cc (DerivationGoal::runChild): Maximise our OOM score adjustment. Change-Id: I418c763b499ca16e1ffe3c6033319112b9744f51 --- v3: In my defens, I'm on a fone. Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * nix/libstore/build.cc (DerivationGoal::runChild): Maximise our OOM score adjustment. Change-Id: I418c763b499ca16e1ffe3c6033319112b9744f51 --- v3: In my defens, I'm on a fone. nix/libstore/build.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index e8259aa4e8..54555b92d7 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -2154,6 +2154,12 @@ void DerivationGoal::runChild() determinism. */ int cur = personality(0xffffffff); if (cur != -1) personality(cur | ADDR_NO_RANDOMIZE); + + /* Ask the kernel to eagerly kill us & our children if it runs out of + memory, regardless of blame, to preserve ‘real’ user data & state. */ + try { + writeFile("/proc/self/oom_score_adj", "1000"); // 100% + } catch (...) { ignoreException(); } #endif /* Fill in the environment. */ base-commit: e796c68025aca372ff8e16eb0c235155af92f743 -- 2.41.0 From unknown Sun Jun 22 11:38:07 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#67733] [PATCH v3] daemon: Sacrifice builders on OOM. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 Dec 2023 21:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67733 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 67733@debbugs.gnu.org Received: via spool by 67733-submit@debbugs.gnu.org id=B67733.170224509925023 (code B ref 67733); Sun, 10 Dec 2023 21:52:02 +0000 Received: (at 67733) by debbugs.gnu.org; 10 Dec 2023 21:51:39 +0000 Received: from localhost ([127.0.0.1]:51885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCRi7-0006VX-Fy for submit@debbugs.gnu.org; Sun, 10 Dec 2023 16:51:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCRi5-0006VJ-16 for 67733@debbugs.gnu.org; Sun, 10 Dec 2023 16:51:38 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCRhl-000181-Aq; Sun, 10 Dec 2023 16:51:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=lxHsBYdDporDJXbwWL52gKlszwpwUMp/6ObVSlIcPA4=; b=H6haOoMYyKjqmxfVhz9x J96UZzNVilyJ69Lc7x42gGzOLkcBsNXLCrHKGvh91L6oqkyQWA+7OwPBBTaupu2FghNRViPFEVjcu gLPsKWl39VJNI8p/DDJ7/FddE8OOyLcWE7+nu1hkvq8iRZ1/hQcqUSQLdmqWEpKeZ98nX3vTRcX50 xr1ZKyffpu7iM5rV3RdkMwuuw67iCX+9HR5yoy3+JUQV+G4Mu8c9xF/WMewzuab5b81eD+Vn1augu 2DIMcdb/gkCDNjHG5Q/OSDWJKqP2MNs6ks2Mb7N0jufkLOYDypfZqXqOfiV/M+ma4QYswkjrj1e9F judGgt4dXxVk0Q==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <20231203000111.30681-1-me@tobias.gr> (Tobias Geerinckx-Rice's message of "Sun, 3 Dec 2023 01:00:01 +0100") References: <20231203000032.29995-1-me@tobias.gr> <20231203000111.30681-1-me@tobias.gr> Date: Sun, 10 Dec 2023 22:51:15 +0100 Message-ID: <87h6kp3ewc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hullo! Tobias Geerinckx-Rice skribis: > * nix/libstore/build.cc (DerivationGoal::runChild): > Maximise our OOM score adjustment. > > Change-Id: I418c763b499ca16e1ffe3c6033319112b9744f51 > --- > > v3: In my defens, I'm on a fone. Nooo, you=E2=80=99re a hero. > + /* Ask the kernel to eagerly kill us & our children if it runs out of > + memory, regardless of blame, to preserve =E2=80=98real=E2=80=99 user= data & state. */ > + try { > + writeFile("/proc/self/oom_score_adj", "1000"); // 100% > + } catch (...) { ignoreException(); } Sounds like a good idea. LGTM! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 10:06:44 2024 Received: (at control) by debbugs.gnu.org; 31 Oct 2024 14:06:44 +0000 Received: from localhost ([127.0.0.1]:42192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6Voy-00027g-3Y for submit@debbugs.gnu.org; Thu, 31 Oct 2024 10:06:44 -0400 Received: from mailtransmit04.runbox.com ([185.226.149.37]:51330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6Vow-00027U-4Q for control@debbugs.gnu.org; Thu, 31 Oct 2024 10:06:42 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1t6Voq-00EfnS-4Y for control@debbugs.gnu.org; Thu, 31 Oct 2024 15:06:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector1; h=Content-Type:MIME-Version:Message-ID:Subject: Cc:To:From:Date; bh=uKgY51+H1NJWCl76eYiDk4+tOZ00cipBe7UYhbnN/7M=; b=VSj2KwDsV s1ML7pwH4YN3fbg6QsH00PplfwEpaxKMn1jNse4tcHaZEnGwrw6Uj4temfnz+AlbYXrXoXiu+4jHS O832YOtJOKMl0ynG2Mg6b7+WI4kHq3X/WSWMqJjCXs06gudmabC2DZ951iP1Lu/kcTHdmnM1h9cDH vLTb1r3BXEkF2nkxG0wd09TPdz9wqH980I0aJ0d4Xx4C9QYhaeA8SigcikjMK1YtjRXi9gcDq4ESN 0HMJSV1UY/DAy+CNAFA1ApDOlXNphXJyge+6qGEHvZdetAsD7t0wVJJnG8znXLuX11TAyzM1U6GJq SBJFyx+8tCd00xeEmG/7I/IwA==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1t6Vop-0002TY-Ea; Thu, 31 Oct 2024 15:06:35 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1t6Vol-000m0v-2K; Thu, 31 Oct 2024 15:06:31 +0100 Date: Thu, 31 Oct 2024 14:06:30 +0000 From: Steve George To: control@debbugs.gnu.org Subject: closing 67733 Message-ID: <1730383560-3238-bts-steve@futurile.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: devscripts bts/2.22.1ubuntu1 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 67733-submitter@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 67733 # committed in: d993ed43b2bae8717437aa27d9d33fd223a6411f thanks