GNU bug report logs -
#31091
25.2: Feature Request: auto exit upon memory exhaustion warning
Previous Next
Reported by: Boruch Baum <boruch_baum <at> gmx.com>
Date: Sun, 8 Apr 2018 07:23:02 UTC
Severity: wishlist
Tags: wontfix
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #32 received at 31091 <at> debbugs.gnu.org (full text, mbox):
Boruch Baum <boruch_baum <at> 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)
This bug report was last modified 3 years and 31 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.