使用ATI Rage XL从Centos3升级到Centos5后出现X11性能问题

将电脑从Centos3升级到Centos5后,执行大量滚动操作的应用程序受到了很高的性能影响。 top告诉我,X正在使用大量的CPU,这是以前没有发生。 该机器有一个8MB的ATI Rage XL,而X则使用ati驱动程序,因为在Linux上没有专用的ATI驱动程序。

xorg.conf:

 Section "Device" Identifier "Videocard0" Driver "ati" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "1024x768" "800x600" "640x480" EndSubSection EndSection Section "DRI" Group 0 Mode 0666 EndSection 

仍然安装有Centos3的类似机器能够在X服务器上启动DRI,而不是这个CentOS5机器的Xorg.0.log:

 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed [drm] failed to load kernel module "mach64" (II) ATI(0): [drm] drmOpen failed (EE) ATI(0): [dri] DRIScreenInit Failed (II) ATI(0): Largest offscreen areas (with overlaps): (II) ATI(0): 1024 x 1279 rectangle at 0,768 (II) ATI(0): 768 x 1280 rectangle at 0,768 (II) ATI(0): Using XFree86 Acceleration Architecture (XAA) Screen to screen bit blits Solid filled rectangles 8x8 mono pattern filled rectangles Indirect CPU to Screen color expansion Solid Lines Offscreen Pixmaps Setting up tile and stipple cache: 32 128x128 slots 10 256x256 slots (==) ATI(0): Backing store disabled (==) ATI(0): Silken mouse enabled (II) ATI(0): Direct rendering disabled (==) RandR enabled 

我也尝试使用EXA而不是XAA并设置:

 Option "AccelMethod" "XAA" Option "XAANoOffscreenPixmaps" "true" 

uname -a

 Linux sir5.erg.inpe.br 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:20:55 EDT 2009 i686 i686 i386 GNU/Linux 

rpm -qa | grep xorg-x11-server

 xorg-x11-server-utils-7.1-4.fc6 xorg-x11-server-sdk-1.1.1-48.52.el5 xorg-x11-server-Xvfb-1.1.1-48.52.el5 xorg-x11-server-Xnest-1.1.1-48.52.el5 xorg-x11-server-Xorg-1.1.1-48.52.el5 

使用build议的Option "AIGLX" "true"时,drmOpenDevice错误仍然存​​在。

在CentOS 5中,我看不到DRI驱动程序比ATI Rage 128老,所以ATI驱动程序可能在很大程度上是不被接受的。 您可以尝试使用VESA驱动程序,并查看该卡是否得到了更好的支持。

尝试添加下面到您的xorg.conf:

 Section "ServerFlags" Option "AIGLX" "true" EndSection 

某些ATI显卡需要专有的驱动程序,您可以从AMD网站下载。 很多时候,这意味着X的性能非常低,直到你安装了驱动程序。

每次更新内核时,您还需要升级驱动程序。