From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#31091: 25.2: Feature Request: auto exit upon memory exhaustion warning Date: Sun, 8 Apr 2018 03:22:23 -0400 Message-ID: <20180408072223.5mwxvwl54v4nocr3@E15-2016.optimum.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1523172072 31440 195.159.176.226 (8 Apr 2018 07:21:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Apr 2018 07:21:12 +0000 (UTC) User-Agent: NeoMutt/20180223 To: 31091@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 08 09:21:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f54dN-00082w-Nk for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2018 09:21:05 +0200 Original-Received: from localhost ([::1]:60256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f54fT-0000yK-3s for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2018 03:23:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f54fL-0000xl-V4 for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 03:23:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f54fH-0004F2-00 for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 03:23:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33939) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f54fG-0004Es-Rf for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 03:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f54fG-0008N8-It for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 03:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Apr 2018 07:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31091 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Emacs Bug Reporting Original-Received: via spool by submit@debbugs.gnu.org id=B.152317216332143 (code B ref -1); Sun, 08 Apr 2018 07:23:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Apr 2018 07:22:43 +0000 Original-Received: from localhost ([127.0.0.1]:41836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f54ex-0008MN-EL for submit@debbugs.gnu.org; Sun, 08 Apr 2018 03:22:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f54ev-0008MA-Vr for submit@debbugs.gnu.org; Sun, 08 Apr 2018 03:22:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f54eq-00048R-0i for submit@debbugs.gnu.org; Sun, 08 Apr 2018 03:22:36 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f54ep-00048N-TB for submit@debbugs.gnu.org; Sun, 08 Apr 2018 03:22:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f54eo-0000rd-QV for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 03:22:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f54ej-00044w-Tr for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 03:22:34 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:51579) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f54ej-00044R-JY for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 03:22:29 -0400 Original-Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0LhOvA-1eizR504Aq-00mZG1 for ; Sun, 08 Apr 2018 09:22:27 +0200 Content-Disposition: inline X-Provags-ID: V03:K1:TJNWrThMltysnA8WcHkGJ/IryHs2hg75AVnAmY/7KFI6A+J2odb UWN/OWoNiSn2wMCt8gkJJNINgJO+C8VuNcpzXO+VHbC4LKTuvf6VGaQJ+xakZvKWQpkimsD t5n143051azW0lHPnhfZX/BrEy7GvC4aGkhSRg4B6XK8KL3cvDVQZw19dgSl1hYP+qx2cfE MRzmWDKEPMrRmls/Y7CDw== X-UI-Out-Filterresults: notjunk:1;V01:K0:q9SEnmAOxLc=:S7NlPa6Q6iTJ2ZkeBhXSgV cKhsxyrsyjVCgLnEIlSquhB7VjuA3lbr6N3jfUZHAkZPRyl81ycXnsrLCEpzsIUumLWc23eF3 xae+SbqjvqH5FNpknyjaDtDhWlBQqAacVZKEO9CEGfSXf/mluyz72YPCdEPiu9WjK8Ny95X6n Wuu2A0aw5qyNdZiyQGV92rP9b5r0gTqJ7KwmJczCHZQewssSDoKZDdwzYFTCIHf3k0lKGpb/6 ytlYz7XjODGn4bcIPSyF8IdpoOy+iZQgrbt+6hGizuXzW7v3tOD+1XfFiU/QtYfqpvWgGNFdz od7V+JZC87OeMjEenEZXdodQ/8EeESM+n9aTAFWf1k2PYuQE+hMmb8ZtZ9G4Y4qCcJ6i7CrU4 vTaV7rEwWiFyg6giDqKsa2/D0ixDMrTRfgWOVxDPct/Bg+dogN1QQg4uIeU53aLRBNKjWR2j7 GLoQv4BxauIAEnUYP5tINVOmrTUSWmhGzN64r07rRExVFX8MMoSmucVWn3ptLGI++aIcF0USI S6Wth6b3T4qdV9xq1t55TdgnrZZLxiKbkmLpN6wrJi2mUNRqColkylO62yYEMXmQMXi9Jpvf2 EmpEKAYF2bwEwGg7F0WomuxLxZhlO8BQAMkWQQzWsgcJX4QDZ3t2sP8i3r0JN3AE23Dhgc8ca ssO2dmU6hh41aORtpNgQLfkq6OglmlGNwHmdHVHAK4M3nN0engTsob5zphtIGLU/wlqAdU+Ot xMwhs6OKe3zMvNfkkRHzn58ebl1u4wQZ2zNHWh2RcM55tvS+MVChcoDUTC9M72OSsPPlOALP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144978 Archived-At: Version: emacs 25.2, debian As emacs begins to exhaust memory, it begins to grind all system process's performance to a halt, which is clearly undesirable. If the user notices in time, either because the user is attentive to the mode line or the system slow-down, then the user will have an opportunity to gracefully exit and restart emacs, but such is not always the case, and should not be presumed to always be the case. I would like to suggest a optional feature to automatically save buffers and shut down emacs / emacs-server when this condition occurs. The user could toggle its operation by manipulating a boolean variable. It's default condition is for the emacs developers to decide. My vote would be for default on, in the interest of the greater good of preserving an entire system from grinding to a halt. I reliably encountered memory exhaustion when testing function `apropos-value', which creates for me that condition within five calls. An alternate solution, external to emacs, would be to use the shell's `ulimit' feature, but I don't know whether this is available on all platforms (eg. Microsoft), and would require constant tinkering of the memory threshold limit to account for any change in requirements in the sum of all the other system processes. -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0