From: Noam Postavsky <npostavs@gmail.com>
To: Boruch Baum <boruch_baum@gmx.com>
Cc: 31091@debbugs.gnu.org
Subject: bug#31091: 25.2: Feature Request: auto exit upon memory exhaustion warning
Date: Sun, 08 Apr 2018 09:25:06 -0400 [thread overview]
Message-ID: <87tvsln83x.fsf@gmail.com> (raw)
In-Reply-To: <20180408072223.5mwxvwl54v4nocr3@E15-2016.optimum.net> (Boruch Baum's message of "Sun, 8 Apr 2018 03:22:23 -0400")
Boruch Baum <boruch_baum@gmx.com> writes:
> 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.
If you set the virtual memory limit to 1 or 2 GB (or something
proportional to the amount of physical memory you have) by doing
ulimit -Sv $((1000 * 1024))
before you start Emacs, instead of allocating until system slow-down,
Emacs should stop with a message:
Memory exhausted--use C-x s then exit and restart Emacs
Possibly also a warning like
Emergency (alloc): Warning: past 75% of memory limit
depending on how quickly you approach the limit.
(yes, I've tried this, see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26952#18)
next prev parent reply other threads:[~2018-04-08 13:25 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tvsln83x.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=31091@debbugs.gnu.org \
--cc=boruch_baum@gmx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).