unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: Eli Zaretskii <eliz-mXXj517/zsQ@public.gmane.org>
Cc: 15156-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org
Subject: bug#15156: 24.3; !MEM FULL!
Date: Fri, 06 Sep 2013 11:42:40 +0200	[thread overview]
Message-ID: <86a9jqs2un.fsf@somewhere.org> (raw)
In-Reply-To: <83ioyemhl4.fsf-mXXj517/zsQ@public.gmane.org> (Eli Zaretskii's message of "Fri, 06 Sep 2013 12:20:55 +0300")

Eli Zaretskii wrote:
>> From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
>> Cc: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>,  15156-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org
>> Date: Fri, 06 Sep 2013 10:55:55 +0200
>> 
>> > All I see in the screencast is that the memory footprint grows, then
>> > shrinks back.  Assuming you have something going on in Emacs that can
>> > explain several hundreds of MBs of memory consumption, that's actually
>> > normal: Emacs uses up memory when it needs it, then releases it when
>> > it no longer does.  So maybe there's no problem here at all.
>> 
>> You take the precaution of "assuming I have something explaining several
>> hundreds of MBs of memory consumption", and that's where the problem lies: I
>> don't have anything that could explain that.
>
> You are using helm, aren't you?

Yes, I do -- can't live without it anymore (to find a file, just type part of
its name, instead of typing every directory from the root). [1]

> That can explain anything at all, as it runs subprocesses on every
> keystroke, AFAIR.

Yes, that's what I remember as well. Though, I wasn't using Helm at the moment
the situation become visible to me; but the full memory could have been
triggered a little while before, and only apparent when I was typing my commit
message.

> Anyway, putting a break at xmalloc conditioned by some large
> allocation size might show who is requesting this much memory.  I
> don't see how this can be investigated otherwise without some
> debugging.

If you have a recipe which does not constrain too much my daily usage of
Emacs, I'm willing to apply it.

>> What's weird as well is that the memory shrinks back to a lower level -- even
>> if still quite important. No apparent reason for that.
>
> GC is normally the reason: Emacs relinquishes memory it doesn't need
> anymore.

OK, clear.

>> And, anyway, I still can't use Emacs as you saw: I'm forced to kill
>> Emacs from the Task Manager.
>
> Why can't you exit Emacs "normally"?  Memory full condition does not
> prevent that.  What happens if you try exiting?

The problem is that Emacs did not respond at all my attempts to get back
control of it. In the video, I typed C-g numerous times in the last minute
(certainly > 10 times). Never got a working state back. My keys simply where
ignored (or not processed yet). I sometimes could type a couple of letters,
but then Emacs went back in his state where it does not listen to my keys
anymore. It really stays completely deaf.

It'd be interesting to get a "key logger" with on-screen display, but I still
did not find one convenient for Windows. That way, you'd see that it simply
stayed unusable.

Another proof of that is that the CPU usage never drops anymore under ~30%
(which seems to be equal to infloop on my i7-3517U CPU, 2 cores, 4 logical
processors).

[1] I'd be interested by knowing what something similar you use...





  parent reply	other threads:[~2013-09-06  9:42 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-21 20:26 bug#15156: 24.3; !MEM FULL! Sebastien Vauban
2013-08-22  2:52 ` Eli Zaretskii
     [not found] ` <mailman.538.1377139997.10748.bug-gnu-emacs@gnu.org>
     [not found]   ` <mailman.538.1377139997.10748.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-08-22  7:16     ` Sebastien Vauban
2013-08-22 14:57       ` Eli Zaretskii
     [not found]       ` <mailman.570.1377183494.10748.bug-gnu-emacs@gnu.org>
2013-08-22 15:14         ` Sebastien Vauban
2013-08-22 16:00           ` Eli Zaretskii
2013-08-22 16:55           ` Dani Moncayo
2013-08-23  7:09 ` martin rudalics
     [not found]   ` <52170AC5.1070109-RbZlAiThDcE@public.gmane.org>
2013-08-23 22:22     ` Sebastien Vauban
2013-08-24  6:38       ` Eli Zaretskii
2013-08-24  8:55       ` martin rudalics
     [not found]         ` <52187509.4030904-RbZlAiThDcE@public.gmane.org>
2013-08-24 13:57           ` Sebastien Vauban
2013-08-24 14:27             ` Eli Zaretskii
     [not found]               ` <83sixzgo52.fsf-mXXj517/zsQ@public.gmane.org>
2013-08-25  7:39                 ` Sebastien Vauban
     [not found]       ` <mailman.679.1377326354.10748.bug-gnu-emacs@gnu.org>
     [not found]         ` <mailman.679.1377326354.10748.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-09-05 13:21           ` Sebastien Vauban
2013-09-05 14:22             ` Eli Zaretskii
     [not found]               ` <83sixjbb6x.fsf-mXXj517/zsQ@public.gmane.org>
2013-09-05 14:26                 ` Sebastien Vauban
2013-09-05 14:48                   ` Eli Zaretskii
     [not found]                     ` <83ob87b9yy.fsf-mXXj517/zsQ@public.gmane.org>
2013-09-06  8:55                       ` Sebastien Vauban
2013-09-06  9:20                         ` Eli Zaretskii
     [not found]                           ` <83ioyemhl4.fsf-mXXj517/zsQ@public.gmane.org>
2013-09-06  9:42                             ` Sebastien Vauban [this message]
2013-09-06  9:58                               ` Eli Zaretskii
     [not found]                               ` <mailman.1455.1378461557.10748.bug-gnu-emacs@gnu.org>
     [not found]                                 ` <mailman.1455.1378461557.10748.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-09-06 12:17                                   ` Sebastien Vauban
2013-09-06 13:15                                     ` Eli Zaretskii
     [not found]                                     ` <mailman.1471.1378473374.10748.bug-gnu-emacs@gnu.org>
     [not found]                                       ` <mailman.1471.1378473374.10748.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-09-17  8:15                                         ` Sebastien Vauban
2013-09-17  8:23                                           ` Eli Zaretskii
     [not found] <mailman.519.1377116896.10748.bug-gnu-emacs@gnu.org>
     [not found] ` <mailman.519.1377116896.10748.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-08-21 20:54   ` Sebastien Vauban

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=86a9jqs2un.fsf@somewhere.org \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=15156-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org \
    --cc=eliz-mXXj517/zsQ@public.gmane.org \
    /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).