LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 980|回复: 2

求助:X占用内存怎么这么高?

[复制链接]
发表于 2008-6-21 03:18:10 | 显示全部楼层 |阅读模式
我的内存只有512MB,swap 1G,可是xorg和iceweasel怎么内存占用这么高,开上一会儿,swap就能用掉500MB。显卡是intel915。
iceweasel没有装java插件,flash插件是官方的10.0 b218,平时都是禁用的;扩展只启用了ABP和ForecastFox。
源是testing,只有iceweasel是从unstable源安装的。
大家能帮忙看看吗?还需要提供那些信息呢?
  1. iceweasel      3.0~rc2-1
  2. xserver-xorg   1:7.3+10
  3. xserver-xorg-video-intel 2:2.3.1-1
复制代码
  1. $ top
  2. top - 03:00:47 up 18:01,  3 users,  load average: 0.06, 0.14, 0.13
  3. Tasks:  72 total,   2 running,  67 sleeping,   2 stopped,   1 zombie
  4. Cpu(s):  5.3%us,  1.0%sy,  0.0%ni, 93.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
  5. PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
  6. 8352 swl       20   0  194m  71m  23m S  0.0 14.3   0:09.95 xulrunner-stub     
  7. 8221 root      20   0 71456  39m  21m S  0.0  8.0   0:08.46 synaptic           
  8. 7593 root      20   0  287m  24m 9076 S  0.7  5.0   0:35.82 Xorg               
  9. 7832 swl       20   0  101m  21m  11m R  0.0  4.3   0:01.26 xfce4-terminal     
  10. 7636 swl       20   0 35844  19m 1888 S  0.0  4.0   0:01.96 fcitx              
  11. 7639 swl       20   0  100m  19m  12m S  0.0  3.9   0:02.81 Thunar            
  12. 7646 swl       20   0 43432  12m 9212 S  0.0  2.6   0:00.86 xfce4-menu-plug   
  13. 7643 swl       20   0 41184  12m 9044 S  0.0  2.5   0:02.38 xfce4-panel        
  14. 7598 swl       20   0 40284  10m 7696 S  0.0  2.1   0:00.50 x-session-manag   
  15. 7638 swl       20   0 39796  10m 8532 S  0.0  2.1   0:00.82 xfwm4              
  16. 7642 swl       20   0 18392 7680 5388 S  0.0  1.5   0:00.72 xfdesktop         
  17. 7637 swl       20   0 20724 5676 3096 S  0.0  1.1   0:00.30 xfce-mcs-manage   
  18. 8051 swl       20   0  7548 2984 1424 S  0.0  0.6   0:00.10 bash               
  19. 7834 swl       20   0  7548 2960 1400 S  0.0  0.6   0:00.10 bash               
  20. 8356 swl       20   0  7208 2256 1852 S  0.0  0.4   0:00.00 gconfd-2           
  21. 7874 root      20   0  6128 1792 1368 S  0.0  0.4   0:00.00 bash               
  22. 7575 swl       20   0  6252 1508 1048 S  0.0  0.3   0:00.00 startx            
  23. 2224 haldaemo  20   0  5084 1396 1040 S  0.0  0.3   0:03.16 hald               
  24. 7641 swl       20   0  2988 1312 1072 S  0.0  0.3   0:00.02 gam_server  
复制代码
  1. $ less /etc/X11/xorg.conf
  2. Section "Files"
  3.         FontPath        "/usr/share/fonts/X11/misc"
  4.         FontPath    "/usr/share/fonts/X11/cyrillic"
  5.         FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
  6.         FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
  7.         FontPath        "/usr/share/fonts/X11/Type1"
  8.         FontPath        "/usr/share/fonts/X11/100dpi"
  9.         FontPath        "/usr/share/fonts/X11/75dpi"
  10.         FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
  11. EndSection
  12. Section "InputDevice"
  13.     Identifier    "Generic Keyboard"
  14.     Driver        "kbd"
  15.     Option        "XkbRules"    "xorg"
  16.     Option        "XkbModel"    "pc104"
  17.     Option        "XkbLayout"    "us"
  18. EndSection
  19. Section "InputDevice"
  20.     Identifier    "Configured Mouse"
  21.     Driver        "mouse"
  22.     Option        "Device"    "/dev/input/mice"
  23.     Option        "Emulate3Buttons"    "true"
  24. EndSection
  25. Section "Device"
  26.     Identifier    "Configured Video Device"
  27.     Driver    "intel"
  28.     #Option "AccelMethod" "EXA"
  29.     #Option "ExaNoComposite" "true"
  30.     #Option "MigrationHeuristic" "greedy"
  31.     Option "AccelMethod" "XAA"
  32.     Option "XAANoOffscreenPixmaps" "true"
  33.     Option "DRI" "true"
  34. EndSection
  35. Section "DRI"
  36.     Mode 0666
  37. EndSection
  38. Section "Monitor"
  39.     Identifier    "Configured Monitor"
  40. EndSection
  41. Section "Screen"
  42.     Identifier    "Default Screen"
  43.     Monitor        "Configured Monitor"
  44. EndSection
  45. Section "ServerFlags"
  46.         Option "AIGLX" "off"
  47. EndSection
复制代码
  1. $ less /etc/environment
  2. LANG=en_US.UTF-8
  3. LC_CTYPE=zh_CN.UTF-8
  4. XMODIFIERS=@im=fcitx
  5. #INTEL_BATCH=1
  6. MOZ_DISABLE_PANGO=1
复制代码

另外就是听歌的时候用alsa的话CPU占用就特别高,播放器进程总是占25%左右;用oss就几乎可以忽略不计。这要怎么办呢?
  1. $ dpkg -l alsa*
  2. Desired=Unknown/Install/Remove/Purge/Hold
  3. | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
  4. |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
  5. ||/ Name           Version        Description
  6. +++-==============-==============-============================================
  7. un  alsa           <none>         (no description available)
  8. ii  alsa-base      1.0.16-1.1     ALSA driver configuration files
  9. rc  alsa-oss       1.0.15-1       ALSA wrapper for OSS applications
  10. ii  alsa-utils     1.0.16-1       ALSA utilities
复制代码
发表于 2008-6-21 09:26:07 | 显示全部楼层
支持oss,其余的参考wine慢的原因(可能在字体上有问题,运行xfontsel看看会不会慢)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-22 15:20:23 | 显示全部楼层
现在已经把/usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE里面有 GBK 字样的段全部注释掉了
请问xfontsel怎么用呢?该选择哪个字体?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表