You are not logged in.

#1 2017-01-09 21:06:45

Chef_Keeper
Member
Registered: 2015-02-27
Posts: 18

Bumblebee slow performence

Hello,

Having a laptop with 2 GPU : 1 intel and 1 nvidia geforce 750M I installed bumblebee to be able to use the nvidia GPU.
However even if it seems to work glxinfo showing intel by default and Nvidia with oprirun, I get aproximately the same performence...
Tryed with unigine, and few games.
glxgears even got better perf ~10k FPS with intel and 700 with optirun...

I followed all steps from the wiki : https://wiki.archlinux.org/index.php/bumblebee



PS: If someone could explain me why we have to install mesa ? I thought the nvidia drivers where supposed to implement the opengl specs


Cheers,
Chef_Keeper

Offline

#2 2017-01-09 23:06:13

areuz
Member
Registered: 2016-09-16
Posts: 60

Re: Bumblebee slow performence

I have a similar setup, but the only difference is that I use Primus instead of Optirun. For reference, I got a Lenovo Y510P with a 755M.
I also use 'vblank_mode=0 primusrun $command' to launch programs that I want to render with the GPU.

Notes:
- It may be a Composite Manager problem? (Like compton, etc)
- Always test with the notebook plugged in.
- Try some official game launchers like Steam (For native libraries, etc)


If I'm not a bush, I'm not no one.
Dotfiles Git

Offline

#3 2017-01-09 23:09:04

areuz
Member
Registered: 2016-09-16
Posts: 60

Re: Bumblebee slow performence

You should also post your

/etc/bumblebee/bumblebee.conf

.

A little benchmark I just did: https://i.imgur.com/2LJfTDS.jpg

Mod edit: Replaced oversized image with url. Please see the CoC regarding acceptable image sizes. -- WorMzy

Last edited by WorMzy (2017-01-12 17:44:08)


If I'm not a bush, I'm not no one.
Dotfiles Git

Offline

#4 2017-01-12 17:19:00

Chef_Keeper
Member
Registered: 2015-02-27
Posts: 18

Re: Bumblebee slow performence

Hello,

Thanks for you input, I'm using LXDE with openbox as composite manager, what do you use ?
I tested with laptop plugged and unplugged several times it doesn't change anything (I didn't install any power management tools yet).
And I tested with many different programs like stream games : dota 2, torchlight 2, but also opensource games like openMW and result is similar with every game I got nearly as much FPS with optirun than without (or like 1FPS gain^^)

My bumblebee conf (I never changed anything, so it's all default) :

# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

Oh and I tryed to install PRIME yesterday following the wiki : https://wiki.archlinux.org/index.php/PR … t_provider, but I had a problem with

xrandr --listproviders

not showing my nvidia

Last edited by Chef_Keeper (2017-01-12 17:20:55)

Offline

#5 2017-01-12 18:07:33

svnset
Member
Registered: 2016-07-31
Posts: 75

Re: Bumblebee slow performence

Have you tried primusrun? Have you multilib enabled, all the required lib32 packages and lib32-primus installed? You can test if optirun gets better results when changing bridge from auto to primus.

Last edited by svnset (2017-01-12 18:08:28)


After one has played a vast quantity of notes and more notes,
it is simplicity that emerges as the crowning reward of art. - Chopin

Offline

#6 2017-01-12 18:25:26

Chef_Keeper
Member
Registered: 2015-02-27
Posts: 18

Re: Bumblebee slow performence

I did enable multilib, and everything works fine with optirun except the poor performance.
I tried to install primus with open source driver following the wiki : https://wiki.archlinux.org/index.php/PRIME but when I do even after reboot I only got 1 provideo with xrandr --listproviders
Maybee I should install the proprietary drivers ?

Offline

#7 2017-01-12 18:44:57

svnset
Member
Registered: 2016-07-31
Posts: 75

Re: Bumblebee slow performence

You are mistaken. Primus != Prime. You should set up bumblebee correctly first and then if you are unhappy with the results jump to the next method like prime . I would not use nouveau if bad performance is what annoys you. Read Bumblebee again, especially on how to setup primusrun. I only use primusrun in steam (eg dota2) if I use bumblebee on my gtx660m notebook and the results are quite good (Better than optirun for sure).

Last edited by svnset (2017-01-12 20:15:33)


After one has played a vast quantity of notes and more notes,
it is simplicity that emerges as the crowning reward of art. - Chopin

Offline

#8 2017-01-14 13:14:50

Chef_Keeper
Member
Registered: 2015-02-27
Posts: 18

Re: Bumblebee slow performence

Thanks for the tip, I actually mistook primus and prime !

So I installed primus for bumblebee and it did improve my FPS quite a bit around 15 more in the few games I tested like dota 2.
Problem is that it also "only" improved by 15 FPS for openMW having ~45 now on linux, but I tested it on windows with vsync off and got ~200FPS.
I'm fine with the fact that I loose a few FPS on linux but not 150 tongue

And I instaled the nvidia drivers.

Should I try prime now ?

Offline

Board footer

Powered by FluxBB