How can I tell, how well my graphics card performs on Ubuntu?

56,986

Solution 1

Benchmark your GPU

1. Mesa Utils

Install the following package:

sudo apt-get install mesa-utils

And then start a benchmark test from the commandline

glxgears

With a modern GPU you should achieve frame rates (FPS = Frames per second) of more than 5.000. The is limited to the refresh rate and resolution of the monitor!

Invoking glxgears with vblank_mode=0 tells the graphic card to ignore the refresh rate of your monitor and just try to reach the maximux fps it's capable off.

vblank_mode=0 glxgears

2. Open GL

Run the OpenGL benchmark test with

sudo apt-get install glmark2

and run the test with

glmark2 --fullscreen --show-all-options

The score is adapted for modern and fast GPUs. Note that the fps score depends on the resolution you set during the test!

Afterwards the result can be compared on e.g. this benchmark page.

3. Benchmark Unigine

A 3rd party benchmark tool is Valley. The free basic edition is nice to test your hardware. There are different scenarios you can choose. I recommend the valley benchmark test. Download it and change the execute permission using

chmod +x Unigine_Valley-1.0.run

and run the installation (no root permission necessary)

./Unigine_Valley-1.0.run

Start the benchmark engine with

cd ./Unigine_Valley-1.0 && ./valley &

Don't forget to click on the benchmark widget on the top left corner.

Youtube Problems

The most common problem with youtube videos is the lack of a fast internet connection.

Solution 2

Visual inspection when running the real application(s)

Play some video with a 'a lot of motion' in it and see with your own eyes, if the quality is good (no tearing, no lagging, no stuttering etc). Run your other programs (if any) that need good performance of the graphics.

Check also the CPU load during the test (for example with htop).

If you are satisfied, fine :-)

Otherwise look for alternatives,

  • tweak the application program (video player or other program)
  • a lighter application program,
  • lower resolution of the screen
  • a better graphics driver
  • another desktop environment with a lighter footprint (LXDE of Lubuntu and XFCE of Xubuntu are lighter than standard Ubuntu)
  • another graphics card
  • another CPU
  • ...
Share:
56,986

Related videos on Youtube

Minix
Author by

Minix

Coming from Germany, identifiable by my love, of, commas.

Updated on September 18, 2022

Comments

  • Minix
    Minix almost 2 years

    I have a pretty beefy graphics card with 4GB of memory etc. But I can see the YouTube videos stutter sometimes and have a poor framerate (although none get dropped).

    I feel like with a decent graphics card this shouldn't happen. Is there a way to make sure the gpu I have works properly?

    Edit: I'm confident, that the internet connection is not the problem, since the "video stats for nerds" of the videos I am looking at show 0 dropped frames and perfect buffer health.

    Edit2: XUbuntu 16.04

    $ lshw
    *-display
                 Beschreibung: VGA compatible controller
                 Produkt: NVIDIA Corporation
                 Hersteller: NVIDIA Corporation
                 Physische ID: 0
                 Bus-Informationen: pci@0000:65:00.0
                 Version: a1
                 Breite: 64 bits
                 Takt: 33MHz
                 Fähigkeiten: pm msi pciexpress vga_controller bus_master cap_list rom
                 Konfiguration: driver=nouveau latency=0
                 Ressourcen: irq:43 memory:d7000000-d7ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:b000(Größe=128) memory:c0000-dffff
    
    • Admin
      Admin about 6 years
      Please add additional informations of your graphic card, ubuntu version, ...
    • Admin
      Admin about 6 years
      probably using just the cpu chipset and not the graphics card?
    • Admin
      Admin about 6 years
      @damadam That's what I'm thinking, although I feel like 1080p should be manageable with an i7.
    • Admin
      Admin about 6 years
      @karel: this question conerns GPU benchmarking ant the other benchmark in gerneral
    • Admin
      Admin about 3 years
      For Linux, in many cases this problem is because of GPU driver is misconfigured. Check the X system log to make sure the driver is NVIDIA and not nouveau
  • Minix
    Minix about 6 years
    glxgears is capped to the refresh rate of the monitor, which I think is easily achievable with any recent cpu. What values should I expect for glmark2? Are there more resources? Please also see my edit.
  • kukulo
    kukulo about 6 years
    use vblank_mode=0 glxgears command.
  • abu_bua
    abu_bua about 6 years
    @kukulo: thanks, i put your comment into my edit
  • Minix
    Minix over 5 years
    vblank_mode=0 doesn't change anything for me and glmark2 crashes with a segfault
  • Todor
    Todor over 2 years
    __GL_SYNC_TO_VBLANK=0 glxgears for nvidia drivers stackoverflow.com/questions/17196117/…