From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#54698: non-recursive GC marking [PATCH] Date: Fri, 08 Apr 2022 00:24:00 -0400 Message-ID: References: <5A577100-75CE-4C9E-A7DA-02B917662AF5@acm.org> <8735itglid.fsf@gnus.org> <8527E407-8190-4574-B8D5-BE68220AE663@acm.org> <871qyc5o0y.fsf@yahoo.com> <5BBEDBDA-4C85-4237-9EF7-5635A4950365@acm.org> <83fsmreox8.fsf@gnu.org> <83a6czekro.fsf@gnu.org> <83r16acwar.fsf@gnu.org> <87tub6zabp.fsf@yahoo.com> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16480"; mail-complaints-to="usenet@ciao.gmane.io" Cc: p.stephani2@gmail.com, mattiase@acm.org, larsi@gnus.org, 54698@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 08 06:25:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncgBK-00040g-9B for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Apr 2022 06:25:10 +0200 Original-Received: from localhost ([::1]:45410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncgBJ-000050-4j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Apr 2022 00:25:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncgBC-0008WS-8p for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2022 00:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncgBB-00057y-Pw for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2022 00:25:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncgBB-0004Or-MK for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2022 00:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Apr 2022 04:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54698 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54698-submit@debbugs.gnu.org id=B54698.164939184816846 (code B ref 54698); Fri, 08 Apr 2022 04:25:01 +0000 Original-Received: (at 54698) by debbugs.gnu.org; 8 Apr 2022 04:24:08 +0000 Original-Received: from localhost ([127.0.0.1]:33764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncgAK-0004Ne-Cz for submit@debbugs.gnu.org; Fri, 08 Apr 2022 00:24:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncgAI-0004N3-AK for 54698@debbugs.gnu.org; Fri, 08 Apr 2022 00:24:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncgAD-0004ul-0R; Fri, 08 Apr 2022 00:24:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=M8vZDvwjVpyriE6Q+belcoZnDuIdEkRNnUohDvTXqy0=; b=pazKxTLX6AUh YqUBlcV+i8Jv/P5E6r4j5F5S2m3uJOOW4ls0pPvrJcAWCkEJqStKFu1CvWAJ3S/ORApsXH/mOpnFA m5tUItprTaCvBx/DESruHfpJVn1sKklhC/xSJFbXOzKm56jUml0RLdkS1Z5mrmosgoYbboj5yus3j l/PvBQev4GvtJdCbjJ/W7OHm3nqJdsJ289dCdY04vtOAFWMILPsDhMnTF4w/xMMvLXo8SsfALMhCW Nqg8FLMg4loFjuZ/1jX1cuuyhPyWIORJd2S4KFwdWFJu/ZEBy9yEjw/otrcJJVe9K0BES7rm+g5/K 8S0jPtcNc9oGMzl2jBhH0w==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1ncgAC-00064w-N6; Fri, 08 Apr 2022 00:24:00 -0400 In-Reply-To: <87tub6zabp.fsf@yahoo.com> (message from Po Lu on Wed, 06 Apr 2022 20:05:14 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:229549 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > Overcommit can be disabled on GNU/Linux (the relevant knob is > vm.overcommit_memory), which will malloc return an error when there is > no more memory left on the system, thereby triggering memory_full. Concretely, what is this "knob"? Is it a per-process variable? If so, we could make Emacs set it, with a Lisp function to specify the value. What is the precise definition of "no more memory left"? The thrashing that I observed did not immediately kill any process. Rather, it continued for minutes before doing so. So I don't think there was "no more memory left on the system", because if that had been the case, Linux would have known it immediately. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)