From: Lockywolf <lockywolf@gmail.com>
To: help-gnu-emacs@gnu.org, monnier@iro.umontreal.ca, luangruo@yahoo.com
Subject: Re: Emacs on Android OOMs with pdf-tools. (And an Android howto.)
Date: Thu, 22 Aug 2024 08:50:42 +0800 [thread overview]
Message-ID: <8734mxxtwd.fsf@laptop.lockywolf.net> (raw)
In-Reply-To: <87r0ajfikz.fsf@yahoo.com>, <jwvcym3gzgb.fsf-monnier+emacs@gnu.org>
Date: Thu, 22 Aug 2024 08:12:44 +0800
Thanks everyone for the memory-report command, I hadn't known about it
before this case.
>How much memory does your device provide?
The device has 2 Gb of RAM, of which about 1.5 Gb are ordinarily used by
the system and built-in annoyances.
I am trying to _only_ use Emacs on this device, so it should have about
500 Mb left.
But I am pretty sure it is not actually the problem of not enough
memory, as memory-report is clearly showing that something is wrong.
The two reports, before and after the OOM message, are below.
The concerning bit seems to be: "256 MiB Total Image Cache Size"
256 Mb is a significant number for this device. Below I am also
pasting memory-report with doc-view-mode, which seems to "only" generate
160 Mb of image-cache.
Is it possible to tell Emacs to not generate so much cache?
* Before
Estimated Emacs Memory Usage
5 MiB Overall Object Memory Usage
2.3 MiB Memory Used By Global Variables
1.1 MiB Memory Used By Symbol Plists
451 KiB Total Image Cache Size
237 KiB Reserved (But Unused) Object Memory
36 KiB Total Buffer Memory Usage
Object Storage
2.2 MiB Strings
1.2 MiB Conses
1.2 MiB Vectors
374 KiB Symbols
6 KiB Intervals
5 KiB Buffer-Objects
1.1 KiB Floats
Largest Buffers
11 KiB andrei
9.6 KiB *scratch*
6.1 KiB *Messages*
2.4 KiB *Minibuf-1*
2.1 KiB *code-conversion-work*
2.1 KiB *Echo Area 0*
2.1 KiB *Echo Area 1*
203 B *Memory Report*
173 B *Minibuf-0*
Largest Variables
356 KiB package-archive-contents
319 KiB load-history
115 KiB definition-prefixes
107 KiB easy-menu-converted-items-table
79 KiB org-entities
64 KiB widget-global-map
64 KiB help-quick-use-map
64 KiB global-map
60 KiB face--new-frame-defaults
55 KiB input-method-alist
51 KiB package--builtins
47 KiB coding-system-alist
41 KiB language-info-alist
41 KiB color-name-rgb-alist
25 KiB menu-bar-options-menu
24 KiB x-colors
22 KiB key-translation-map
21 KiB org-mode-map
20 KiB package--compatibility-table
19 KiB minor-mode-map-alist
* After
Estimated Emacs Memory Usage
256 MiB Total Image Cache Size
9.2 MiB Overall Object Memory Usage
2.7 MiB Memory Used By Global Variables
1.3 MiB Memory Used By Symbol Plists
803 KiB Total Buffer Memory Usage
245 KiB Reserved (But Unused) Object Memory
Object Storage
4.7 MiB Strings
2.3 MiB Vectors
1.7 MiB Conses
485 KiB Symbols
12 KiB Floats
10 KiB Intervals
8.9 KiB Buffer-Objects
Largest Buffers
744 KiB mutual-information-Romaschenko_1710.05984.pdf
14 KiB memory-report-before-pdf-tools.txt
11 KiB andrei
9.6 KiB *scratch*
6.1 KiB *Messages*
2.4 KiB *Minibuf-1*
2.2 KiB *eldoc for major-mode*
2.1 KiB *Echo Area 0*
2.1 KiB *pdf-info-query--escape*
2.1 KiB *code-conversion-work*
2.1 KiB *Echo Area 1*
2.1 KiB tq-temp-epdfinfo
2.1 KiB *pdf-info-query--parse-response*
203 B *Memory Report*
173 B *Minibuf-0*
96 B *epdfinfo*
Largest Variables
369 KiB load-history
356 KiB package-archive-contents
148 KiB easy-menu-converted-items-table
115 KiB definition-prefixes
102 KiB minor-mode-map-alist
79 KiB org-entities
68 KiB face--new-frame-defaults
64 KiB tablist-edit-column-minor-mode-map
64 KiB widget-global-map
64 KiB help-quick-use-map
64 KiB global-map
55 KiB input-method-alist
51 KiB package--builtins
47 KiB coding-system-alist
41 KiB language-info-alist
41 KiB color-name-rgb-alist
27 KiB custom-face-all
25 KiB menu-bar-options-menu
24 KiB x-colors
22 KiB key-translation-map
* doc-view-mode
Estimated Emacs Memory Usage
160 MiB Total Image Cache Size
6 MiB Overall Object Memory Usage
2.3 MiB Memory Used By Global Variables
1.1 MiB Memory Used By Symbol Plists
568 KiB Total Buffer Memory Usage
361 KiB Reserved (But Unused) Object Memory
Object Storage
2.3 MiB Strings
2.1 MiB Vectors
1.2 MiB Conses
384 KiB Symbols
6.4 KiB Intervals
5.5 KiB Buffer-Objects
1.4 KiB Floats
Largest Buffers
531 KiB mutual-information-Romaschenko_1710.05984.pdf
12 KiB andrei
9.8 KiB *scratch*
6.1 KiB *Messages*
2.4 KiB *Minibuf-1*
2.1 KiB *code-conversion-work*
2.1 KiB *Echo Area 0*
2.1 KiB *Echo Area 1*
203 B *Memory Report*
173 B *Minibuf-0*
Largest Variables
356 KiB package-archive-contents
323 KiB load-history
119 KiB easy-menu-converted-items-table
115 KiB definition-prefixes
79 KiB org-entities
64 KiB widget-global-map
64 KiB help-quick-use-map
64 KiB global-map
60 KiB face--new-frame-defaults
55 KiB input-method-alist
51 KiB package--builtins
47 KiB coding-system-alist
41 KiB language-info-alist
41 KiB color-name-rgb-alist
25 KiB menu-bar-options-menu
24 KiB x-colors
22 KiB key-translation-map
21 KiB org-mode-map
20 KiB package--compatibility-table
20 KiB minor-mode-map-alist
--
Your sincerely,
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)
next prev parent reply other threads:[~2024-08-22 0:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 10:26 Emacs on Android OOMs with pdf-tools. (And an Android howto.) Vladimir Nikishkin
2024-08-20 12:21 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-08-20 13:07 ` Po Lu
2024-08-22 0:50 ` Lockywolf [this message]
2024-08-22 4:22 ` Eli Zaretskii
2024-08-22 4:54 ` Po Lu
2024-08-22 6:06 ` Lockywolf Laptop
2024-08-22 10:16 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734mxxtwd.fsf@laptop.lockywolf.net \
--to=lockywolf@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=luangruo@yahoo.com \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.