From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Memory leak Date: Sun, 18 May 2008 04:11:09 +0900 Message-ID: <87skwgg302.fsf@uwakimon.sk.tsukuba.ac.jp> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211050844 20871 80.91.229.12 (17 May 2008 19:00:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 May 2008 19:00:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Evil Boris" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 17 21:01:21 2008 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 1JxReb-0004De-A9 for ged-emacs-devel@m.gmane.org; Sat, 17 May 2008 21:01:13 +0200 Original-Received: from localhost ([127.0.0.1]:57895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxRdr-0004gY-DY for ged-emacs-devel@m.gmane.org; Sat, 17 May 2008 15:00:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JxRdB-0004Pe-6T for emacs-devel@gnu.org; Sat, 17 May 2008 14:59:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JxRd9-0004NP-J0 for emacs-devel@gnu.org; Sat, 17 May 2008 14:59:44 -0400 Original-Received: from [199.232.76.173] (port=46287 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxRd9-0004NC-77 for emacs-devel@gnu.org; Sat, 17 May 2008 14:59:43 -0400 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:55996) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JxRd8-0004BZ-Mp for emacs-devel@gnu.org; Sat, 17 May 2008 14:59:42 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id C5D201535AC; Sun, 18 May 2008 03:59:37 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 116231A25C3; Sun, 18 May 2008 04:11:10 +0900 (JST) In-Reply-To: X-Mailer: VM ?bug? under XEmacs 21.5.21 (x86_64-unknown-linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:97330 Archived-At: Evil Boris writes: > I do not know if this is related, but sometime after January (around > Unicode merge) I noticed that, after running for a while (have not > been able to notice when precisely this happens, but seems to require > having at least one X frame, sometimes happens within a few minutes of > starting), Emacs starts occupying 190-250Mb of memory. FWIW, XEmacs has some hard-to-pin-down memory leaks, too, one or more of which seems to be related to Xft/fontconfig. These packages are coded in the classic X11 style, meaning that the burden is entirely on the client code to clean things up. There *is* refcounting and things like that, but for internal use of the Xft code. I have no idea what the memory use characteristics of underlying rendering engines such as FreeType might be, so this has been really hard to track down.