all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#31091: 25.2: Feature Request: auto exit upon memory exhaustion warning
@ 2018-04-08  7:22 Boruch Baum
  2018-04-08  7:51 ` Andreas Schwab
                   ` (3 more replies)
  0 siblings, 4 replies; 26+ messages in thread
From: Boruch Baum @ 2018-04-08  7:22 UTC (permalink / raw)
  To: 31091

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





^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2022-04-24 14:25 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-08  7:22 bug#31091: 25.2: Feature Request: auto exit upon memory exhaustion warning Boruch Baum
2018-04-08  7:51 ` Andreas Schwab
2018-04-08  7:59   ` Boruch Baum
2018-04-08  8:36     ` Andreas Schwab
2018-04-08  8:46       ` Boruch Baum
2018-04-08 11:24         ` Andreas Schwab
2018-04-08 11:49           ` Boruch Baum
2018-04-08 16:10             ` Andreas Schwab
2018-04-08 16:17               ` Boruch Baum
2018-04-08 17:28                 ` Andreas Schwab
2022-04-24 14:25   ` Lars Ingebrigtsen
2018-04-08 12:58 ` Eli Zaretskii
2018-04-08 13:21   ` Boruch Baum
2018-04-08 13:57     ` Eli Zaretskii
2018-04-08 16:21       ` Andreas Schwab
2018-04-08 16:31         ` Noam Postavsky
2018-04-08 16:37         ` Eli Zaretskii
2018-04-08 13:25 ` Noam Postavsky
2018-04-08 13:53   ` Boruch Baum
2018-04-08 15:27 ` Noam Postavsky
2018-04-08 15:54   ` Boruch Baum
2018-04-08 16:13     ` Andreas Schwab
2018-04-08 16:30     ` Noam Postavsky
2018-04-08 16:58       ` Boruch Baum
2018-04-08 17:26         ` Noam Postavsky
     [not found]           ` <20180408181013.6hw7ec3fi2dvfeja@E15-2016.optimum.net>
2018-04-08 21:58             ` bug#31091: [OFFLIST] " Noam Postavsky

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.