Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-24-10, 10:55 AM   #1
cervo
Registered User
 
Join Date: Jun 2006
Posts: 34
Unhappy OpenGL is too slow on Ubuntu 10.04LTS

Hello,

I have a trouble.

I have developed 3D CG software on Ubuntu and FreeBSD.
I use OpenGL and GLSL on recent nvidia driver(256.44, 256.53, 260.19.04).

Ubuntu is too slow in comparison with FreeBSD(or other linux distribtuion).

For example, FreeBSD is 25 times faster than Ubuntu on GeForce GTX 480.
Moreover, when I have checked on another distribution(CentOS 5.4), the rendering speed is as fast as FreeBSD.

I think that it is restricted in something on Ubuntu.

Does anyone know the reason?


I have checked following setting.

I have confirmed "nvidia driver is enabled" on nvidia-setting and /var/log/Xorg.0.log.
There is no errors in /var/log/Xorg.0.log.

Other setting information.
1. purge and disable exist nvidia-driver
2. disable xinerama
3. disable nouveau
4. enable or disable Sync to VBlank
5. disable 3D desktop(compiz) setting

Our system
OS: Windows 7 Pro(64bit), FreeBSD 8.1-stable(64bit), Ubuntu 10.04.1LTS(64bit) triple boot

*PC1
CPU; Intel Core2Quad Q9550S
MEM: 8GB

*PC2
CPU: Intel Core i7 920 (2.66GHz)
MEM: 9GB

GPU: We checked following all GPU.
nvidia GeForce 9600GT
nvidia GeForce 9800GT(Green Edition)
nvidia GeForce GTX 275
nvidia GeForce GTX 295
nvidia GeForce GTX 460
nvidia GeForce GTX 480
cervo is offline   Reply With Quote
Old 09-25-10, 05:12 PM   #2
Licaon
Registered User
 
Licaon's Avatar
 
Join Date: Nov 2004
Location: Between the keyboard and the chair.
Posts: 490
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

Quote:
Originally Posted by cervo View Post
I have developed 3D CG software on Ubuntu and FreeBSD.
I use OpenGL and GLSL on recent nvidia driver(256.44, 256.53, 260.19.04).
Tried Debian Sid too?
Any sample program?
can you read http://www.nvnews.net/vbulletin/showthread.php?t=46678 and generate a good report with the debug info as instructed after the issue appears ?
Licaon is offline   Reply With Quote
Old 09-25-10, 05:34 PM   #3
mickski56
Registered User
 
Join Date: Nov 2005
Posts: 2
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

Just a wild guess as I don't run ubuntu. But are you running a compositing window manager. Compositing really hurts opengl performance.
mickski56 is offline   Reply With Quote
Old 09-25-10, 07:52 PM   #4
Licaon
Registered User
 
Licaon's Avatar
 
Join Date: Nov 2004
Location: Between the keyboard and the chair.
Posts: 490
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

Quote:
Originally Posted by mickski56 View Post
Just a wild guess as I don't run ubuntu. But are you running a compositing window manager. Compositing really hurts opengl performance.
He mentioned that in his post: 5. disable 3D desktop(compiz) setting
Licaon is offline   Reply With Quote
Old 09-25-10, 08:13 PM   #5
adamk75
Registered User
 
Join Date: Nov 2006
Posts: 228
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

How are you determining the speed?

Adam
adamk75 is offline   Reply With Quote
Old 09-26-10, 01:10 PM   #6
cervo
Registered User
 
Join Date: Jun 2006
Posts: 34
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

Licaon, mickski56, adamk75,
thank you for your reply.

I have attached nvidia-bug-report.log.gz in this article.

I tried checked many many program code of OpenGL and GLSL such as our software or GLSL sample code from internet.
(i.e. http://marina.sys.wakayama-u.ac.jp/~...lection.tar.gz)

As far as I am concerned, any program code of OpenGL with GLSL slow down on Ubuntu.

I have never checked OpenGL rendering speed on Debian.
But I have checked FreeBSD and Windows 7 performance on the same PC(multi boot).
The rendering performance of FreeBSD and Windows 7 is very good.
The rendering is very smooth visually.


I have checked rendering speed on other window manager( xfce and WindowMaker) on Ubuntu.
However, the rendering speed is still slow.

I have determined rendering speed by calculating FPS at display() function of glut.
Moreover I can see "frame drop of rendering image" visually on Ubuntu.
The rendering is not smooth visually.
Attached Files
File Type: gz nvidia-bug-report.log.gz (68.7 KB, 67 views)
cervo is offline   Reply With Quote
Old 09-26-10, 02:10 PM   #7
Licaon
Registered User
 
Licaon's Avatar
 
Join Date: Nov 2004
Location: Between the keyboard and the chair.
Posts: 490
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

Quote:
Originally Posted by cervo View Post
I have never checked OpenGL rendering speed on Debian.
Do try it too, something like aptosid, as maybe Ubuntu messes some things up.
Licaon is offline   Reply With Quote
Old 01-14-11, 02:00 PM   #8
cervo
Registered User
 
Join Date: Jun 2006
Posts: 34
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

I'm sorry for this delay.

I have checked Debian unstable version(aptosid).
The rendering speed of Debian is slow, too.

And also, I have checked Fedora 14 and Ubuntu 10.10(clean installed).
These rendering speed are slow, too.
The rendering speed is as slow as Ubuntu 10.04LTS.

Maybe...
Is rendering speed of recent linux distribution always slow?
cervo is offline   Reply With Quote

Old 01-14-11, 02:59 PM   #9
gradinaruvasile
Registered User
 
gradinaruvasile's Avatar
 
Join Date: May 2008
Posts: 199
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

What driver version do you use?
And what xorg versons did you test?

Tried to compile the code from reflection.tar.gz and i got this:

Code:
$ make
g++    -c -o main.o main.cpp
g++    -c -o glsl.o glsl.cpp
g++    -c -o Box.o Box.cpp
g++    -c -o Obj.o Obj.cpp
Obj.cpp: In member function ‘void Obj::copy(const Obj&)’:
Obj.cpp:87: error: ‘memcpy’ was not declared in this scope
Obj.cpp:97: error: ‘memcpy’ was not declared in this scope
make: *** [Obj.o] Error 1
What should i install to make it work?
gradinaruvasile is offline   Reply With Quote
Old 01-14-11, 03:07 PM   #10
gradinaruvasile
Registered User
 
gradinaruvasile's Avatar
 
Join Date: May 2008
Posts: 199
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

This is from the nvidia error log you attached:

Code:
(EE) Jul 31 02:01:22 NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the
(EE) Jul 31 02:01:22 NVIDIA(0):     system's kernel log for additional error messages and
(EE) Jul 31 02:01:22 NVIDIA(0):     consult the NVIDIA README for details.
(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "wfb"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found
Normally this means that you have no functioning x server.

Just out of curiosity, what glxgears score do you have?
gradinaruvasile is offline   Reply With Quote
Old 01-17-11, 12:07 AM   #11
cervo
Registered User
 
Join Date: Jun 2006
Posts: 34
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

Quote:
Originally Posted by gradinaruvasile View Post
This is from the nvidia error log you attached:

Code:
(EE) Jul 31 02:01:22 NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the
(EE) Jul 31 02:01:22 NVIDIA(0):     system's kernel log for additional error messages and
(EE) Jul 31 02:01:22 NVIDIA(0):     consult the NVIDIA README for details.
(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "wfb"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found
Normally this means that you have no functioning x server.

Just out of curiosity, what glxgears score do you have?
gradinaruvasile
Thank you for your reply.

I have attached Xorg.0.log on Fedora 14 on this article.
X server works normal.y.
There is no error in the log.

glxgear score is 87352 on GTX 460.

Maybe, I made mistake in operation of nvidia-bug-report.sh.

However our software is still slow on Fedora or Ubuntu.
Attached Files
File Type: gz Xorg.0.log.gz (3.5 KB, 54 views)
cervo is offline   Reply With Quote
Old 01-17-11, 01:47 AM   #12
ShiningArcanine
Registered User
 
Join Date: Aug 2006
Posts: 106
Default Re: OpenGL is too slow on Ubuntu 10.04LTS

Try running it on Sabayon Linux. I believe that the Nvidia drivers for Linux and FreeBSD have a great deal in common, so if it is also slow on Sabayon Linux, then then I think this could be some sort of kernel regression.
ShiningArcanine is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:11 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.