Skip to content

Nvidia GPU Performance

Hello all, I have a notebook with a Intel and Nvidia GPU. The Nvidia chip is a GTX1060 with 6GB memory. I ran a unigine heaven benchmark (version 4.0 using optirun and / or primusrun) and got a score of 1509. However when I run the benchmark under Windows, I get 2700. I know that Nvidia GPUs are not well supported, however is there a way I can improve my performance under Linux?

Ah: I ran the benchmark using the following kernel and nvidia versions: nvidia 387.34-20 linux 4.14.14-1 I've also tried using the lts version, however with a even worse result.

any help is appreciated...

10 points11 comments
Open on Reddit
About this post
Posted
Archived
Score
10 · 100% up
Kind
Text
ID
7tcewt

Author

2
posts
13
comments
0
media
View profile

11 comments

Try out nvidia-xrun. It opens a new Xserver, running with NVIDIA GPU. Set the registrydwords to performance, and disable power management, and you'll get performance with OpenGL on linux, better than DirectX on Windows... I say that from personal experience, been using nvidia-xrun for almost half a year.

6 points

I tried it and it looks promising, now I'm much closer to the windows result. I will do some fine-tuning... Thank you for the suggestion!

1 points

nvidia-xrun runs perfect! Thanks /u/d3a7hr0w for the suggestion!

Results (using Unigine benchmark 4.0): Arch 4.14.15-1-ARCH, wayland: 2364. Windows 10, OpenGL: 2325. Arch 4.14.15-1-ARCH, i3wm: 2022.

5 points

I'm glad it works for you! Try setting these options to nvidia in /etc/bumblebee/xorg.conf.nvidia

Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; 
PowerMizerDefaultAC=0x1"
Option "Coolbits" "24"
Option "Interactive" "0"

You might also want to type these in terminal, before you start your next benchmark test:

export __GL_THREADED_OPTIMIZATIONS=1
export GPU_MAX_HEAP_SIZE="100"
export GPU_MAX_ALLOC_PERCENT="100"
2 points

You can use PRIME offloading, but that will run everything on the dedicated GPU, not just the games.

4 points

i broke my x-config while trying, so I switched back to my old configuration. I also think that any offloading has to be slower than the native solution. However I also tried nividia-xrun, see below.

2 points

I think in the Windows version of the Unigine benchmarks you can switch between Direct3D and OpenGL in that start-up window it shows. Did you take a look at the scores for that in Windows?

I never compared this myself, but this might be interesting to look at. The engine might not work as well in the OpenGL version of its code. If you find out that the Windows score drops as well when you switch away from Direct3D, you'd know that nothing is wrong on the Linux side. I don't have Windows installed at the moment so can't check this idea myself.

Internally, the NVIDIA driver is using the same code on both Windows and Linux. It's the best performing OpenGL driver there is. The way I understand things, the rest of the graphical system on Linux being weird and not well supported shouldn't matter much for the benchmark scores.

1 points

You are right, Windows is using ActiveX per default. I've switched it to OpenGL and the score came down from around 2700 to 2300. I've also tried nvidia-xrun, see above.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.