Comment 30 for bug 98783

Revision history for this message
Sonny (aadityabhatia) wrote :

Xorg's memory consumption goes up each time the tty is switched to or from the one running the X server, and each time the box is suspended & resumed. The increase at each step depends on the 'pixmem' size.

In the following, I switched between tty1 (CLI) and tty7 (X) and took a reading each time I returned to tty7. Only `firefox` and `gnome-terminal` windows were open.

$ top -bn1 |grep Xorg
 2816 root 20 0 556m 63m 17m S 2 1.6 0:06.87 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 606m 79m 20m S 0 2.1 0:08.54 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 653m 92m 23m S 2 2.4 0:10.30 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 701m 106m 25m S 0 2.7 0:12.19 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 750m 117m 27m S 0 3.0 0:13.95 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 798m 130m 30m S 2 3.4 0:15.74 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 845m 144m 32m S 0 3.7 0:17.52 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 893m 157m 35m S 0 4.1 0:20.08 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 960m 210m 44m S 2 5.4 1:01.58 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 1007m 229m 46m R 70 5.9 1:08.70 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 1052m 242m 49m S 74 6.2 1:17.90 Xorg
$ top -bn1 |grep Xorg
 2816 root 20 0 1101m 257m 51m R 71 6.6 1:23.54 Xorg

In the following, there was one suspend & resume between any two consecutive commands. Again, only `firefox` and `gnome-terminal` windows were open.

$ top -bn1 |grep Xorg
23595 root 20 0 526m 103m 24m S 4 2.7 3:59.37 Xorg
$ top -bn1 |grep Xorg
23595 root 20 0 587m 123m 24m S 6 3.2 4:03.11 Xorg
$ top -bn1 |grep Xorg
23595 root 20 0 675m 145m 25m S 4 3.8 4:11.56 Xorg
$ top -bn1 |grep Xorg
23595 root 20 0 723m 160m 26m S 4 4.1 4:23.90 Xorg

`xrestop`'s output showed no significant change, but the increases in Xorg's resident memory in each step approximately equal to the total memory according to `xrestop`:
          Pixmaps: 17925K total, Other: 122K total, All: 18047K total

The box is running Jaunty, amd64; all packages are up to date.
$ lspci |grep Display
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
$ cat /proc/version
Linux version 2.6.28-11-generic (buildd@crested) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009