311 |
@cindex memory full |
@cindex memory full |
312 |
@cindex out of memory |
@cindex out of memory |
313 |
|
|
314 |
If you get the error message @samp{Virtual memory exceeded}, save your |
If you get the error message @samp{Virtual memory exceeded}, save |
315 |
modified buffers with @kbd{C-x s}. This method of saving them has the |
your modified buffers with @kbd{C-x s}. This method of saving them |
316 |
smallest need for additional memory. Emacs keeps a reserve of memory |
has the smallest need for additional memory. Emacs keeps a reserve of |
317 |
which it makes available when this error happens; that should be enough |
memory which it makes available when this error happens; that should |
318 |
to enable @kbd{C-x s} to complete its work. |
be enough to enable @kbd{C-x s} to complete its work. When the |
319 |
|
reserve has been used, @samp{!MEM FULL!} appears at the beginning of |
320 |
|
the mode line, indicating there is no more reserve. |
321 |
|
|
322 |
Once you have saved your modified buffers, you can exit this Emacs job |
Once you have saved your modified buffers, you can exit this Emacs |
323 |
and start another, or you can use @kbd{M-x kill-some-buffers} to free |
session and start another, or you can use @kbd{M-x kill-some-buffers} |
324 |
space in the current Emacs job. If you kill buffers containing a |
to free space in the current Emacs job. If this frees up sufficient |
325 |
substantial amount of text, you can safely go on editing. Emacs refills |
space, Emacs will refill its memory reserve, and @samp{!MEM FULL!} |
326 |
its memory reserve automatically when it sees sufficient free space |
will disappear from the mode line. That means you can safely go on |
327 |
available, in case you run out of memory another time. |
editing in the same Emacs session. |
328 |
|
|
329 |
Do not use @kbd{M-x buffer-menu} to save or kill buffers when you run |
Do not use @kbd{M-x buffer-menu} to save or kill buffers when you run |
330 |
out of memory, because the buffer menu needs a fair amount of memory |
out of memory, because the buffer menu needs a fair amount of memory |