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: Weird memory consumption libnked to frame font spec Date: Wed, 20 May 2009 19:13:52 -0400 Message-ID: <87fxeziczz.fsf@cyd.mit.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242861234 23162 80.91.229.12 (20 May 2009 23:13:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2009 23:13:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 21 01:13:47 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 1M6uyp-00051n-3q for ged-emacs-devel@m.gmane.org; Thu, 21 May 2009 01:13:47 +0200 Original-Received: from localhost ([127.0.0.1]:48273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6uyo-00060M-Cf for ged-emacs-devel@m.gmane.org; Wed, 20 May 2009 19:13:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6uyi-0005vc-AC for emacs-devel@gnu.org; Wed, 20 May 2009 19:13:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6uyc-0005l8-Vn for emacs-devel@gnu.org; Wed, 20 May 2009 19:13:39 -0400 Original-Received: from [199.232.76.173] (port=34035 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6uyc-0005kw-RK for emacs-devel@gnu.org; Wed, 20 May 2009 19:13:34 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:55153) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6uyc-00063w-Lu for emacs-devel@gnu.org; Wed, 20 May 2009 19:13:34 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id B0C3E57E259; Wed, 20 May 2009 19:13:52 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Fri, 24 Apr 2009 00:00:36 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (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:111006 Archived-At: 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 > > - at this point, you're supposed to be looking at 11 frames, the bottom > one using the default font to show *scratch*, the 9 middle ones > showing *scratch* as well but using "Sans", and the top one also using > "Sans" but showing various windows listing the > artists&albums&... available in your MPD daemon. > "ps" should show your Emacs process is largish, but not humongous (in > my case it's about 60MB). My Emacs process is 28 MiB at this point. > - Now middle click on some artist in the artist list to select it. > This should modify most of the buffers in the MPC frame, tho nothing > really particular: they don't get much longer, they don't use new > charsets (they may, but at least in my test case they don't), ... > This is done by sending various commands to the MPD daemon (via one > TCP connection) and receiving responses in return through the > process filter. > Yet, the process size of this running Emacs has jumped up by an > enormous chunk (to 190MB in my case). Because I didn't set up an album properly, however (I only installed mpc to try to reproduce this bug), I don't have anything in by artists and albums windows. I can, however, click on an entry in the *MPC Songs* window to play the song. My Emacs process is still 28 MiB, so I don't see the bug.