Test for X memory consumption That's what I did: open city dialog and close it immedialtely 40 times with different cities. Versions: 1. CVS 06 Sept 2001 2. CVS 06 Sept 2001 with new_city_dialog8a-trade-WITHOUT_BUGS.diff XFree86 Version 4.0 / X Window System (protocol Version 11, revision 0, vendor release 6400) Release Date: 8 March 2000 Gtk 1.2.8 Linux: 2.2.18 Result: New dialog ========== After start command in civserver: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 4706 1.2 9.4 43532 9012 ? S 15:13 2:35 /usr/X11R6/bin/X :0 chris 5163 3.5 5.5 6572 5288 pts/2 S 18:36 0:04 civserver -f hard12.sav.gz chris 5174 3.1 5.9 8156 5644 pts/3 S 18:36 0:03 civclient -t trident total used free shared buffers cached Mem: 95344 93448 1896 149924 3584 39316 -/+ buffers/cache: 50548 44796 Swap: 128484 5104 123380 After open/close city dialog test: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 4706 1.3 13.9 47820 13296 ? S 15:13 2:50 /usr/X11R6/bin/X :0 chris 5163 1.5 5.5 6572 5292 pts/2 S 18:36 0:04 civserver -f hard12.sav.gz chris 5174 5.4 6.2 8376 5972 pts/3 S 18:36 0:15 civclient -t trident total used free shared buffers cached Mem: 95344 92888 2456 150056 2716 35072 -/+ buffers/cache: 55100 40244 Swap: 128484 5104 123380 Old dialog ========== After start command in civserver: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 5217 6.9 9.3 43408 8888 ? S 18:44 0:11 /usr/X11R6/bin/X :0 chris 5901 13.7 5.5 6572 5288 pts/1 S 18:46 0:04 civserver -f hard12.sav.gz chris 5912 15.9 5.9 8124 5644 pts/3 S 18:46 0:03 civclient -t trident total used free shared buffers cached Mem: 95344 92744 2600 150264 8800 36472 -/+ buffers/cache: 47472 47872 Swap: 128484 5436 123048 After open/close city dialog test: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 5217 8.5 9.3 43472 8952 ? S 18:44 0:24 /usr/X11R6/bin/X :0 chris 5901 3.2 5.5 6572 5288 pts/1 S 18:46 0:04 civserver -f hard12.sav.gz chris 5912 6.2 5.9 8124 5692 pts/3 S 18:46 0:08 civclient -t trident total used free shared buffers cached Mem: 95344 93428 1916 146156 8860 36940 -/+ buffers/cache: 47628 47716 Swap: 128484 5436 123048