[Intel-gfx] How to limit the size of VideoRAM?
Wang Xu
gnawux at gmail.com
Wed Feb 4 14:46:56 CET 2009
Hi,
I am using KMS and xf86-video-intel git master, and have 2G physical
RAM and 2G swap partition. but even when I swapoff the swap, the Xorg
would use 4G videoRAM.
The problem is it leads to much more swap operation and almost freeze
the window... the results of vmstat, pmap, and free are listed
following. Any ideas?
Regards,
gnawux at stream:~/src/video$ vmstat 5 400
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
1 0 54080 52436 11508 1779008 3 10 126 44 493 480 8 5 83 5
0 0 54024 52428 11516 1779020 11 0 12 5 529 923 1 1 97 0
3 0 53956 52412 11524 1779016 9 0 9 11 1478 1794 5 12 83 0
1 0 52900 52568 11528 1780048 0 0 2 0 1457 1520 6 9 85 0
1 1 68028 49524 11524 1774096 0 776 365 904 2097 1988 17 9 65 9
1 1 90784 52360 10752 1757924 0 962 8 992 2087 1889 5 20 59 16
[...]
1 0 105636 51772 10544 1751956 19 886 53 900 1787 2011 7 12 77 4
1 0 96380 51072 10588 1762844 13 0 351 22 1696 1190 12 13 71 4
2 1 141388 48964 3740 1757132 26 3212 1058 3266 2081 1047 10 14 37 39
0 3 295208 49584 1352 1685824 118 12168 1454 12226 1969 868 3 17 37 42
2 7 323700 50992 756 1668212 62 1445 3300 1453 951 965 2 5 29 65
0 0 358920 58340 1000 1632748 19 1812 1690 1837 2235 1600 6 23 41 30
...
gnawux at stream:~$ sudo pmap 13730
13730: /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
08048000 1604K r-x-- /usr/local/bin/Xorg
081d9000 36K rw--- /usr/local/bin/Xorg
081e2000 44K rw--- [ anon ]
08666000 4240K rw--- [ anon ]
39398000 1024K rw-s- /drm mm object (deleted)
39498000 1024K rw-s- /drm mm object (deleted)
[..... about 2000 lines like above line]
b778b000 144K r-x-- /usr/lib/libexpat.so.1.5.2
b77af000 8K rw--- /usr/lib/libexpat.so.1.5.2
b77c7000 2348K r-x-- /usr/local/lib/dri/i915_dri.so
b7a12000 88K rw--- /usr/local/lib/dri/i915_dri.so
b7a28000 44K rw--- [ anon ]
b7a33000 116K r-x-- /usr/local/lib/xorg/modules/libfb.so
b7a50000 4K rw--- /usr/local/lib/xorg/modules/libfb.so
b7a51000 32K r-x-- /usr/local/lib/libdrm_intel.so.1.0.0
b7a59000 4K rw--- /usr/local/lib/libdrm_intel.so.1.0.0
b7a5a000 472K r-x-- /usr/local/lib/xorg/modules/drivers/intel_drv.so
b7ad0000 88K rw--- /usr/local/lib/xorg/modules/drivers/intel_drv.so
b7ae6000 32K r-x-- /usr/local/lib/libdrm.so.2.4.0
b7aee000 4K rw--- /usr/local/lib/libdrm.so.2.4.0
........
gnawux at stream:~$ free
total used free shared buffers cached
Mem: 2065888 2001564 64324 0 2476 1527884
-/+ buffers/cache: 471204 1594684
Swap: 2010920 603548 1407372
--
Wang Xu
Gilda Radner - "Adopted kids are such a pain - you have to teach them
how to look like you."
More information about the Intel-gfx
mailing list