Skip to contentSkip to conversation

glmark2: high CPU usage - DRI3 & modeset

DISCUSSION poma 2 participants 3 messages Apr 7, 2016 2 messages not in the archive

lore
Share & tools
lore

poma

author
#0 lore raw
$ glmark2
=======================================================
    glmark2 2014.03
=======================================================
    OpenGL Information
    GL_VENDOR:     nouveau
    GL_RENDERER:   Gallium 0.4 on NV98
    GL_VERSION:    3.0 Mesa 11.2.0
=======================================================

/etc/X11/xorg.conf.d/nouveau.conf
Section "Device"
Identifier "gpu0"
Driver "nouveau"
EndSection

$ ps -C glmark2 -o cmd,pcpu
CMD                         %CPU
glmark2                     16.2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/etc/X11/xorg.conf.d/nouveau.conf
Section "Device"

  Identifier  "gpu0"
  Driver      "nouveau"
  Option      "DRI" "3"

EndSection

$ ps -C glmark2 -o cmd,pcpu
CMD                         %CPU
glmark2                     86.4

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/etc/X11/xorg.conf.d/modeset.conf
Section "Device"
Identifier "gpu0"
Driver "modesetting"
EndSection

$ ps -C glmark2 -o cmd,pcpu
CMD                         %CPU
glmark2                     94.5

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw
In reply to a message not in the archive

did the test result changed in any way? Maybe the DRI2 run was vsynced and the DRI3 not?
Nouveau has a pretty high cpu usage in general, because it usually busy waits on fences (I think? not sure where it was exactly that nouveau is busy waiting)

Quoted 46 lines

poma <[email protected]> hat am 7. April 2016 um 13:56 geschrieben:

$ glmark2
=======================================================
    glmark2 2014.03
=======================================================
    OpenGL Information
    GL_VENDOR:     nouveau
    GL_RENDERER:   Gallium 0.4 on NV98
    GL_VERSION:    3.0 Mesa 11.2.0
=======================================================

/etc/X11/xorg.conf.d/nouveau.conf
Section "Device"
Identifier "gpu0"
Driver "nouveau"
EndSection

$ ps -C glmark2 -o cmd,pcpu
CMD                         %CPU
glmark2                     16.2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/etc/X11/xorg.conf.d/nouveau.conf
Section "Device"

  Identifier  "gpu0"
  Driver      "nouveau"
  Option      "DRI" "3"

EndSection

$ ps -C glmark2 -o cmd,pcpu
CMD                         %CPU
glmark2                     86.4

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/etc/X11/xorg.conf.d/modeset.conf
Section "Device"
Identifier "gpu0"
Driver "modesetting"
EndSection

Quoted 8 lines
$ ps -C glmark2 -o cmd,pcpu
CMD                         %CPU
glmark2                     94.5

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

author
#4 lore raw
In reply to a message not in the archive
Quoted 55 lines · Karol Herbst

did the test result changed in any way? Maybe the DRI2 run was vsynced and the DRI3 not?
Nouveau has a pretty high cpu usage in general, because it usually busy waits on fences (I think? not sure where it was exactly that nouveau is busy waiting)

Quoted 50 lines

poma <[email protected]> hat am 7. April 2016 um 13:56 geschrieben:

$ glmark2
=======================================================
    glmark2 2014.03
=======================================================
    OpenGL Information
    GL_VENDOR:     nouveau
    GL_RENDERER:   Gallium 0.4 on NV98
    GL_VERSION:    3.0 Mesa 11.2.0
=======================================================

/etc/X11/xorg.conf.d/nouveau.conf
Section "Device"
Identifier "gpu0"
Driver "nouveau"
EndSection

$ ps -C glmark2 -o cmd,pcpu
CMD                         %CPU
glmark2                     16.2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/etc/X11/xorg.conf.d/nouveau.conf
Section "Device"

  Identifier  "gpu0"
  Driver      "nouveau"
  Option      "DRI" "3"

EndSection

$ ps -C glmark2 -o cmd,pcpu
CMD                         %CPU
glmark2                     86.4

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/etc/X11/xorg.conf.d/modeset.conf
Section "Device"
Identifier "gpu0"
Driver "modesetting"
EndSection

$ ps -C glmark2 -o cmd,pcpu
CMD                         %CPU
glmark2                     94.5

'vblank_mode=0 glmark2' makes no difference.

A -fence- as a sync object?
https://www.opengl.org/wiki/Sync_Object#Fence

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau