From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Memory leaks Date: Sat, 08 Aug 2009 14:57:40 -0400 Message-ID: <87fxc2p1zv.fsf@cyd.mit.edu> References: <87fxc6ji2h.fsf@CPU107.opentrends.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249757827 24366 80.91.229.12 (8 Aug 2009 18:57:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Aug 2009 18:57:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Clemente Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 08 20:57:00 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MZr6B-0000js-MW for ged-emacs-devel@m.gmane.org; Sat, 08 Aug 2009 20:56:59 +0200 Original-Received: from localhost ([127.0.0.1]:46680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZr6B-0007SE-6S for ged-emacs-devel@m.gmane.org; Sat, 08 Aug 2009 14:56:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZr66-0007Ru-Ih for emacs-devel@gnu.org; Sat, 08 Aug 2009 14:56:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZr61-0007RL-6t for emacs-devel@gnu.org; Sat, 08 Aug 2009 14:56:53 -0400 Original-Received: from [199.232.76.173] (port=55922 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZr61-0007RI-0a for emacs-devel@gnu.org; Sat, 08 Aug 2009 14:56:49 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:58760) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZr60-0005bY-Mo for emacs-devel@gnu.org; Sat, 08 Aug 2009 14:56:48 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 8685A57E25D; Sat, 8 Aug 2009 14:57:40 -0400 (EDT) In-Reply-To: <87fxc6ji2h.fsf@CPU107.opentrends.net> (Daniel Clemente's message of "Wed, 05 Aug 2009 19:17:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113811 Archived-At: Daniel Clemente writes: > Hi, today my Emacs --daemon from CVS started eating memory and ended > up with 1 Gb resident and 2'5 Gb virtual, with only 180 small > buffers open. > > I wanted to debug who was taking all this memory. Since I don't know > how to find out this, I have started to collect more information in > EmacsWiki: http://www.emacswiki.org/emacs/EmacsMemoryDebugging > > How do you debug memory leaks? Please add tips there so that they > are useful to more people. How quickly does this leak happen? If you can make it leak quickly and reproducibly, the easiest approach is probably to bisect.