all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#38345: 27.0.50; Permanent increase in memory consumption after opening images (or pdfs)
@ 2019-11-23 14:37 Ihor Radchenko
       [not found] ` <handler.38345.B.15745199896049.ack@debbugs.gnu.org>
                   ` (3 more replies)
  0 siblings, 4 replies; 40+ messages in thread
From: Ihor Radchenko @ 2019-11-23 14:37 UTC (permalink / raw)
  To: 38345

Recently, I have noticed that my emacs tends to increase its memory
usage up to over 1.5Gb after I open a large number of pdf documents. It
is understandable since some of the pdfs can be quite large. However,
the problem is that the memory does not seem to be released even after I
close all the pdf buffers.

First, I though that the issue is with pdf-tools and reported my problem
there (https://github.com/politza/pdf-tools/issues/177). However, the
memory consumption problem appears to happen even if I just open images.

I monitored emacs (emacs -Q) memory usage with 
https://github.com/dkogan/memory_leak_instrumentation

If I open a large (>250) photos using the code below, the memory usage
increases permanently even after I close all the image buffers and wait
for some time. 

#+begin_src emacs-lisp
(setq large-file-warning-threshold nil)
(setq image-cache-eviction-delay 5)
(find-file "~/Tosort/pictures&photos/*.jpg" 'wild)
(mapc #'kill-buffer (seq-filter (apply-partially #'string-match ".+.jpg$") (mapcar #'buffer-name (buffer-list))))
(clear-image-cache t)
(garbage-collect)
#+end_src

The attached is memory consumption plot I got after running M-x
eval-buffer on the code above several times (each run correspond to the
memory consumption peak on the plot).

Regards,
Ihor

in GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0)
 of 2019-11-21 built on yantar92-laptop
Repository revision: 1805b4cc08c8f9668f0f43f5b157d91b9c757e88
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12005000
System Description: Gentoo/Linux






^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2020-08-03  6:10 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-23 14:37 bug#38345: 27.0.50; Permanent increase in memory consumption after opening images (or pdfs) Ihor Radchenko
     [not found] ` <handler.38345.B.15745199896049.ack@debbugs.gnu.org>
2019-11-23 14:44   ` bug#38345: Acknowledgement (27.0.50; Permanent increase in memory consumption after opening images (or pdfs)) Ihor Radchenko
2019-11-23 14:48 ` bug#38345: 27.0.50; Permanent increase in memory consumption after opening images (or pdfs) Lars Ingebrigtsen
2019-11-23 15:12   ` Ihor Radchenko
2019-11-23 14:50 ` Eli Zaretskii
2019-11-23 15:18   ` Ihor Radchenko
2019-11-23 15:45     ` Eli Zaretskii
2019-11-23 16:04       ` Ihor Radchenko
2019-11-23 16:34         ` Eli Zaretskii
2019-11-23 17:33           ` Ihor Radchenko
2019-11-23 17:51             ` Eli Zaretskii
2019-11-25 16:10 ` Eli Zaretskii
2019-11-26 15:21   ` Ihor Radchenko
2019-11-26 15:55     ` Eli Zaretskii
2019-11-26 16:24       ` Ihor Radchenko
2019-11-27 21:17     ` Juri Linkov
2019-11-28  1:38       ` Ihor Radchenko
2019-11-28 12:35         ` Lars Ingebrigtsen
2019-11-28 13:11           ` Ihor Radchenko
2019-11-28 15:10         ` Eli Zaretskii
2019-11-28 17:27           ` Ihor Radchenko
2019-11-28 18:44             ` Eli Zaretskii
2019-12-02  8:04               ` Ihor Radchenko
2019-12-02 15:49                 ` Eli Zaretskii
2019-12-05  6:48                   ` Ihor Radchenko
2019-12-05 14:52                     ` Eli Zaretskii
2019-12-06  1:34                       ` Noam Postavsky
2019-12-06  7:52                         ` Eli Zaretskii
2019-12-07 19:25                           ` Noam Postavsky
2019-12-07 19:39                             ` Eli Zaretskii
2019-12-13 12:12                               ` Should use of mallopt depend on DOUG_LEA_MALLOC? (WAS: bug#38345) Noam Postavsky
2019-12-13 14:38                                 ` Eli Zaretskii
2019-12-13 15:22                                   ` Should use of mallopt depend on DOUG_LEA_MALLOC? Stefan Monnier
2019-12-13 21:55                                     ` Paul Eggert
2019-12-14  7:59                                       ` Eli Zaretskii
2019-12-16  6:18                       ` bug#38345: 27.0.50; Permanent increase in memory consumption after opening images (or pdfs) Ihor Radchenko
2019-12-16 16:30                         ` Eli Zaretskii
2020-08-02 18:14                           ` Lars Ingebrigtsen
2020-08-02 22:52                             ` Ihor Radchenko
2020-08-03  6:10                               ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.