From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Using the ImageMagick backend seems to leak memory Date: Thu, 06 Jan 2011 11:20:12 +0100 Message-ID: <87fwt6cp0j.fsf@member.fsf.org> References: <87sjx6zczl.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294309236 21561 80.91.229.12 (6 Jan 2011 10:20:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Jan 2011 10:20:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 06 11:20:32 2011 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.69) (envelope-from ) id 1PamxL-00059j-VB for ged-emacs-devel@m.gmane.org; Thu, 06 Jan 2011 11:20:32 +0100 Original-Received: from localhost ([127.0.0.1]:36823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PamxL-0002Pv-0h for ged-emacs-devel@m.gmane.org; Thu, 06 Jan 2011 05:20:31 -0500 Original-Received: from [140.186.70.92] (port=55548 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pamx7-0002Mt-8N for emacs-devel@gnu.org; Thu, 06 Jan 2011 05:20:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pamx5-0007wG-7Z for emacs-devel@gnu.org; Thu, 06 Jan 2011 05:20:16 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:7381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pamx5-0007w4-1l for emacs-devel@gnu.org; Thu, 06 Jan 2011 05:20:15 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id C34D67801573; Thu, 6 Jan 2011 11:20:13 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29855-05; Thu, 6 Jan 2011 11:20:13 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 28EC67801676; Thu, 6 Jan 2011 11:20:13 +0100 (CET) In-Reply-To: (joakim@verona.se's message of "Thu, 06 Jan 2011 10:02:24 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by eggs.gnu.org: GNU/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:134332 Archived-At: joakim@verona.se writes: Hi Joakim, >> I just noticed that my emacs uses up more than a gigabyte memory. It >> is because of doc-view with ImageMagick backend. >> >> After starting my emacs, it needs ~50 MB. Firing up doc-view on a >> PDF and showing page one increases to ~80 MB. Switching to other >> pages increases about 30 MB every time. Switching to already seen >> pages doesn't increase the memory requirements. (I convert the docs >> with doc-view-resolution set to 200, so 30 MB a page might be >> possible.) >> >> Killing the buffer doesn't free the memory again, neither do >> (clear-image-cache) or (garbage-collect). So how do I reclaim that >> memory? > > Do you get the same result with (setq imagemagick-render-type 1) ? I already used that. Now I switched to 0, but that doesn't change anything. Memory is not reclaimed... Bye, Tassilo