Help for beginner. XCreatePixmap

Glynn Clements glynn at gclements.plus.com
Mon Oct 22 10:34:40 PDT 2007


mike wrote:

> When I create a lot of pixmaps I can't  freed memory,
> Wat I doe wrong?
> 
> Before start program.
> 
> mike at mike-desktop:~$ ps aux | grep /X11/X
> root      3708  6.0  2.0  12672  9152 tty7     Ss+  11:19   0:01
> /usr/bin/X11/X -dpi 100 -nolisten tcp -ld 0 -ls 0 -lf 0 -bs -su -br
> -maxbigreqsize 1
> 
> After
> mike at mike-desktop:~$ ps aux | grep /X11/X
> root      3708  1.1  2.9  51984 13324 tty7     Ss+  11:19   0:02
> /usr/bin/X11/X -dpi 100 -nolisten tcp -ld 0 -ls 0 -lf 0 -bs -su -br
> -maxbigreqsize 1

In general, processes obtain memory from the OS and don't return it
when they have finished using it. Instead, they keep it for later use
(i.e. future allocations will be made from unused memory before
obtaining additional memory from the OS).

If the memory isn't being used, it will eventually get swapped out.

Running xrestop will tell you how much memory the server is actually
using for pixmaps etc.

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the xorg mailing list