LinuxSir.cn,穿越时空的Linuxsir!

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

现在xorg常常100%,一般是开虚拟终端的时候,怀疑是升级造成的

[复制链接]
发表于 2008-3-1 14:30:48 | 显示全部楼层 |阅读模式
现在xorg常常100%,一般是开虚拟终端的时候,怀疑是升级造成的

intel 965主板 X3100卡,用intel驱动(xf86-video-intel)

这次升级之前就发现了,上次的升级忘记是在什么时候,有一小段时间没有用linux。

用的是fluxbox,开urxvt或者xterm这些终端的时候出现10秒钟左右的100% cpu占用,占用者是X。 没有调试信息,也不知道是怎么回事。

机器买来的时候新装的系统是没有这个问题的,中间升级了多少次不记得了。

是Dell的inspiron 1420. T5450。 X3100

下面的我系统的一些信息。

hwd -x

  1. Processor 1: Intel(R) Core(TM)2 Duo CPU     T5450  @ 1.66GHz 1662MHz, 2048 KB Cache

  2.   Sound(a)   : 82801H ICH8 Family HD Audio Controller module: snd-hda-intel
  3.   Video      : Mobile GM965/GL960 Integrated Graphics Controller server: Xorg (intel)  
  4.   Driver     : xf86-video-intel   module: -
  5.   Monitor    : Generic Monitor  H: 28.0-96.0kHz V: 50.0-75.0Hz
  6.   Mouse      : PS/2 Mouse xtype: PS2 device: /dev/psaux
  7.   HDD        : 82801HBM/HEM ICH8M/ICH8M-E SATA IDE Controller module: ata_piix
  8.   USB        : 82801H ICH8 Family USB2 EHCI Controller #1 module: ehci_hcd
  9.   USB2       : 82801H ICH8 Family USB2 EHCI Controller #2 module: ehci_hcd
  10.   SD Slot    : R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter module: sdhci

  11.   Ethernet   : NetLink BCM5906M Fast Ethernet PCI Express module: tg3
  12.   Network    : PRO/Wireless 3945ABG Network Connection module: iwl3945
  13.   Bluetooth  : Dell Computer Corp. Wireless 355 Bluetooth
  14.   Firewire   : R5C832 IEEE 1394 Controller  module: firewire_ohci

  15.   Menu       : Main menu: hwd
  16.   All        : Detect all hardwares: hwd -e
  17.   X sample   : Generate X sample: hwd -x

复制代码


下面是lspci

  1. [root@nb ]# lspci
  2. 00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controlle
  3. r Hub (rev 0c)
  4. 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrat
  5. ed Graphics Controller (rev 0c)
  6. 00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Grap
  7. hics Controller (rev 0c)
  8. 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contolle
  9. r #4 (rev 02)
  10. 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controll
  11. er #5 (rev 02)
  12. 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Control
  13. ler #2 (rev 02)
  14. 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller
  15. (rev 02)
  16. 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (r
  17. ev 02)
  18. 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (r
  19. ev 02)
  20. 00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (r
  21. ev 02)
  22. 00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (r
  23. ev 02)
  24. 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controll
  25. er #1 (rev 02)
  26. 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controll
  27. er #2 (rev 02)
  28. 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controll
  29. er #3 (rev 02)
  30. 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Control
  31. ler #1 (rev 02)
  32. 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
  33. 00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller
  34. (rev 02)
  35. 00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Contro
  36. ller (rev 02)
  37. 00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE C
  38. ontroller (rev 02)
  39. 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
  40. 03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
  41. 03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapte
  42. r (rev 22)
  43. 03:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (re
  44. v 12)
  45. 03:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
  46. 09:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5906M Fast Ethernet
  47. PCI Express (rev 02)
  48. 0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Conne
  49. ction (rev 02)

复制代码



uname -a
[root@nb ]# uname -a
Linux nb.algo-field.com 2.6.24-ARCH #1 SMP PREEMPT Wed Feb 27 01:15:32 CET 2008 i686 Intel(R) Core(TM)2 Duo CPU T5450 @ 1.66GHz GenuineIntel GNU/Linux
发表于 2008-3-1 16:33:22 | 显示全部楼层

修改XLC_LOCAL,解决部分程序开启速度超卡超死

修改/usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE文件。。删除包含GBK,和GB2312的段落
修改后的内容如下

  1. # XFree86 NLS for Chinese locale zh_CN.UTF-8
  2. # Modified from xc/nls/XLC_LOCALE/en_US.UTF-8
  3. # by James Su
  4. #
  5. # $XdotOrg: lib/X11/nls/zh_CN.UTF-8/XLC_LOCALE.pre,v 1.3 2004-10-18 17:29:03 eich Exp $
  6. # $XFree86$

  7. #
  8. # XLC_FONTSET category
  9. #
  10. XLC_FONTSET

  11. on_demand_loading True

  12. object_name generic

  13. # We leave the legacy encodings in for the moment, because we don't
  14. # have that many ISO10646 fonts yet.
  15. # fs0 class (7 bit ASCII)
  16. fs0 {
  17. charset {
  18. name ISO8859-1:GL
  19. }
  20. font {
  21. primary ISO8859-1:GL
  22. vertical_rotate all
  23. }
  24. }

  25. # fs1 class (ISO8859 families)
  26. fs1 {
  27. charset {
  28. name ISO8859-1:GR
  29. }
  30. font {
  31. primary ISO8859-1:GR
  32. }
  33. }

  34. # fs4 class
  35. fs4 {
  36. charset {
  37. name ISO10646-1
  38. }
  39. font {
  40. primary ISO10646-1
  41. }
  42. }
  43. END XLC_FONTSET

  44. #
  45. # XLC_XLOCALE category
  46. #
  47. XLC_XLOCALE

  48. encoding_name UTF-8
  49. mb_cur_max 6
  50. state_depend_encoding False

  51. # cs0 class
  52. cs0 {
  53. side GL:Default
  54. length 1
  55. ct_encoding ISO8859-1:GL
  56. }

  57. # cs1 class
  58. cs1 {
  59. side GR:Default
  60. length 1
  61. ct_encoding ISO8859-1:GR
  62. }


  63. # cs3 class
  64. cs3 {
  65. side none
  66. ct_encoding ISO10646-1
  67. }

  68. END XLC_XLOCALE
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-3-1 16:38:24 | 显示全部楼层
或者直接删了/usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE这个文件。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-2 22:47:19 | 显示全部楼层
非常感谢lufeng369的回复,我试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-28 09:24:53 | 显示全部楼层
删除了,非常管用。
不过貌似每次升级xorg都要删除。

这个是bug吗?是否需要举报一下?
回复 支持 反对

使用道具 举报

发表于 2008-4-28 22:51:16 | 显示全部楼层
这个我也刚遇到,哈哈。
回复 支持 反对

使用道具 举报

发表于 2008-4-29 14:57:39 | 显示全部楼层
X的字体机制造成的,其实不能算bug。不要用gtk1程序是最好的,使用zh_CN.UTF-8的locale就有这样的情况,X会寻找GBK编码的字体。非常缓慢,上面方法就是让X不找这些字体了
回复 支持 反对

使用道具 举报

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

本版积分规则

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