0

For the last couple of weeks, emacs in my machine have become intermittently slow. It works fine, then suddenly (I have yet to find any triggering keystroke) it slows down for about fifteen seconds. In that period, it becomes completely unresponsive. Any character typed in that period appears after the slow-down period.

Here is the profiler report. But I don't know how to proceed further.

I am using an Ubuntu machine. I use emacs mostly to edit my LaTeX files.

enter image description here

7
  • 1
    Do M-x toggle-debug-on-quit and do C-g when you are in the middle of the slowdown. That should give you a backtrace. Do it again a few times to see if it is reliably reproducible. Does the backtrace look similar? Is the same function at the top of the stack? If so, post the backtrace here. Profiler reports are not particularly informative in your case: they accumulate information over a possibly long period of time (between the time that you enable and the time that you stop) so they don't accurately reflect out-of-the-ordinary events in the last few seconds. Commented Oct 24, 2024 at 13:59
  • @NickD, Thanks, I will do that, at the first available opportunity. Commented Oct 24, 2024 at 15:41
  • 2
    You haven't messed with the garbage collection settings, have you? (I've seen people set the thresholds to crazy-high numbers, which inevitably means it'll take a really long time when it happens). Commented Oct 24, 2024 at 22:50
  • 1
    @phils, gc-cons-threshold value is 800000. gc-cons-percentage value is 0.1 Commented Oct 25, 2024 at 8:08
  • 1
    Ok, nothing to do with that, then. Those are standard values. Commented Oct 25, 2024 at 8:33

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.