• 24
  • Apr

两个月前我撰文写了:Linux的图形革命:KMS, DRI2, GEM,結果到现在我还一个都没有用上。

主要原因是Gentoo至今只有X Server 1.5.3,而KMS、DRI2这些在1.6下才能被打开。我体验过X 1.6的Overlay的,不过相当不稳定,而且Compiz的性能很差(Linux 2.6.29和Intel 2.6.3),于是就又退回来了。

不过Linux 2.6.30让我看到了高性能的希望……我可能会直接从2.6.27跳至2.6.30。

是这样的,电脑上还有一个Ubuntu 9.04,今天在这下面写文章,然后顺便玩了会。

我的显卡是Intel GMA950,早在Beryl时代,就风光无限,但是到现在,有点不行了。在Gentoo下,我是限制Intel驱动在2.6.1下,性能没问题,一升到2.6.3,就不行了。我至今没搞清楚原因。

现在在Ubuntu 9.04下也是,默认的2.6.28+Intel 2.6.3+X Server 1.6.0,性能还是相当破。问题出在哪里呢?总算给我找到了。

原来是内核模块级别的,而非X驱动。

很简单,我仅仅安装了2.6.30-rc3的内核,然后glxgear就有近8倍的提高,这一点也不夸张,因为Compiz居然也流畅地不得了,一点也不卡了!

默认在Linux 2.6.28下的glxgears只有可怜的200多分。同时Compiz特效相当卡,几乎没有使用Compiz的意义。

glxgear under 2.6.28

到了Linux 2.6.30-rc3,glxgear分数到了1500多分,Compiz自然流畅地没话说。

glxgear under 2.6.30

你可能想尝试2.6.30了,很简单,访问:http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30-rc3/

根据你的架构,把三个软件包(linux-headers两个和linux-image一个)下载下来安装即可。

体验新内核安全无痛苦,强烈建议Intel用户尝试一下该新内核,并互相之间做下交流。

届时将KMS、DRI2和GEM一起开启,喔,太期待了!就等X 1.6啰!

Tags: DRI2, GEM, Intel, KMS, Linux, Xorg.

» You can leave a comment.

1 Pingbacks

19 Comments

  1. 晕,这个提高也太明显了吧!我arch29内核+xorg1.6比之前也提高了不少!

  2. 这个1.6.0咋这么难产,至今仍然是2.6.28+1.5.3

  3. 1500 是开没开 compiz 的结果啊?

  4. our1944

    arch 升级了,性能提高明显。但是和变慢之前的驱动相比差别不是很大

  5. dhg

    很奇怪我的 FreeBSD, glxgears 才 400 多分,但是 compiz 也相当流畅。玩 openarena 和在 debian 下没差别。。。。

  6. jimogsh

    嗯,我的Nvidia集成显卡,28的内核得分已经是1500多了,应该不用着急升级了吧。
    这里上不了图,我把终端内的内容复制过来啊

    jimogsh@jimogsh-desktop:~$ uname -a
    Linux jimogsh-desktop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux
    jimogsh@jimogsh-desktop:~$ glxgears
    Running synchronized to the vertical refresh. The framerate should be
    approximately 1/153653 the monitor refresh rate.
    6771 frames in 5.0 seconds = 1354.155 FPS
    8014 frames in 5.0 seconds = 1602.458 FPS
    6810 frames in 5.0 seconds = 1361.847 FPS
    7572 frames in 5.0 seconds = 1514.370 FPS
    7961 frames in 5.0 seconds = 1592.068 FPS
    7972 frames in 5.0 seconds = 1594.295 FPS
    7913 frames in 5.0 seconds = 1582.582 FPS
    7950 frames in 5.0 seconds = 1589.900 FPS
    6825 frames in 5.0 seconds = 1364.847 FPS
    6577 frames in 5.0 seconds = 1315.293 FPS
    7901 frames in 5.0 seconds = 1580.073 FPS
    8016 frames in 5.0 seconds = 1603.121 FPS
    7844 frames in 5.0 seconds = 1568.399 FPS
    ^C

    还不错呢。

  7. jl

    我虚拟机里怎么都有1000多

  8. 跟你一样的显卡,Gentoo2.6.29+libdrm2.4.6+mesa7.4+Xserver1.6, 开启了GEM和DRI2, glxgears分数KWin开特效500,不开特效600...

    • 早上刚换了git-source-2.6.30-rc2-r8,发现效果没什么提升,就高了100而已。结果几个小时后发现rc3-r1就进portage了……

  9. ksl

    只装linux-image-2.6.30-020630rc3-generic_2.6.30-020630rc3_i386.deb就可以了么?
    我装linux-headers-2.6.30-020630rc3-generic_2.6.30-020630rc3_i386.deb,报依赖问题。。。
    linux-headers两个,那来两个,难道amd64也要用?
    我用30-r3
    22303 frames in 5.0 seconds = 4460.467 FPS
    24166 frames in 5.0 seconds = 4833.070 FPS
    23866 frames in 5.0 seconds = 4773.119 FPS
    23261 frames in 5.0 seconds = 4652.076 FPS
    23259 frames in 5.0 seconds = 4651.724 FPS
    23412 frames in 5.0 seconds = 4682.321 FPS
    22953 frames in 5.0 seconds = 4590.492 FPS
    22287 frames in 5.0 seconds = 4457.329 FPS
    24317 frames in 5.0 seconds = 4862.695 FPS
    24336 frames in 5.0 seconds = 4867.113 FPS
    22361 frames in 5.0 seconds = 4472.185 FPS
    19815 frames in 5.0 seconds = 3962.869 FPS
    21012 frames in 5.0 seconds = 4202.333 FPS
    11258 frames in 5.0 seconds = 2251.578 FPS

    05年的老笔记本了

    • 山猫

      别乱装,

      需要装的是
      linux-headers-2.6.30-020630rc3-generic_2.6.30-020630rc3_i386.deb
      linux-headers-2.6.30-020630rc3_2.6.30-020630rc3_all.deb
      linux-image-2.6.30-020630rc3-generic_2.6.30-020630rc3_i386.deb
      这三个。

      来自 Dell 的 dkms 系统需要 headers。

  10. ksl

    28-11
    10431 frames in 5.0 seconds = 2086.081 FPS
    25549 frames in 5.0 seconds = 5109.674 FPS
    26691 frames in 5.0 seconds = 5338.148 FPS
    26934 frames in 5.0 seconds = 5386.714 FPS
    25641 frames in 5.0 seconds = 5128.193 FPS
    22225 frames in 5.0 seconds = 4440.880 FPS
    17528 frames in 5.0 seconds = 3505.493 FPS
    19460 frames in 5.0 seconds = 3891.988 FPS
    24191 frames in 5.0 seconds = 4838.058 FPS
    19291 frames in 5.0 seconds = 3858.099 FPS
    20826 frames in 5.0 seconds = 4165.142 FPS
    23059 frames in 5.0 seconds = 4611.677 FPS
    好像28-11还高点。。。。。。。
    难道是那个head没装的原因?那个head是编程里面用到的把?

  11. Dig

    先用30截了1000多的图,然后改到28补了200多的?

  12. 这里的FPS值并不能用来衡量3D加速的性能好坏。Compiz不能启动的原因在于X的intel驱动和mesa,还有compiz没有配合起来。看这个:
    http://www.adamjiang.com/blog/archives/456

  13. 山猫

    现在 2.6.30-rc8 了
    http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30-rc8/

  14. nasofe

    似乎你的文章被抄袭了, google 以下关键字 nvidia 2.6.30 性能

Leave a Comment