GNU bug report logs -
#44666
28.0.50; malloc-info: Emacs became not responsive, using hard disk all time
Previous Next
Reported by: Jean Louis <bugs <at> gnu.support>
Date: Sun, 15 Nov 2020 19:46:03 UTC
Severity: normal
Merged with 43389,
43395,
43876
Found in version 28.0.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44666 in the body.
You can then email your comments to 44666 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44666
; Package
emacs
.
(Sun, 15 Nov 2020 19:46:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jean Louis <bugs <at> gnu.support>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 15 Nov 2020 19:46:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Since I wish to find out what is making Emacs slow sometimes, I am
running it with this shell script:
emacs-debug.sh:
#!/bin/bash
## CDPATH I have to unset as otherwise eshell and shell do not work well
unset CDPATH
date >> /home/data1/protected/tmp/emacs-debug
emacs >> /home/data1/protected/tmp/emacs-debug 2>&1
Then if there is non-responsive problem I can do M-x malloc-info
This time computer became totally not responsive:
- using IceWM (rarely happens, almost by rule with EXWM)
- I have not invoked any special function, just small list processing
where it had 6 elements in total. The non-responsiveness was not
caused by this function. That is how I say by feeling.
- then I think, by feeling, swapping started or already started during
my work.
- hardly hardly and with a lot of patience I could invoke M-x
malloc-info
Fri Nov 13 08:40:17 EAT 2020
Fri Nov 13 19:41:22 EAT 2020
Fri Nov 13 21:51:07 EAT 2020
Fri Nov 13 23:28:16 EAT 2020
Fri Nov 13 23:28:49 EAT 2020
Fri Nov 13 23:41:47 EAT 2020
Fri Nov 13 23:42:35 EAT 2020
Fri Nov 13 23:43:32 EAT 2020
Sat Nov 14 00:22:09 EAT 2020
Sat Nov 14 00:26:32 EAT 2020
Sat Nov 14 11:47:26 EAT 2020
Sat Nov 14 11:59:16 EAT 2020
Sun Nov 15 12:38:28 EAT 2020
<malloc version="1">
<heap nr="0">
<sizes>
<size from="49" to="49" total="49" count="1"/>
<unsorted from="257" to="257" total="257" count="1"/>
</sizes>
<total type="fast" count="0" size="0"/>
<total type="rest" count="2" size="306"/>
<system type="current" size="11470942208"/>
<system type="max" size="11470942208"/>
<aspace type="total" size="11470942208"/>
<aspace type="mprotect" size="11470942208"/>
</heap>
<heap nr="1">
<sizes>
<size from="33" to="48" total="48" count="1"/>
<size from="65" to="80" total="80" count="1"/>
</sizes>
<total type="fast" count="2" size="128"/>
<total type="rest" count="0" size="0"/>
<system type="current" size="135168"/>
<system type="max" size="135168"/>
<aspace type="total" size="135168"/>
<aspace type="mprotect" size="135168"/>
</heap>
<heap nr="2">
<sizes>
<size from="33" to="48" total="48" count="1"/>
<size from="65" to="80" total="80" count="1"/>
</sizes>
<total type="fast" count="2" size="128"/>
<total type="rest" count="0" size="0"/>
<system type="current" size="135168"/>
<system type="max" size="135168"/>
<aspace type="total" size="135168"/>
<aspace type="mprotect" size="135168"/>
</heap>
<heap nr="3">
<sizes>
<size from="33" to="48" total="48" count="1"/>
<size from="65" to="80" total="80" count="1"/>
<size from="33" to="33" total="33" count="1"/>
</sizes>
<total type="fast" count="2" size="128"/>
<total type="rest" count="1" size="33"/>
<system type="current" size="135168"/>
<system type="max" size="135168"/>
<aspace type="total" size="135168"/>
<aspace type="mprotect" size="135168"/>
</heap>
<heap nr="4">
<sizes>
<size from="33" to="48" total="48" count="1"/>
<size from="65" to="80" total="80" count="1"/>
</sizes>
<total type="fast" count="2" size="128"/>
<total type="rest" count="0" size="0"/>
<system type="current" size="135168"/>
<system type="max" size="135168"/>
<aspace type="total" size="135168"/>
<aspace type="mprotect" size="135168"/>
</heap>
<heap nr="5">
<sizes>
<size from="33" to="48" total="48" count="1"/>
<size from="65" to="80" total="80" count="1"/>
<unsorted from="2449" to="2449" total="2449" count="1"/>
</sizes>
<total type="fast" count="2" size="128"/>
<total type="rest" count="1" size="2449"/>
<system type="current" size="135168"/>
<system type="max" size="135168"/>
<aspace type="total" size="135168"/>
<aspace type="mprotect" size="135168"/>
</heap>
<heap nr="6">
<sizes>
<size from="33" to="48" total="48" count="1"/>
<size from="65" to="80" total="80" count="1"/>
</sizes>
<total type="fast" count="2" size="128"/>
<total type="rest" count="0" size="0"/>
<system type="current" size="135168"/>
<system type="max" size="135168"/>
<aspace type="total" size="135168"/>
<aspace type="mprotect" size="135168"/>
</heap>
<heap nr="7">
<sizes>
<size from="17" to="32" total="864" count="27"/>
<size from="33" to="48" total="384" count="8"/>
<size from="65" to="80" total="160" count="2"/>
<size from="97" to="112" total="336" count="3"/>
</sizes>
<total type="fast" count="40" size="1744"/>
<total type="rest" count="0" size="0"/>
<system type="current" size="139264"/>
<system type="max" size="139264"/>
<aspace type="total" size="139264"/>
<aspace type="mprotect" size="139264"/>
</heap>
<heap nr="8">
<sizes>
<size from="17" to="32" total="832" count="26"/>
<size from="33" to="48" total="240" count="5"/>
<size from="65" to="80" total="160" count="2"/>
<size from="97" to="112" total="112" count="1"/>
<size from="113" to="128" total="128" count="1"/>
<size from="49" to="49" total="49" count="1"/>
<size from="65" to="65" total="65" count="1"/>
<size from="145" to="145" total="145" count="1"/>
<size from="193" to="193" total="193" count="1"/>
<size from="449" to="449" total="449" count="1"/>
<unsorted from="2961" to="2961" total="2961" count="1"/>
</sizes>
<total type="fast" count="35" size="1472"/>
<total type="rest" count="6" size="3862"/>
<system type="current" size="139264"/>
<system type="max" size="139264"/>
<aspace type="total" size="139264"/>
<aspace type="mprotect" size="139264"/>
</heap>
<heap nr="9">
<sizes>
</sizes>
<total type="fast" count="0" size="0"/>
<total type="rest" count="0" size="0"/>
<system type="current" size="135168"/>
<system type="max" size="135168"/>
<aspace type="total" size="135168"/>
<aspace type="mprotect" size="135168"/>
</heap>
<total type="fast" count="87" size="3984"/>
<total type="rest" count="10" size="6650"/>
<total type="mmap" count="2" size="5341184"/>
<system type="current" size="11472166912"/>
<system type="max" size="11472166912"/>
<aspace type="total" size="11472166912"/>
<aspace type="mprotect" size="11472166912"/>
</malloc>
In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.14.8, Xaw3d scroll bars)
of 2020-11-14 built on protected.rcdrun.com
Repository revision: 31f94e4b1c3dc201646ec436d3e2c477f784ed21
Repository branch: master
System Description: Hyperbola GNU/Linux-libre
Configured using:
'configure --prefix=/package/text/emacs-2020-11-14 --with-modules
--with-x-toolkit=lucid'
Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB
NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB
TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON PDUMPER
LCMS2
Important settings:
value of $LC_ALL: en_US.UTF-8
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
gpm-mouse-mode: t
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort hashcash mail-extr emacsbug message rmc puny dired
dired-loaddefs rfc822 mml easymenu mml-sec epa derived epg epg-config
gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core
cl-macs eieio-loaddefs password-cache json map text-property-search
time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils t-mouse term/linux disp-table tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win
x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face macroexp files window text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo x-toolkit
x multi-tty make-network-process emacs)
Memory information:
((conses 16 52575 6366)
(symbols 48 7259 1)
(strings 32 18937 1368)
(string-bytes 1 616804)
(vectors 16 8986)
(vector-slots 8 116851 8619)
(floats 8 22 260)
(intervals 56 196 0)
(buffers 992 11))
--
Thanks,
Jean Louis
⎔ λ 🄯 𝍄 𝌡 𝌚
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44666
; Package
emacs
.
(Mon, 16 Nov 2020 16:12:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 44666 <at> debbugs.gnu.org (full text, mbox):
> From: Jean Louis <bugs <at> gnu.support>
> Date: Sun, 15 Nov 2020 17:55:09 +0300
>
> Sun Nov 15 12:38:28 EAT 2020
> <malloc version="1">
> <heap nr="0">
> <sizes>
> <size from="49" to="49" total="49" count="1"/>
> <unsorted from="257" to="257" total="257" count="1"/>
> </sizes>
> <total type="fast" count="0" size="0"/>
> <total type="rest" count="2" size="306"/>
> <system type="current" size="11470942208"/>
> <system type="max" size="11470942208"/>
> <aspace type="total" size="11470942208"/>
> <aspace type="mprotect" size="11470942208"/>
> </heap>
This basically says you have 11GB in the heap, but there are no
details. So I'm not sure how this could help us make any progress.
Thanks.
Severity set to 'normal' from 'minor'
Request was from
Eli Zaretskii <eliz <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 16 Nov 2020 20:24:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44666
; Package
emacs
.
(Tue, 17 Nov 2020 06:51:03 GMT)
Full text and
rfc822 format available.
Message #15 received at 44666 <at> debbugs.gnu.org (full text, mbox):
* Eli Zaretskii <eliz <at> gnu.org> [2020-11-16 19:12]:
> > From: Jean Louis <bugs <at> gnu.support>
> > Date: Sun, 15 Nov 2020 17:55:09 +0300
> >
> > Sun Nov 15 12:38:28 EAT 2020
> > <malloc version="1">
> > <heap nr="0">
> > <sizes>
> > <size from="49" to="49" total="49" count="1"/>
> > <unsorted from="257" to="257" total="257" count="1"/>
> > </sizes>
> > <total type="fast" count="0" size="0"/>
> > <total type="rest" count="2" size="306"/>
> > <system type="current" size="11470942208"/>
> > <system type="max" size="11470942208"/>
> > <aspace type="total" size="11470942208"/>
> > <aspace type="mprotect" size="11470942208"/>
> > </heap>
>
> This basically says you have 11GB in the heap, but there are no
> details. So I'm not sure how this could help us make any progress.
I was thinking that command would tell you something.
There was nothing special. I have 4 GB memory and 8 GB swap. There was
no special program running, just XTerm and Emacs.
I would like to find out why is Emacs taking that memory, but I am
unable.
Now I am running it with ulimit, but I am unsure if that ulimit
command really works as manual pages says it sometimes does not work.
#!/bin/bash
unset CDPATH
ulimit -m 3145728
date >> /home/data1/protected/tmp/emacs-debug
emacs >> /home/data1/protected/tmp/emacs-debug 2>&1
If there is nothing to be done with this bug, we can close.
You could suggest me on what to put attention to find out what is
going on.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44666
; Package
emacs
.
(Tue, 17 Nov 2020 15:05:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 44666 <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 16 Nov 2020 19:17:35 +0300
> From: Jean Louis <bugs <at> gnu.support>
> Cc: 44666 <at> debbugs.gnu.org
>
> * Eli Zaretskii <eliz <at> gnu.org> [2020-11-16 19:12]:
> > > From: Jean Louis <bugs <at> gnu.support>
> > > Date: Sun, 15 Nov 2020 17:55:09 +0300
> > >
> > > Sun Nov 15 12:38:28 EAT 2020
> > > <malloc version="1">
> > > <heap nr="0">
> > > <sizes>
> > > <size from="49" to="49" total="49" count="1"/>
> > > <unsorted from="257" to="257" total="257" count="1"/>
> > > </sizes>
> > > <total type="fast" count="0" size="0"/>
> > > <total type="rest" count="2" size="306"/>
> > > <system type="current" size="11470942208"/>
> > > <system type="max" size="11470942208"/>
> > > <aspace type="total" size="11470942208"/>
> > > <aspace type="mprotect" size="11470942208"/>
> > > </heap>
> >
> > This basically says you have 11GB in the heap, but there are no
> > details. So I'm not sure how this could help us make any progress.
>
> I was thinking that command would tell you something.
It tells something, I just don't yet know what that is.
> If there is nothing to be done with this bug, we can close.
No, closing is premature. I've merged this bug with 3 other similar
ones, and we are discussing this issue with glibc malloc experts.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44666
; Package
emacs
.
(Thu, 19 Nov 2020 07:01:01 GMT)
Full text and
rfc822 format available.
Message #21 received at 44666 <at> debbugs.gnu.org (full text, mbox):
* Eli Zaretskii <eliz <at> gnu.org> [2020-11-17 10:04]:
> > If there is nothing to be done with this bug, we can close.
>
> No, closing is premature. I've merged this bug with 3 other similar
> ones, and we are discussing this issue with glibc malloc experts.
If bug is merged, do I just reply on this email?
My emacs-uptime now is 19 hours, and I can see 4819 MB swapping
according to symon-mode
I have not get number of buffers, I tried to delete it and there is no
change. User processes are below. I have not finished this session and
so I am prematurely sending the file
emacs.strace-2020-11-18-14:42:59-Wednesday which may be accessed here
below on the link. I could not copy the file fully through eshell probably
because if I do copy through eshell the strace becomes longer and
longer and copy never finishes. So I have aborted the copy, file may
not be complete. It is also not complete for reason that session is
not finished.
strace is here, 13M download, when unpacked it is more than 1.2 GB.
https://gnu.support/files/tmp/emacs.strace-2020-11-18-14:42:59-Wednesday.lz
When finishing this email swapping reported is 4987 MB and I know by
experience it will come to system being not usable.
total used free shared buff/cache available
Mem: 3844508 3575720 119476 37576 149312 55712
Swap: 8388604 4820656 3567948
$ htop shows
8399 VIRT memory for emacs and 3211M RES memory for emacs
admin 30586 4.5 88.1 Nov 18 50:52 emacs
admin 30584 0.9 0.0 Nov 18 10:20 strace -o emacs.strace-2020-11-18-14:42:59-Wednesday emacs
admin 5542 0.1 0.1 Nov 17 02:13 icewm --notify
admin 15914 0.0 0.4 07:26 00:02 mutt
admin 5584 0.0 0.0 Nov 17 00:09 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
admin 17639 0.0 0.0 09:42 00:00 emacsclient -c /home/data1/protected/tmp/mutt-protected-1001-15914-94772654077392443
admin 8410 0.0 0.0 Nov 18 00:05 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
admin 17023 0.0 0.1 08:35 00:00 /bin/bash --noediting -i
admin 21322 0.0 0.0 Nov 18 00:00 /usr/bin/festival
admin 28366 0.0 0.0 Nov 18 00:00 /bin/bash
admin 8408 0.0 0.0 Nov 18 00:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
admin 5541 0.0 0.0 Nov 17 00:00 icewmbg
admin 28038 0.0 0.0 Nov 18 00:00 /usr/lib/dconf/dconf-service
admin 8429 0.0 0.0 Nov 18 00:00 /usr/lib/GConf/gconfd-2
admin 29399 0.0 0.0 00:18 00:00 /usr/local/bin/psql -U maddox -h localhost -P pager=off rcdbusiness
admin 5426 0.0 0.0 Nov 17 00:00 -bash
admin 14932 0.0 0.0 Nov 18 00:00 /usr/bin/aspell -a -m -d en --encoding=utf-8
admin 8403 0.0 0.0 Nov 18 00:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
admin 5501 0.0 0.0 Nov 17 00:00 /bin/sh /usr/bin/startx
admin 5523 0.0 0.0 Nov 17 00:00 xinit /home/data1/protected/.xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.Tvh06SZQdP
admin 5528 0.0 0.0 Nov 17 00:00 sh /home/data1/protected/.xinitrc
admin 5540 0.0 0.0 Nov 17 00:00 icewm-session
admin 5579 0.0 0.0 Nov 17 00:00 dbus-launch --autolaunch=9459754a0df54d1465edf14d5b0bfe99 --binary-syntax --close-stderr
admin 30582 0.0 0.0 Nov 18 00:00 /bin/bash /home/data1/protected/bin/emacs-debug.sh
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44666
; Package
emacs
.
(Thu, 19 Nov 2020 07:44:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 44666 <at> debbugs.gnu.org (full text, mbox):
* Eli Zaretskii <eliz <at> gnu.org> [2020-11-17 10:04]:
> No, closing is premature. I've merged this bug with 3 other similar
> ones, and we are discussing this issue with glibc malloc experts.
I have now finished the session as it became unbearable. I could not
switch from one Window Manager workspace to other WM
workspace. Swapping grew over 5.3 GB.
After finishing session memory usage came back to normal and I can
start new session.
The link for strace file that I have sent in the previous email has
been updated and is now finished as session has been finished.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 07 Mar 2021 12:24:07 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Madhu <enometh <at> meer.net>
to
control <at> debbugs.gnu.org
.
(Sun, 21 Mar 2021 15:53:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 19 Apr 2021 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 6 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.