From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Memory Leak was: Re: Update on the Emacs release schedule? 8 messages Date: Sun, 08 Jan 2012 09:23:37 -0500 Message-ID: References: <20233.3395.93384.91217@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326032630 16030 80.91.229.12 (8 Jan 2012 14:23:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2012 14:23:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: tv.raman.tv@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 08 15:23:47 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rjtf0-0004Hd-3h for ged-emacs-devel@m.gmane.org; Sun, 08 Jan 2012 15:23:46 +0100 Original-Received: from localhost ([::1]:40046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjtez-0001P0-LQ for ged-emacs-devel@m.gmane.org; Sun, 08 Jan 2012 09:23:45 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjtew-0001Ok-Sx for emacs-devel@gnu.org; Sun, 08 Jan 2012 09:23:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rjtew-0000K4-2o for emacs-devel@gnu.org; Sun, 08 Jan 2012 09:23:42 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:44994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjtew-0000K0-01 for emacs-devel@gnu.org; Sun, 08 Jan 2012 09:23:42 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q08ENcf0010653; Sun, 8 Jan 2012 09:23:38 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 738BF58F7E; Sun, 8 Jan 2012 09:23:37 -0500 (EST) In-Reply-To: <20233.3395.93384.91217@gargle.gargle.HOWL> (T. V. Raman's message of "Sat, 7 Jan 2012 19:28:03 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4095=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4095> : streams <717881> : uri <1042997> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147487 Archived-At: > Before starting Emacs: `free' shows 2gb in use. FWIW, "free" is not a very good tool to track the memory use of a specific process. Better check the VSZ and RSS of the process itself (and note that RSS can stay stable even in the presence of a leak, so VSZ is important). > Start Emacs 24 -- with just emacspeak loaded -- no immediate > signs of a leak -- `free' shows abut 6gb in use -- which does > seem a lot. What is Emacs's RSS and/or VSZ at startup? > M-x shell in that emacs > and wait for a couple of minutes. > Running `free' on a separate terminal shows that all 12GB of > memory in use -- emacs RSS is at 10GB. > If you dont kill the runnning emacs-24 at that point, it brings > the workstation to its knees and the machine stops responding and > needs to be rebooted. So you're saying that "emacs -Q" plus emacspeak plus "M-x shell" results on this machine in a process hat keeps growing even if you leave it alone? Could you run it under GDB (from the `emacs/src' directory) and interrupt the process (with C-z) every once in a while to try and see what it's doing? Stefan