help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Observing lags or never ending processes


From: Eli Zaretskii
Subject: Re: Observing lags or never ending processes
Date: Sat, 17 Sep 2022 09:00:42 +0300

> Date: Fri, 16 Sep 2022 22:06:28 +0300
> From: Jean Louis <bugs@gnu.support>
> Cc: help-gnu-emacs@gnu.org
> 
> * Eli Zaretskii <eliz@gnu.org> [2022-09-11 16:18]:
> > I suggest to begin by saying
> > 
> >   M-x set-variable RET garbage-collection-messages RET t RET
> > 
> > and then see if, when "something starts in the background", you see
> > the telltale "Garbage collecting..." message in the echo area.
> 
> I have observed it and I think that sometimes garbage collection is
> invoked without message being visible

I don't believe this is possible.

But if GC is responsible for those "lags", then it's normal Emacs
operation, and you should look into changing your use patterns and
packages you load so as to make the memory footprint of your Emacs
sessions smaller, preferably so that it is never swapped out of
physical memory.  If you customized the GC threshold to a much higher
value, lower it.  Or maybe you have some other memory-intensive
programs on your system that create situations where some of Emacs's
memory is swapped out.  These are all reasons for GC being much slower
than it's supposed to be.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]