From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How to debug elisp memory leak Date: Mon, 04 Oct 2004 14:33:49 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <2hzn3qz30q.fsf@vserver.cs.uit.no> <2hllf5xh6z.fsf@vserver.cs.uit.no> <2hekkhjrr8.fsf@vserver.cs.uit.no> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1096900499 10584 80.91.229.6 (4 Oct 2004 14:34:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Oct 2004 14:34:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 04 16:34:46 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CETvJ-0005Fl-00 for ; Mon, 04 Oct 2004 16:34:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CEU1t-0001WY-VZ for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Oct 2004 10:41:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsxfer.itd.umich.edu!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:ncGNoTs5HlJizByqC8MRvkTnoDI= Original-Lines: 20 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1096900429 132.204.24.84 (Mon, 04 Oct 2004 10:33:49 EDT) Original-NNTP-Posting-Date: Mon, 04 Oct 2004 10:33:49 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:125683 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21043 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21043 > You mentioned a fix in the works for this problem, what is the status > of this? My emacs is from /usr/ports as of june 1. 2004, and the > FreeBSD is 4.8-RELEASE. The fix for that problem is installed in the Emacs-CVS trunk (and will thus be in the next major Emacs release). Of course, along with the memory-usage.el, it's always worthwhile to check the size(s) of the process as reported by `ps' (i.e. things like VM and RSS). 7MB of gaps for 10MB of memory is clearly not an efficient use of memory (and IIRC the Emacs-CVS code should perform better in this respect as well), but 10MB should not be a cause for a "lisp pointer size" warning (which should be closer to the 100MB order of magnitude on your Emacs). So maybe it's got to do with FreeBSD's memory layout which interacts badly with Emacs's, or it can be that the extra memory used is not found by memory-usage.el (which is why the `ps' stats are important). Stefan