unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: the ...-unload-hook convention doesn't work
Date: Fri, 16 Jan 2004 07:21:05 +0100	[thread overview]
Message-ID: <ilur7y08lda.fsf@latte.josefsson.org> (raw)
In-Reply-To: <mailman.744.1074223463.928.bug-gnu-emacs@gnu.org> (Dave Love's message of "Fri, 16 Jan 2004 00:23:28 +0000")

Dave Love <d.love@dl.ac.uk> writes:

> As it happens, I do occasionally unload a Gnus feature which leaks.
> That typically reduces the number of used conses from ~1M to ~300k and
> means GC then doesn't typically thrash on my work system though it
> leaves a lot of unused ones.

Which feature is this?  Any hints on finding leaking code, in general?
I have been using the following to print out large symbols:

(mapatoms (lambda (sym)
	    (let ((len (ignore-errors (length (symbol-value sym)))))
	      (if (and len (> len 500) (not (= len 507904)))
		  (insert (format "%s: %s\n" sym len))))))

But it doesn't seem to work well.  I have been getting complaints
about exhausting the memory from Emacs without that code generating
anything interesting.  My machine has 1 GB RAM, and emacs is typically
around 100MB but can grow to 300MB or so when I do something major in
Gnus.

Essentially: how do I find out what is taking up all memory in Emacs?
Perhaps a package that report these things would be handy.

  parent reply	other threads:[~2004-01-16  6:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-05 18:24 the ...-unload-hook convention doesn't work Luc Teirlinck
2004-01-06 14:33 ` Dave Love
2004-01-07 15:05   ` Richard Stallman
2004-01-09 14:39     ` Dave Love
2004-01-09 17:08       ` Luc Teirlinck
2004-01-11 19:37         ` Richard Stallman
2004-01-12 19:35           ` Kevin Rodgers
2004-01-16  0:23           ` Dave Love
     [not found]           ` <mailman.744.1074223463.928.bug-gnu-emacs@gnu.org>
2004-01-16  6:21             ` Simon Josefsson [this message]
2004-01-16 19:54               ` Richard Stallman
2004-01-17  2:22                 ` Simon Josefsson
2004-01-17  0:21               ` Dave Love
2004-01-12 15:23         ` Dave Love
2004-01-11 19:36       ` Richard Stallman
2004-01-16  0:18         ` Dave Love
2004-01-16 19:54           ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2004-01-05 15:01 Dave Love

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=ilur7y08lda.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=bug-gnu-emacs@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).