Closed TatriX closed 5 years ago
If I run the same Emacs configuration under awesome
WM, it doesn't leak.
It seems that every time I switch workspace ~1Mb of memory is leaked.
I do notice increasing memory usage here, but not after switching workspace. The cause is not clear to me. Now that you can reproduce this issue reliably, please take a took at various variables/functions described in (info "Garbage Collection")
which show some internal statistics.
Will do, thanks!
BTW, running (garbage-collect)
freezes my EXWM session.
It seems that the reason why it's eating so much memory in my case is this:
;; Disable GC for startup. It will be restored in after-init-hook.
(setq gc-cons-threshold most-positive-fixnum)
(add-hook 'after-init-hook
(lambda ()
(setq gc-cons-threshold 800000))
But isn't gc-cons-threshold
restored eventually?
It is in after-init-hook
. But for some reason collections do not happen afterwards. After I've removed that piece of code from my init file it became much better. Still sometimes Emacs's memory usage slowly grows to a bigger numbers. I will investigate it a bit more and if I find anything, I'll reopen this issue.
My Emacs with EXWM slowly leaks memory.
Any advices on how can I find what is leaking memory?