unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vitalie Spinu <spinuvit@gmail.com>
Cc: 19322@debbugs.gnu.org
Subject: bug#19322: 25.0.50; 1.6Mb one line file chocks Emacs
Date: Wed, 10 Dec 2014 05:48:40 +0200	[thread overview]
Message-ID: <83sigoupuv.fsf@gnu.org> (raw)
In-Reply-To: <87a92wqssz.fsf@gmail.com>

> From: Vitalie Spinu <spinuvit@gmail.com>
> Cc: 19322@debbugs.gnu.org
> Date: Tue, 09 Dec 2014 15:58:36 -0800
> 
> I have 16GB of RAM and 10GB of Swap. When emacs is stuck it blink
> periodically about every 2 seconds as if throwing an error and system
> RAM usage goes up and down by about 6GB or so with the same periodicity.
> 
> With "--enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1", the
> backtrace is:
>    
>    (gdb) break memory_full
>    Breakpoint 1 at 0x60dc1d: file alloc.c, line 3784.
>    (gdb) run
>    Starting program: /home/vitoshka/bin/emacs/src/emacs
>    [Thread debugging using libthread_db enabled]
>    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>    [New Thread 0x7fffe8d65700 (LWP 6289)]
>    
>    ** (emacs:6285): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-wgMsBj3J4m: Connection refused
>    [New Thread 0x7fffe3dc3700 (LWP 6290)]
>    [New Thread 0x7fffe3068700 (LWP 6293)]
>    
>    Breakpoint 1, memory_full (nbytes=14854559328) at alloc.c:3784
>    3784      bool enough_free_memory = 0;
>    (gdb)
>    (gdb) backtrace
>    #0  memory_full (nbytes=14854559328) at alloc.c:3784
>    #1  0x00000000006099ce in xrealloc (block=0x7ffba0368010, size=14854559328) at alloc.c:776

This says Emacs asked for about 14GB of memory, which was rejected.
Any idea why, since you have 26GB of memory?

Also, when did you last synchronize with the repository?  Lately, I
pushed a change that should have reduced the memory Emacs asks in this
case by a factor of 3 on 64-bit hosts.

Anyway, this is indeed the same problem I saw on my system.

> Hope it's helpful, 

It is, thanks.





  reply	other threads:[~2014-12-10  3:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-09  2:37 bug#19322: 25.0.50; 1.6Mb one line file chocks Emacs Vitalie Spinu
2014-12-09 16:16 ` Eli Zaretskii
2014-12-09 23:58   ` Vitalie Spinu
2014-12-10  3:48     ` Eli Zaretskii [this message]
2014-12-10  5:03       ` Vitalie Spinu
2014-12-10 16:09         ` Eli Zaretskii
2014-12-10 17:45           ` Eli Zaretskii
2014-12-11  2:47             ` Vitalie Spinu
2014-12-11  3:49               ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83sigoupuv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=19322@debbugs.gnu.org \
    --cc=spinuvit@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).