From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [emacs_user@hotmail.com: reproducible cygwin memory problems] Date: Fri, 04 Aug 2006 08:48:01 +0200 Message-ID: <85fygdkndq.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154674116 21732 80.91.229.2 (4 Aug 2006 06:48:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2006 06:48:36 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 04 08:48:34 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G8tU0-0000Rq-RZ for ged-emacs-devel@m.gmane.org; Fri, 04 Aug 2006 08:48:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8tU0-00086U-2Z for ged-emacs-devel@m.gmane.org; Fri, 04 Aug 2006 02:48:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8tTn-000865-6U for emacs-devel@gnu.org; Fri, 04 Aug 2006 02:48:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8tTm-00085t-6o for emacs-devel@gnu.org; Fri, 04 Aug 2006 02:48:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8tTm-00085q-1D for emacs-devel@gnu.org; Fri, 04 Aug 2006 02:48:18 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G8tXH-0007Yq-EG for emacs-devel@gnu.org; Fri, 04 Aug 2006 02:51:55 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1G8tTe-0006hW-8j; Fri, 04 Aug 2006 02:48:10 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id B29961C4CE1A; Fri, 4 Aug 2006 08:48:02 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 03 Aug 2006 21:37:59 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:58079 Archived-At: Richard Stallman writes: > Would someone please help him investigate this -- then ack this message? > > Are the images kept in a cache? Is there a way to clear it? > They are, and he does already clear the cache: > after killing the buffer with the image and using > M-:(clear-image-cache t)RET: 16476; Incidentally, the cache is there since we are very inefficient turning image data into images: it would probably make sense to let gdk (or equivalent code working on entire images) handle this where available (the main problem is that the conversion is done pixel-by-pixel). But that is a long-standing peeve of mine, and certainly not something to be tackled for Emacs 22. The memory issues, however, are a different thing. I guess it might be because image data gets allocated by xmalloc, out of Emacs' memory pool. xmalloc would not be able to make use of previous small memory allocations. > after editing a large image: 39164; > > again quit+clear cache: 34484; > > edit small+medium+large images: 58936; > > quit+clear: 87636... (increased!) > > I hope someone can look into this, and I am happy to provide > information given specific instructions. > > thanks... EU > > > In GNU Emacs 22.0.50.1 (i686-pc-cygwin, X toolkit, Xaw3d scroll bars) > of 2006-07-31 on cata2 The problem might be related to the "malloc" or equivalent memory allocation strategy that is available on a copmilation for Cygwin. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum