unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Naveed Chehrazi <nchehrazi@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 43876@debbugs.gnu.org
Subject: bug#43876: Emacs uses excessive memory
Date: Fri, 9 Oct 2020 15:25:55 -0500	[thread overview]
Message-ID: <CADkdQW_yP-U4ah67XRJA6SVz62W63m31h6zkP701FszrhoeLXg@mail.gmail.com> (raw)
In-Reply-To: <831ri77unj.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1531 bytes --]

Hi Eli,

I use emacs to write academic papers. This means that the follow
packages/modes are generally active:

   - auctex
   - reftex
   - flyspell
   - company
   - pdf-view (using pdftools)
   - Ebib
   - Org

I often have 3 to 4 emacs window/frame open for many days. Emacs uses
normal amount of memory initially but after three or four days, the amount
of memory it has used has grown enormously. I have not changed the settings
of the garbage collector. Its current value is:

gc-cons-threshold is a variable defined in ‘C source code’.
Its value is 800000

I can run tests on my machine if you think that would be helpful.

Best regards,

Naveed


On Fri, Oct 9, 2020 at 1:58 AM Eli Zaretskii <eliz@gnu.org> wrote:

> merge 43876 43389
> thanks
>
> > From: Naveed Chehrazi <nchehrazi@gmail.com>
> > Date: Thu, 8 Oct 2020 19:53:02 -0500
> >
> > I had two instances where my emacs was using an excessive amount of
> memory (once about 45GiB, and
> > once using 94GiB). I have the memory-profiler report below. It appears
> that helm package is the cause,
>
> Please disregard the profiler results: it doesn't measure memory
> consumption, not at all.
>
> What would be beneficial for this and similar bug reports (see
> bug#43389) is to describe what you are doing when memory footprint of
> the Emacs process grows significantly.  That might give some ideas
> about where to look for the culprit(s).
>
> Do you have some customizations that change gc-cons-threshold?
>

[-- Attachment #2: Type: text/html, Size: 2198 bytes --]

  reply	other threads:[~2020-10-09 20:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-09  0:53 bug#43876: Emacs uses excessive memory Naveed Chehrazi
2020-10-09  6:58 ` Eli Zaretskii
2020-10-09 20:25   ` Naveed Chehrazi [this message]
2020-10-10  6:42     ` Eli Zaretskii
2020-10-11  2:20       ` Naveed Chehrazi
2021-01-25  2:20 ` Naveed Chehrazi
2021-01-25  3:34   ` Eli Zaretskii
2021-01-25  3:53     ` Naveed Chehrazi
2021-01-25  4:45       ` Eli Zaretskii
2021-01-25  5:24         ` Naveed Chehrazi
2021-01-25  3:51 ` bug#43876: 27.1; " Naveed Chehrazi

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=CADkdQW_yP-U4ah67XRJA6SVz62W63m31h6zkP701FszrhoeLXg@mail.gmail.com \
    --to=nchehrazi@gmail.com \
    --cc=43876@debbugs.gnu.org \
    --cc=eliz@gnu.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).