GNU bug report logs - #31585
27.0.50; 112GB Virtual Memory; 102MB working set

Previous Next

Package: emacs;

Reported by: markusffm <at> fn.de

Date: Thu, 24 May 2018 21:49:01 UTC

Severity: normal

Tags: wontfix

Found in version 27.0.50

Done: Glenn Morris <rgm <at> gnu.org>

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 31585 in the body.
You can then email your comments to 31585 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#31585; Package emacs. (Thu, 24 May 2018 21:49:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to markusffm <at> fn.de:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 24 May 2018 21:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: markusffm <at> fn.de
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; 112GB Virtual Memory; 102MB working set
Date: Thu, 24 May 2018 23:44:00 +0200
build with: CFLAGS="-march=native -ffast-math -Os"
and
        --enable-largefile                    \
        --with-x-toolkit=gtk3                 \
        --with-sound=no                       \
        --with-modules                        \
        --with-xwidgets                       \
        --without-pop                         \
        --without-selinux                     \
        --without-gnutls                      \
        --disable-acl                         \
        --with-file-notification=yes          \
        --with-json                           \
        --without-xml2                        \
resulting in:
112GB Virtual Memory; 102MB working set usage
measured by htop


In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2018-05-24 built on INDRA
Repository revision: bab73230d1be1fe394b7269c1365ef6fb1a5d9b3
Windowing system distributor 'Fedora Project', version 11.0.11906000
System Description: Fedora 28 (Twenty Eight)

Recent messages:
Setting up indent for shell type sh
Indentation variables are now local.
Indentation setup for shell type sh
Wrote /root/.emacs.d/desktop.lock
Desktop: 3 buffers restored.
Loading /root/.emacs.d/recentf...done
Desktop: 3 buffers restored.
Loading /root/.emacs.d/framegeometry...done
For information about GNU Emacs and the GNU system, type C-M-h C-a.

Configured using:
 'configure --prefix=/opt/emacs --sysconfdir=/etc
 --enable-locallisppath=/usr/local/share/emacs/site-lisp
 --libexecdir=/opt/emacs/lib/ --localstatedir=/usr/local/var
 --enable-largefile --with-x-toolkit=gtk3 --with-sound=no --with-modules
 --with-xwidgets --without-pop --without-selinux --without-gnutls
 --disable-acl --with-file-notification=yes --with-json --without-xml2
 'CFLAGS=-march=native -ffast-math -Os''

Configured features:
XPM JPEG TIFF GIF PNG RSVG GPM DBUS GSETTINGS NOTIFY FREETYPE M17N_FLT
LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS XWIDGETS
LIBSYSTEMD JSON

Important settings:
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: Conf[Unix]

Minor modes in effect:
  show-paren-mode: t
  recentf-mode: t
  desktop-save-mode: 1
  global-hl-line-mode: t
  hl-line-mode: t
  delete-selection-mode: t
  cua-mode: t
  flymake-mode: t
  savehist-mode: t
  global-auto-revert-mode: t
  auto-insert-mode: t
  tabbar-mwheel-mode: t
  tabbar-mode: t
  smooth-scroll-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  save-place-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-quote-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  global-prettify-symbols-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
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired-sort-menu dired
dired-loaddefs rfc822 mml mml-sec epa epg epg-config gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mail-utils cursor-sensor user-profile server default-profile default-ui
paren man mm-util mail-prsvr recentf sh-script smie executable rng-nxml
rng-valid nxml-mode nxml-outln nxml-rap sgml-mode dom vc-dispatcher
vc-svn conf-mode desktop frameset avoid hl-line default-faces
default-keymap delsel cua-base default-run default-restart default-modes
default-platform default-unix default-flymake default-flymake-go
default-flymake-csharp default-flymake-ruby default-flymake-js
default-flymake-py default-flymake-java default-flymake-shell
flymake-proc flymake compile warnings default-run-assoc run-assoc
default-tempo default-tempo-rexx default-tempo-sh default-tempo-js
default-tempo-java default-tempo-perl default-tempo-elisp
default-tempo-c-cpp default-menu default-help default-options
default-tools default-search default-format default-view
aquamacs-cmm-menu default-edit default-file default-generic savehist
autorevert filenotify autoinsert default-functions elec-pair
default-autoload ox-man ox-odt rng-loc rng-uri rng-parse rng-match
rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util
ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-element
avl-tree generator org org-macro org-footnote org-pcomplete pcomplete
org-list org-faces org-entities time-date org-version ob-emacs-lisp ob
ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-comint comint
ansi-color ring org-loaddefs format-spec find-func cal-menu calendar
cal-loaddefs ob-exp ob-core org-compat ob-eval org-macs markdown-mode rx
color thingatpt noutline outline easy-mmode jison-mode bison-mode
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs flex-mode derived aquamacs-tabbar cus-start cus-load
aquamacs-tools tabbar restore-last-frame-size org-bullets syslog-mode
hide-lines web-mode disp-table vimrc-mode neotree advice smooth-scroll
aok cl fill-column-indicator tempbuf auto-complete-config auto-complete
edmacro kmacro popup undo-tree diff multi-shell windata tree-mode
tree-widget wid-edit imenu imenu-tree tempo saveplace google-translate
google-translate-default-ui google-translate-core-ui ido
google-translate-core google-translate-tk url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-domsuf url-util
url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache url-vars mailcap json map seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib eol-conversion easymenu
default-path mule-util 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
menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify
dynamic-setting system-font-setting font-render-setting xwidget-internal
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 285563 184944)
 (symbols 48 39847 13)
 (miscs 40 126 323)
 (strings 32 96910 23835)
 (string-bytes 1 2947210)
 (vectors 16 40673)
 (vector-slots 8 778617 224798)
 (floats 8 356 717)
 (intervals 56 472 77)
 (buffers 992 16))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31585; Package emacs. (Thu, 24 May 2018 21:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 31585 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: markusffm <at> fn.de
Cc: 31585 <at> debbugs.gnu.org
Subject: Re: bug#31585: 27.0.50; 112GB Virtual Memory; 102MB working set
Date: Thu, 24 May 2018 17:57:23 -0400
tags 31585 + moreinfo
quit

markusffm <at> fn.de writes:

> build with: CFLAGS="-march=native -ffast-math -Os"

I don't see -ffast-math very often, does it affect anything?

> and
>         --enable-largefile                    \
>         --with-x-toolkit=gtk3                 \
>         --with-sound=no                       \
>         --with-modules                        \
>         --with-xwidgets                       \
>         --without-pop                         \
>         --without-selinux                     \
>         --without-gnutls                      \
>         --disable-acl                         \
>         --with-file-notification=yes          \
>         --with-json                           \
>         --without-xml2                        \
> resulting in:
> 112GB Virtual Memory; 102MB working set usage
> measured by htop

What do you do in Emacs for this to happen?  Just on startup (with -Q?),
open N files, ...?





Added tag(s) moreinfo. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 24 May 2018 21:58:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31585; Package emacs. (Fri, 25 May 2018 06:30:01 GMT) Full text and rfc822 format available.

Message #13 received at 31585 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: markusffm <at> fn.de, 31585 <at> debbugs.gnu.org
Subject: Re: bug#31585: 27.0.50; 112GB Virtual Memory; 102MB working set
Date: Fri, 25 May 2018 09:29:29 +0300
> From: Noam Postavsky <npostavs <at> gmail.com>
> Date: Thu, 24 May 2018 17:57:23 -0400
> Cc: 31585 <at> debbugs.gnu.org
> 
> > build with: CFLAGS="-march=native -ffast-math -Os"
> 
> I don't see -ffast-math very often, does it affect anything?

It does.  It breaks IEEE compatibility and enables "unsafe"
optimizations of FP calculations.  I cannot recommend its usage in
general-purpose programs such as Emacs.

Not sure it has any relevance to the issue at hand, but I would
recommend to begin by building without that flag.

> What do you do in Emacs for this to happen?  Just on startup (with -Q?),
> open N files, ...?

Indeed, some information about the recipe to reproduce the problem is
required to investigate this problem.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31585; Package emacs. (Sat, 26 May 2018 00:58:02 GMT) Full text and rfc822 format available.

Message #16 received at 31585 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: 31585 <at> debbugs.gnu.org
Cc: markusffm <at> fn.de
Subject: Re: bug#31585: 27.0.50; 112GB Virtual Memory; 102MB working set
Date: Fri, 25 May 2018 20:57:30 -0400
[Message part 1 (text/plain, inline)]
[forwarding to list, please use "Reply All" to keep 31585 <at> debbugs.gnu.org on Cc]

[Message part 2 (message/rfc822, inline)]
From: markusffm <at> fn.de
To: Noam Postavsky <npostavs <at> gmail.com>
Subject: Re: bug#31585: 27.0.50; 112GB Virtual Memory; 102MB working set
Date: Fri, 25 May 2018 00:14:45 +0200
On Thu, May 24, 2018 at 05:57:23PM -0400, Noam Postavsky wrote:
>tags 31585 + moreinfo
>quit
>
>markusffm <at> fn.de writes:
>
>> build with: CFLAGS="-march=native -ffast-math -Os"
>
>I don't see -ffast-math very often, does it affect anything?
NO!

>What do you do in Emacs for this to happen?  Just on startup (with -Q?),
>open N files, ...?
No effect.

-- 
lg M
[Message part 3 (text/plain, inline)]

I meant, how did you start Emacs, and what actions did you take in Emacs
before observing the 112GB virtual memory usage?

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31585; Package emacs. (Sun, 27 May 2018 13:19:01 GMT) Full text and rfc822 format available.

Message #19 received at 31585 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: 31585 <at> debbugs.gnu.org
Cc: "markusffm <at> fn.de" <markusffm <at> fn.de>
Subject: Re: bug#31585: 27.0.50; 112GB Virtual Memory; 102MB working set
Date: Sun, 27 May 2018 09:17:52 -0400
[Message part 1 (text/plain, inline)]
[forwarding to list, please use "Reply All" to keep 31585 <at> debbugs.gnu.org on Cc]

[Message part 2 (message/rfc822, inline)]
From: "markusffm\@fn.de" <markusffm <at> fn.de>
To: Noam Postavsky <npostavs <at> gmail.com>
Subject: Re: bug#31585: 27.0.50; 112GB Virtual Memory; 102MB working set
Date: Sat, 26 May 2018 08:23:21 +0200
>
>I meant, how did you start Emacs, and what actions did you take in Emacs
invoked by emacs
>before observing the 112GB virtual memory usage?
no action. after running emacs for let me say an hour the size of the 
working set increases to 170mb
invoking emacs with -Q doesn't change anything either.
-- 
lg M
[Message part 3 (text/plain, inline)]

You mean, immediately after startup the virual memory is 112GB?  Or only
after an hour (and what do you do during that hour)?


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31585; Package emacs. (Sun, 27 May 2018 16:12:01 GMT) Full text and rfc822 format available.

Message #22 received at 31585 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: markusffm <at> fn.de, 31585 <at> debbugs.gnu.org
Subject: Re: bug#31585: 27.0.50; 112GB Virtual Memory; 102MB working set
Date: Sun, 27 May 2018 19:11:24 +0300
> From: Noam Postavsky <npostavs <at> gmail.com>
> Date: Sun, 27 May 2018 09:17:52 -0400
> Cc: "markusffm <at> fn.de" <markusffm <at> fn.de>
> 
> From: "markusffm\@fn.de" <markusffm <at> fn.de>
> To: Noam Postavsky <npostavs <at> gmail.com>
> Subject: Re: bug#31585: 27.0.50; 112GB Virtual Memory; 102MB working set
> 
> >
> >I meant, how did you start Emacs, and what actions did you take in Emacs
> invoked by emacs
> >before observing the 112GB virtual memory usage?
> no action. after running emacs for let me say an hour the size of the 
> working set increases to 170mb
> invoking emacs with -Q doesn't change anything either.

A working set of 170MB is quite normal.  What I don't understand is
how come such a moderate working set can cause a 112GB VM usage.

Any chance you could run some memory analyzing program and see what
part(s) reserve all that huge memory?




Added tag(s) wontfix; removed tag(s) moreinfo. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 09 Jan 2019 00:39:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 31585 <at> debbugs.gnu.org and markusffm <at> fn.de Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 09 Jan 2019 00:39:03 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. (Wed, 06 Feb 2019 12:24:17 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 53 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.