all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: bob@rattlesnake.com, emacs-devel@gnu.org
Subject: Re: memory leak
Date: Fri, 28 Apr 2006 20:56:40 -0500 (CDT)	[thread overview]
Message-ID: <200604290156.k3T1uecx028681@jane.dms.auburn.edu> (raw)
In-Reply-To: <m1FZX7N-0004JMC@rattlesnake.com> (bob@rattlesnake.com)

Robert Chassell wrote:

   Can anyone else reproduce a memory leak in the current CVS GNU/Emacs?

Not me.

First of all, I guess that you checked that building Emacs did not
overflow pure storage.  Doing so will definitely produce the results
you describe.  You can check whether the variable pure-space-overflow
is really non-nil or whether (garbage-collect) returns a non-nil value
(it should).

If that is not the problem, I definitely know a way to produce
something that looks very much like a memory leak, although it is not.
All you have to do is have a large number of large files open that
require a lot of fontification, with global-font-lock-mode enabled.
If you have ten or so files the size of lisp/Changelog open, then
after you completely quit using Emacs, the memory consumed by the
Emacs process can easily grow by more than 35 percent, or 8M or more,
over a period spanning an hour or more on a fast machine.  Except for
the apparent "memory leak" there also is an apparent rogue CPU usage.
There is no real memory leak however.  After an hour or more, when all
buffers are completely fontified, both CPU usage and "memory leak"
completely stop.

   These instances of GNU Emacs appear to consume RAM at a rate of 124 kb/min.

I got at least that in my experiments with opening many large files.
But the memory consumption eventually stops, maybe after many hours on
a slow machine.

I can not reproduce anything that even mimics a memory leak without
_both_ global-font-lock-mode being enabled _and_ a large number of
large files requiring heavy fontification being open.

Sincerely,

Luc.

  parent reply	other threads:[~2006-04-29  1:56 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-28 17:51 memory leak Robert J. Chassell
2006-04-28 18:10 ` Andreas Schwab
2006-04-28 20:25   ` Robert J. Chassell
2006-04-29  1:56 ` Luc Teirlinck [this message]
2006-04-29 11:16   ` Robert J. Chassell
2006-04-29 14:06     ` Luc Teirlinck
2006-04-29 16:41       ` Robert J. Chassell
2006-04-29 17:07         ` Luc Teirlinck
2006-04-29 19:32           ` Robert J. Chassell
2006-04-30  3:03     ` Richard Stallman
2006-04-30  4:15       ` Luc Teirlinck
  -- strict thread matches above, loose matches on Subject: below --
2008-05-15 22:50 Memory leak Stefan Monnier
2008-05-15 23:06 ` David Kastrup
2008-05-16  0:25   ` Lennart Borgman (gmail)
2008-05-16  8:35     ` Eli Zaretskii
2008-05-16  9:03       ` Juanma Barranquero
2008-05-16  9:25         ` Eli Zaretskii
2008-05-16  9:29           ` Juanma Barranquero
2008-05-16  9:46             ` Eli Zaretskii
2008-05-16  9:49             ` Juanma Barranquero
2008-05-16 20:13               ` Stephen J. Turnbull
2008-05-16 20:41           ` David Robinow
2008-05-16 21:36             ` Lennart Borgman (gmail)
2008-05-17  7:10             ` Eli Zaretskii
2008-05-16  9:43     ` Eli Zaretskii
2008-05-16 12:50       ` Jason Rumney
2008-05-19  8:05         ` Kenichi Handa
2008-05-19  8:45           ` YAMAMOTO Mitsuharu
2008-05-19 11:13             ` Kenichi Handa
2008-05-19 11:59               ` YAMAMOTO Mitsuharu
2008-05-23  2:24                 ` Kenichi Handa
2008-05-19 13:34           ` David Hansen
2008-05-19 19:42             ` David Hansen
2008-05-16  2:19   ` Stefan Monnier
2008-05-16  0:38 ` YAMAMOTO Mitsuharu
2008-05-17 15:16 ` Evil Boris
2008-05-17 19:11   ` Stephen J. Turnbull
2008-05-17 19:17     ` Eric Hanchrow
2008-05-18 11:26       ` Jan Djärv
2008-05-18 11:29         ` David Kastrup
2008-05-20  6:46           ` Jan Djärv
2008-05-18 13:34         ` Werner LEMBERG
2008-05-20  6:48           ` Jan Djärv
2008-05-19  2:44         ` Stephen J. Turnbull
2008-05-20  6:50           ` Jan Djärv
2008-05-21  6:10             ` Stephen J. Turnbull
2008-05-21 17:32               ` Stefan Monnier
2008-05-23 13:54   ` Evil Boris
2008-05-24 23:02 Nick Roberts
2008-05-30 22:39 memory leak Drew Adams
2008-05-31  7:57 ` David Kastrup

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

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

  git send-email \
    --in-reply-to=200604290156.k3T1uecx028681@jane.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=bob@rattlesnake.com \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.