From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Weird memory consumption libnked to frame font spec Date: Fri, 01 May 2009 21:15:58 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1241180201 30226 80.91.229.12 (1 May 2009 12:16:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2009 12:16:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 01 14:16:31 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 1LzrfG-00044d-SI for ged-emacs-devel@m.gmane.org; Fri, 01 May 2009 14:16:27 +0200 Original-Received: from localhost ([127.0.0.1]:46003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzrfG-0001tR-3m for ged-emacs-devel@m.gmane.org; Fri, 01 May 2009 08:16:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lzrf0-0001ow-8N for emacs-devel@gnu.org; Fri, 01 May 2009 08:16:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lzreu-0001oB-5Z for emacs-devel@gnu.org; Fri, 01 May 2009 08:16:08 -0400 Original-Received: from [199.232.76.173] (port=57755 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lzret-0001o8-Rn for emacs-devel@gnu.org; Fri, 01 May 2009 08:16:03 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:37985) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lzret-0004vH-4X for emacs-devel@gnu.org; Fri, 01 May 2009 08:16:03 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n41CFxuU010926; Fri, 1 May 2009 21:15:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n41CFx4S024043; Fri, 1 May 2009 21:15:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n41CFvCv029621; Fri, 1 May 2009 21:15:57 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1Lzreo-0003bz-CX; Fri, 01 May 2009 21:15:58 +0900 In-reply-to: (message from Stefan Monnier on Thu, 30 Apr 2009 22:58:03 -0400) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:110585 Archived-At: In article , Stefan Monnier writes: >>> There's something funny with our memory consumption. >>> Here is a recipe to show the problem, tho it uses mpc.el (and requires >>> an mpd daemon running), so you may find it rather inconvenient to try >>> and reproduce it. Hopefully I'll find a way to get rid of this mpc.el >>> dependency to reproduce the bug, but for now, that's what we have: >>> - emacs -Q --eval '(dotimes (i 10 (other-frame 1)) (make-frame (quote ((font . "Sans")))))' -l ~/src/elisp/mpc/mpc.el -f mpc > > Do you see the same memory increase with an actual font > > family (e.g. "dejavu sans") instead of such a generic > > family name? > Yes, that makes no difference. Ummm, I can't reproduce the case of huge memory increase by make-frame. Can't you find a testcase to reproduce it without your mpc.el? By the way, I can observe about 1M memory increase, but at the moment, I don't know where that memory is used. At least, font-objects and font-entities are shared by frames. --- Kenichi Handa handa@m17n.org