RSS/Atom feed Twitter
Site is read-only, email is disabled

GIMP 2.0.1 doesn't free X memory

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

GIMP 2.0.1 doesn't free X memory Alex Dunaevski 08 Jul 21:49
  GIMP 2.0.1 doesn't free X memory Steve Stavropoulos 09 Jul 01:11
   GIMP 2.0.1 doesn't free X memory Alex Dunaevski 09 Jul 02:05
Alex Dunaevski
2004-07-08 21:49:16 UTC (almost 20 years ago)

GIMP 2.0.1 doesn't free X memory

Hi everybody!

I discovered X server eating lots of memory while working with subj. Moreover after i close GIMP it remains allocated, here's line from ps: ...
root 948 11.0 55.5 159540 70648 ? SL 14:19 20:20 /usr/X11R6/bin/X ^^^^
...

I have 128mb RAM +190mb swap, so 55% is quite a lot. The only way to free that memory is terminating X server :(

GIMP's bug?

$ X -version - - - - - - -
XFree86 Version 4.3.0 (Custom Build: 4.3.0-2) Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6 Build Operating System: Linux 2.4.16-010stab016.2.777-smp i686 [ELF] Build Date: 25 April 2003
OS Kernel: Linux version 2.6.3 (alex@localhost.localdomain) (gcc version 3.2.2 20030222 (ASPLinux 3.2.2-5asp)) #3 Sat Apr 17 16:56:39 EEST 2004 P - - - - - - -

Steve Stavropoulos
2004-07-09 01:11:10 UTC (almost 20 years ago)

GIMP 2.0.1 doesn't free X memory

On Thu, 8 Jul 2004, Alex Dunaevski wrote:

I discovered X server eating lots of memory while working with subj. Moreover after i close GIMP it remains allocated, here's line from ps: ...
root 948 11.0 55.5 159540 70648 ? SL 14:19 20:20 /usr/X11R6/bin/X ^^^^
...

I have 128mb RAM +190mb swap, so 55% is quite a lot. The only way to free that memory is terminating X server :(

Keep in mind that the memory usage of X includes the video ram of your graphics card. So, if you have a card with 64MB of ram, then ps will show X having 64+X MB.
Also, X does a lot of caching (images), which adds a lot to its memory size, but sooner or later the memory used for cache by X will be swaped out, with no difference in the performance of X. In the line you pasted we can see that only 70MB are currently used by the X server and I assume that most of them are from the graphics card.

PS. Oh, I forgot to say that the linux kernel will free memory only when it is needed by something else. (of course the behaviour of the VM changes with every full moon, so what I describe might be inaccurate) In any case, that's not a gimp bug.

Alex Dunaevski
2004-07-09 02:05:06 UTC (almost 20 years ago)

GIMP 2.0.1 doesn't free X memory

On Fri, 9 Jul 2004 02:11:10 +0300 (EEST) Steve Stavropoulos wrote:

On Thu, 8 Jul 2004, Alex Dunaevski wrote:

I discovered X server eating lots of memory while working with subj. Moreover after i close GIMP it remains allocated, here's line from ps: ...
root 948 11.0 55.5 159540 70648 ? SL 14:19 20:20 /usr/X11R6/bin/X ^^^^
...

I have 128mb RAM +190mb swap, so 55% is quite a lot. The only way to free that memory is terminating X server :(

Keep in mind that the memory usage of X includes the video ram of your graphics card. So, if you have a card with 64MB of ram, then ps will show X having 64+X MB.

In the line you pasted we can see that only 70MB are currently used by the X server and I assume that most of them are from the graphics card.

Both system RAM and swap are getting exhaused, how can it be related to video RAM mapping ??

In any case, that's not a gimp bug.

i'd like to believe