|
|
我的内存只有512MB,swap 1G,可是xorg和iceweasel怎么内存占用这么高,开上一会儿,swap就能用掉500MB。显卡是intel915。
iceweasel没有装java插件,flash插件是官方的10.0 b218,平时都是禁用的;扩展只启用了ABP和ForecastFox。
源是testing,只有iceweasel是从unstable源安装的。
大家能帮忙看看吗?还需要提供那些信息呢?
- iceweasel 3.0~rc2-1
- xserver-xorg 1:7.3+10
- xserver-xorg-video-intel 2:2.3.1-1
复制代码- $ top
- top - 03:00:47 up 18:01, 3 users, load average: 0.06, 0.14, 0.13
- Tasks: 72 total, 2 running, 67 sleeping, 2 stopped, 1 zombie
- 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
- PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
- 8352 swl 20 0 194m 71m 23m S 0.0 14.3 0:09.95 xulrunner-stub
- 8221 root 20 0 71456 39m 21m S 0.0 8.0 0:08.46 synaptic
- 7593 root 20 0 287m 24m 9076 S 0.7 5.0 0:35.82 Xorg
- 7832 swl 20 0 101m 21m 11m R 0.0 4.3 0:01.26 xfce4-terminal
- 7636 swl 20 0 35844 19m 1888 S 0.0 4.0 0:01.96 fcitx
- 7639 swl 20 0 100m 19m 12m S 0.0 3.9 0:02.81 Thunar
- 7646 swl 20 0 43432 12m 9212 S 0.0 2.6 0:00.86 xfce4-menu-plug
- 7643 swl 20 0 41184 12m 9044 S 0.0 2.5 0:02.38 xfce4-panel
- 7598 swl 20 0 40284 10m 7696 S 0.0 2.1 0:00.50 x-session-manag
- 7638 swl 20 0 39796 10m 8532 S 0.0 2.1 0:00.82 xfwm4
- 7642 swl 20 0 18392 7680 5388 S 0.0 1.5 0:00.72 xfdesktop
- 7637 swl 20 0 20724 5676 3096 S 0.0 1.1 0:00.30 xfce-mcs-manage
- 8051 swl 20 0 7548 2984 1424 S 0.0 0.6 0:00.10 bash
- 7834 swl 20 0 7548 2960 1400 S 0.0 0.6 0:00.10 bash
- 8356 swl 20 0 7208 2256 1852 S 0.0 0.4 0:00.00 gconfd-2
- 7874 root 20 0 6128 1792 1368 S 0.0 0.4 0:00.00 bash
- 7575 swl 20 0 6252 1508 1048 S 0.0 0.3 0:00.00 startx
- 2224 haldaemo 20 0 5084 1396 1040 S 0.0 0.3 0:03.16 hald
- 7641 swl 20 0 2988 1312 1072 S 0.0 0.3 0:00.02 gam_server
复制代码- $ less /etc/X11/xorg.conf
- Section "Files"
- FontPath "/usr/share/fonts/X11/misc"
- FontPath "/usr/share/fonts/X11/cyrillic"
- FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
- FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
- FontPath "/usr/share/fonts/X11/Type1"
- FontPath "/usr/share/fonts/X11/100dpi"
- FontPath "/usr/share/fonts/X11/75dpi"
- FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
- EndSection
- Section "InputDevice"
- Identifier "Generic Keyboard"
- Driver "kbd"
- Option "XkbRules" "xorg"
- Option "XkbModel" "pc104"
- Option "XkbLayout" "us"
- EndSection
- Section "InputDevice"
- Identifier "Configured Mouse"
- Driver "mouse"
- Option "Device" "/dev/input/mice"
- Option "Emulate3Buttons" "true"
- EndSection
- Section "Device"
- Identifier "Configured Video Device"
- Driver "intel"
- #Option "AccelMethod" "EXA"
- #Option "ExaNoComposite" "true"
- #Option "MigrationHeuristic" "greedy"
- Option "AccelMethod" "XAA"
- Option "XAANoOffscreenPixmaps" "true"
- Option "DRI" "true"
- EndSection
- Section "DRI"
- Mode 0666
- EndSection
- Section "Monitor"
- Identifier "Configured Monitor"
- EndSection
- Section "Screen"
- Identifier "Default Screen"
- Monitor "Configured Monitor"
- EndSection
- Section "ServerFlags"
- Option "AIGLX" "off"
- EndSection
复制代码- $ less /etc/environment
- LANG=en_US.UTF-8
- LC_CTYPE=zh_CN.UTF-8
- XMODIFIERS=@im=fcitx
- #INTEL_BATCH=1
- MOZ_DISABLE_PANGO=1
复制代码
另外就是听歌的时候用alsa的话CPU占用就特别高,播放器进程总是占25%左右;用oss就几乎可以忽略不计。这要怎么办呢?- $ dpkg -l alsa*
- Desired=Unknown/Install/Remove/Purge/Hold
- | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
- |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
- ||/ Name Version Description
- +++-==============-==============-============================================
- un alsa <none> (no description available)
- ii alsa-base 1.0.16-1.1 ALSA driver configuration files
- rc alsa-oss 1.0.15-1 ALSA wrapper for OSS applications
- ii alsa-utils 1.0.16-1 ALSA utilities
复制代码 |
|