unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [mathieu@newview.com: X Window resource leakage]
@ 2004-04-25 18:09 Richard Stallman
  2004-07-27 12:23 ` Jan D.
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2004-04-25 18:09 UTC (permalink / raw)


Could someone please investigate this?  I don't know if this is a bug
or if nobody has ever written code to free the images in the X server.
It would seem like a good idea to free any image that has not
been displayed in some period of time (10 minutes) and which is
not currently on the screen.

------- Start of forwarded message -------
Date: Fri, 23 Apr 2004 22:27:05 -0400
From: Mathieu Chouquet-Stringer <mathieu@newview.com>
To: bug-gnu-emacs@gnu.org
Content-Disposition: inline
Subject: X Window resource leakage
Sender: bug-gnu-emacs-bounces+rms=gnu.org@gnu.org

Hi all,

I've been using emacs and gnus for quite some time and I'm puzzled by a
problem I'm having. I don't really know if it's an emacs or gnus bug but
I'm posting this message here for now.
I use emacs 21.3.1 and gnus to read usenet and I'm also subscribed to some
binaries newsgroups (mainly plane stuff).
When emacs opens a message that as image embedded in that it's able to
display (more on that later), it displays it. So far so good, except that
it allocates some memory and never frees anything.
I have tried the cvs version of yesterday (21.3.50.2) and the same thing
happens. If you don't restart emacs from time to time, it's able to suck
all your memory.

To diagnose the problem, I used xrestop, a tool that "provides 'top' like
statistics of each connected X11 client's server side resource usage"
(http://www.freedesktop.org/Software/xrestop). Memory used by emacs goes
into the column "Pxm mem".

Am I the only one seeing this? Any idea?

Regarding the other thing (which is probably more a gnus thing), how come
some pictures are displayed internally and some others are not?

- -- 
Mathieu Chouquet-Stringer                 E-Mail: mathieu@newview.com
       Never attribute to malice that which can be adequately
                    explained by stupidity.
                     -- Hanlon's Razor --


_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [mathieu@newview.com: X Window resource leakage]
  2004-04-25 18:09 [mathieu@newview.com: X Window resource leakage] Richard Stallman
@ 2004-07-27 12:23 ` Jan D.
  0 siblings, 0 replies; 2+ messages in thread
From: Jan D. @ 2004-07-27 12:23 UTC (permalink / raw)
  Cc: mathieu



> 
> ------- Start of forwarded message -------
> Date: Fri, 23 Apr 2004 22:27:05 -0400
> From: Mathieu Chouquet-Stringer <mathieu@newview.com>
> To: bug-gnu-emacs@gnu.org
> Content-Disposition: inline
> Subject: X Window resource leakage
> Sender: bug-gnu-emacs-bounces+rms=gnu.org@gnu.org
> 
> Hi all,
> 
> I've been using emacs and gnus for quite some time and I'm puzzled by a
> problem I'm having. I don't really know if it's an emacs or gnus bug but
> I'm posting this message here for now.
> I use emacs 21.3.1 and gnus to read usenet and I'm also subscribed to some
> binaries newsgroups (mainly plane stuff).
> When emacs opens a message that as image embedded in that it's able to
> display (more on that later), it displays it. So far so good, except that
> it allocates some memory and never frees anything.
> I have tried the cvs version of yesterday (21.3.50.2) and the same thing
> happens. If you don't restart emacs from time to time, it's able to suck
> all your memory.
> 
> To diagnose the problem, I used xrestop, a tool that "provides 'top' like
> statistics of each connected X11 client's server side resource usage"
> (http://www.freedesktop.org/Software/xrestop). Memory used by emacs goes
> into the column "Pxm mem".

I could not find any error, but the value of image-cache-eviction-delay is by 
default 1800 (30 minutes).  You can try to lower it to a minute or so and see 
if it helps.  Also note that Emacs only clears images after every 50:th 
redisplay.  A redisplay is done very often (C-x C-f C-g triggers one, so does 
displaying a tool tip) so that should not be a problem.

	Jan D.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-27 12:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-25 18:09 [mathieu@newview.com: X Window resource leakage] Richard Stallman
2004-07-27 12:23 ` Jan D.

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).