From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Using the ImageMagick backend seems to leak memory Date: Thu, 06 Jan 2011 10:02:24 +0100 Message-ID: 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 1294304567 32655 80.91.229.12 (6 Jan 2011 09:02:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Jan 2011 09:02:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 06 10:02:41 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 1Palk0-0002Wh-Re for ged-emacs-devel@m.gmane.org; Thu, 06 Jan 2011 10:02:41 +0100 Original-Received: from localhost ([127.0.0.1]:55471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Palk0-0006pC-Ek for ged-emacs-devel@m.gmane.org; Thu, 06 Jan 2011 04:02:40 -0500 Original-Received: from [140.186.70.92] (port=45995 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Paljs-0006ml-CQ for emacs-devel@gnu.org; Thu, 06 Jan 2011 04:02:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Paljr-00043f-2T for emacs-devel@gnu.org; Thu, 06 Jan 2011 04:02:32 -0500 Original-Received: from batman.blixtvik.net ([87.96.254.3]:51370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Paljq-00043V-Tu for emacs-devel@gnu.org; Thu, 06 Jan 2011 04:02:31 -0500 Original-Received: from www.verona.se (4-208-96-87.cust.blixtvik.se [87.96.208.4]) by batman.blixtvik.net (Postfix) with ESMTP id 3D8297F860A; Thu, 6 Jan 2011 10:02:28 +0100 (CET) Original-Received: from localhost.localdomain (unknown [192.168.201.6]) by www.verona.se (Postfix) with ESMTP id 95D3C9681B6; Thu, 6 Jan 2011 10:02:26 +0100 (CET) In-Reply-To: <87sjx6zczl.fsf@member.fsf.org> (Tassilo Horn's message of "Thu, 06 Jan 2011 08:51:26 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:134330 Archived-At: Tassilo Horn writes: > Hi all, > > 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) ? > > Bye, > Tassilo -- Joakim Verona