[SOLVED] Slowish 3D (glxgears 190 FPS) and /proc/mtrr

Discussion in 'Linux' started by imarune, Sep 30, 2008.

  1. imarune

    imarune

    Joined:
    Sep 3, 2008
    Messages:
    27
    Likes Received:
    0
    Location:
    Lyon France
    Hi all,

    I have installed Fedora 9 and a custom kernel (2.6.27-rc5) on my Aspire one. I saw recently in a thread that the A One is able to do more than 400 FPS with glxgears under Linpus. On my box, i had only 190 FPS...

    It was not really a drawback (I don't use 3D), but it was just ... annoying, because I thought that something was misconfigured in my kernel.

    Code:
    # dmesg | grep mtrr
    [   12.320615] mtrr: no more MTRRs available
    
    # cat /proc/mtrr
    reg00: base=0xfffe0000 (4095MB), size= 128KB: write-protect, count=1
    reg01: base=0xfffc0000 (4095MB), size= 128KB: uncachable, count=1
    reg02: base=0x00000000 (   0MB), size=1024MB: write-back, count=1
    reg03: base=0x40000000 (1024MB), size= 512MB: write-back, count=1
    reg04: base=0x5f800000 (1528MB), size=   8MB: uncachable, count=1
    reg05: base=0x5f600000 (1526MB), size=   2MB: uncachable, count=1
    reg06: base=0x5f500000 (1525MB), size=   1MB: uncachable, count=1
    reg07: base=0x00000000 (   0MB), size= 128KB: uncachable, count=1
    
    # glxgears
    943 frames in 5.0 seconds = 188.548 FPS
    963 frames in 5.0 seconds = 192.552 FPS
    965 frames in 5.0 seconds = 192.673 FPS
    
    
    I found a dirty workaround (reconfiguring mtrr) :
    Code:
    # lspci -v 
    ...
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    ...
    Memory at 60000000 (32-bit, prefetchable) [size=256M]
    ...
    
    # cat /etc/rc.d/rc.local
    ...
    echo "disable=7" >/proc/mtrr
    echo "disable=6" >/proc/mtrr
    echo "disable=5" >/proc/mtrr
    echo "disable=4" >/proc/mtrr
    echo "base=0x60000000 size=0x10000000 type=write-combining" > /proc/mtrr
    
    # dmesg | grep mtrr
    #
    
    # cat /proc/mtrr
    reg00: base=0xfffe0000 (4095MB), size= 128KB: write-protect, count=1
    reg01: base=0xfffc0000 (4095MB), size= 128KB: uncachable, count=1
    reg02: base=0x00000000 (   0MB), size=1024MB: write-back, count=1
    reg03: base=0x40000000 (1024MB), size= 512MB: write-back, count=1
    reg04: base=0x60000000 (1536MB), size= 256MB: write-combining, count=2
    
    # glxgears
    2663 frames in 5.0 seconds = 532.479 FPS
    2737 frames in 5.0 seconds = 547.330 FPS
    2737 frames in 5.0 seconds = 547.251 FPS
    
    
    But I think that the real solution is in the kernel.

    So, can somebody give me the result of "cat /proc/mtrr" on a linpus distro ? (I am also interested by the same command on a Aspire One with 1,5 Go RAM, as I suspect also my memory extension)
     
    imarune, Sep 30, 2008
    #1
  2. imarune

    kapinouwi

    Joined:
    Aug 15, 2008
    Messages:
    183
    Likes Received:
    0
    Location:
    france
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    mine with glxgears


    not bad more 1100 fps ;)
     
    kapinouwi, Sep 30, 2008
    #2
  3. imarune

    imarune

    Joined:
    Sep 3, 2008
    Messages:
    27
    Likes Received:
    0
    Location:
    Lyon France
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    Yes, not bad at all; you probably use INTEL_BATCH variable...

    You have a genuine linpus distro ? (with 512 Mo or 1,5 Go RAM ?)

    ... and can you give me the result of "cat /proc/mtrr" ?
     
    imarune, Sep 30, 2008
    #3
  4. imarune

    kapinouwi

    Joined:
    Aug 15, 2008
    Messages:
    183
    Likes Received:
    0
    Location:
    france
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    hey imarune tu parles français il me semble! ;)

    dans le doute...

    i dont touch the intel bach variable!

    just use the acer linpus with 1.5 gb ram the only thing i made is a yum update mesa-libGL (i'm not sure)
     
    kapinouwi, Sep 30, 2008
    #4
  5. imarune

    imarune

    Joined:
    Sep 3, 2008
    Messages:
    27
    Likes Received:
    0
    Location:
    Lyon France
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    Désolé, je n'avais pas fait attention à ta signature et à "Location: France" :D

    ... Et je ne comprends rien à tes perfs en 3D avec le paramétrage mtrr que tu as :shock: . Les gars de chez Linpus sont vraiment très forts (ou alors ils ont bricolé glxgears :lol: )

    Je continue en anglais (même si je ne suis pas très bon), puisqu'on est sur un forum en anglais ;)

    Thanks! Please, can you give me the result of :
    $ dmesg | grep mtrr
    $ /sbin/lsmod | egrep i[8-9][1-3]
    $ yum list *mesa*

    (I am very surprised : if somebody else can confirm /proc/mtrr with 512 MB RAM !?!)

    PS : for INTEL_BATCH, can you give me the result of " echo $INTEL_BATCH" ?
     
    imarune, Sep 30, 2008
    #5
  6. imarune

    kapinouwi

    Joined:
    Aug 15, 2008
    Messages:
    183
    Likes Received:
    0
    Location:
    france
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    (i disable the swap on my AAO) (ça a peut être son importance???)

    go (désolé certaines commandes ne m'ont rien renvoyé)

    i rewrite "/sbin/lsmod | egrep i[8-9][1-3]" correctly and no more!
     
    kapinouwi, Sep 30, 2008
    #6
  7. imarune

    woogal

    Joined:
    Sep 1, 2008
    Messages:
    36
    Likes Received:
    0
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    /proc/mtrr with 512MB -

    Code:
    reg00: base=0xfffe0000 (4095MB), size= 128KB: write-protect, count=1
    reg01: base=0xfffc0000 (4095MB), size= 128KB: uncachable, count=1
    reg02: base=0x00000000 (   0MB), size= 256MB: write-back, count=1
    reg03: base=0x10000000 ( 256MB), size= 256MB: write-back, count=1
    reg04: base=0x1f800000 ( 504MB), size=   8MB: uncachable, count=1
    reg05: base=0x1f600000 ( 502MB), size=   2MB: uncachable, count=1
    reg06: base=0x1f500000 ( 501MB), size=   1MB: uncachable, count=1
    reg07: base=0x00000000 (   0MB), size= 128KB: uncachable, count=1
    
     
    woogal, Sep 30, 2008
    #7
  8. imarune

    imarune

    Joined:
    Sep 3, 2008
    Messages:
    27
    Likes Received:
    0
    Location:
    Lyon France
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    I don't think, but l'll try it.

    Merci! (pour le lsmod, le driver que je recherchai (i810|i830|i915) est probablement inclus directement dans le noyau)

    Pour mesa, ta version est une 7.0, alors que j'ai une 7.1 : je comprends de moins en moins :?:

    Thanks! And I guess that you have "no more MTRRs available" in your dmesg's output, as all the 8 slots are written...

    OK, I think I'll have to reinstall Linpus to investigate deeply into the linpus hack (temporarily, of course :lol: )
     
    imarune, Sep 30, 2008
    #8
  9. imarune

    kapinouwi

    Joined:
    Aug 15, 2008
    Messages:
    183
    Likes Received:
    0
    Location:
    france
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    good luck! ;)
     
    kapinouwi, Sep 30, 2008
    #9
  10. imarune

    blackhawk

    Joined:
    Aug 19, 2008
    Messages:
    122
    Likes Received:
    0
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    It's a good idea to install Linpus on USB disk.

    Have a plan to install Fedora 9 on my AA1 too. But my self compiled kernel still in progress. Bootsplash, aufs, coretemp, UDMA66 patch applied. I can control the wireless LED using ath5k also. Please wait, I will share it!
     
    blackhawk, Sep 30, 2008
    #10
  11. imarune

    blackhawk

    Joined:
    Aug 19, 2008
    Messages:
    122
    Likes Received:
    0
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    It's a good idea to install Linpus on USB disk.

    Have a plan to install Fedora 9 on my AA1 too. But my self compiled kernel still in progress. Bootsplash, aufs, coretemp, UDMA66 patch applied. I can control the wireless LED using ath5k also. Please wait, I will share it!
     
    blackhawk, Sep 30, 2008
    #11
  12. imarune

    cpchan

    Joined:
    Sep 22, 2008
    Messages:
    201
    Likes Received:
    0
    cpchan, Oct 1, 2008
    #12
  13. imarune

    imarune

    Joined:
    Sep 3, 2008
    Messages:
    27
    Likes Received:
    0
    Location:
    Lyon France
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    Thanks, but I already fixed my mtrr (see second block in my first post); and there's no noticeable difference with your way (reg04 uncachable -> reg04 write-back).

    My question was more about the workaround in Linpus distro for the mtrr's lack; and as I saw when I reinstalled Linpus, they probably found a dirty workaround (enabling early vesafb? hacking i915 kernel driver? hacking Xorg sources?)

    I have reinstalled my Fedora 9, and I'll stay with the mtrr tweaking :D

    BTW, INTEL_BATCH does nothing with my xorg/mesa version (intel 2.3.2, server 1.5, mesa 7.1); it's probably disabled in recent releases...
     
    imarune, Oct 2, 2008
    #13
  14. imarune

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    Re: Slowish 3D (glxgears 190 FPS) and /proc/mtrr

    Which kernel version are you using? FWIW, I wrote to the author of the modules for the JMicron multicard reader asking about an update for more recent kernels. Here's my question and his answer:

     
    RockDoctor, Oct 2, 2008
    #14
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.