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

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-04-12, 04:12 PM   #1
tdsussman
Registered User
 
Join Date: Jun 2012
Posts: 3
Default GPU memory consumption, back buffer, Quadro

The use of glScissor when drawing into the back buffer causes the GPU memory requirement to continually increase.

Please see the attached simple OpenGL program glxtest.c. It is run using

./glxtest.exe (ibufse) (iscissor)

in which

ibufse=1: draw to front buffer
ibufse=2: draw to back buffer

iscissor=0: do not scissor when clearing
iscissor=1: scissor when clearing

./glxtest.exe 2 1

draws to the back buffer repeately, scissoring when clearing the screen.

Observe that

GPU_MEMORY_INFO_CURRENT_AVAILABLE_MEMORY_NVX

continually decreases. The memory of the process reported by 'top'
also continually increases.

If I don't scissor

./glxtest.exe 2 0

or if I scissor into the front buffer

./glxtest.exe 1 1

then the memory doesn't increase.

I am running Red Hat Enterprise Linux 5 (kernel 2.6.18-8.e15) on an x86_64 platform.
Driver: NVIDIA 295.53, as downloaded from the NVIDIA website.
Graphics card: QUADRO FX 570, 256 MB memory.

I have attached nvidia-bug-report.log.gz.

Is this memory increase a bug in the NVIDIA drivers for Linux? If so, should I report the
bug directly to NVIDIA?

Thank you.
Attached Files
File Type: gz nvidia-bug-report.log.gz (73.3 KB, 75 views)
File Type: zip glxtest.zip (2.9 KB, 82 views)

Last edited by tdsussman; 06-08-12 at 05:12 PM. Reason: more information
tdsussman is offline   Reply With Quote
Old 06-05-12, 04:50 PM   #2
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: GPU memory consumption, back buffer, Quadro

Does the problem go away if you add a glFinish() or a SwapBuffers in your rendering loop? It's possible that your rendering requests are simply queuing up more work faster than the GPU can process it.
AaronP is offline   Reply With Quote
Old 06-07-12, 08:28 AM   #3
tdsussman
Registered User
 
Join Date: Jun 2012
Posts: 3
Default Re: GPU memory consumption, back buffer, Quadro

Quote:
Originally Posted by AaronP View Post
Does the problem go away if you add a glFinish() or a SwapBuffers in your rendering loop? It's possible that your rendering requests are simply queuing up more work faster than the GPU can process it.
No, the problem does not go away if I add a glFinish.

The problem goes away if the entire back buffer is cleared by glClear.
But if the glClear is removed, or if the glClear doesn't clear the entire back buffer
(because of the scissoring), then the problem is present.
tdsussman is offline   Reply With Quote
Old 06-07-12, 05:09 PM   #4
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: GPU memory consumption, back buffer, Quadro

Okay. Can you please either repost the test with the glFinish in place or provide a patch to make sure I add it to exactly the same place you did, for testing?
AaronP is offline   Reply With Quote
Old 06-08-12, 05:14 PM   #5
tdsussman
Registered User
 
Join Date: Jun 2012
Posts: 3
Default Re: GPU memory consumption, back buffer, Quadro

Hello Aaron,

I have reposted glxtest.zip. Note that there is a call to "gerror" after every OpenGL
call, and gerror calls glFinish. So glFinish is called after every OpenGL call.

The memory increase is still present when drawing to the back buffer, when the back buffer is
not completely cleared by glClear.
tdsussman is offline   Reply With Quote
Old 08-14-12, 10:14 PM   #6
idigthought
Registered User
 
Join Date: Jun 2008
Posts: 14
Default Re: GPU memory consumption, back buffer, Quadro

I see the same results using tdsussman's example with a Quadro FX 5800 , and I see a similar leak in my application, though I don't have the scissor test enabled.

tdsussman: have you found a workaround? Thanks.
idigthought 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia: Adobe's own David Helmly gives Quadro GPU suggestions to get the most out of News Archived News Items 0 05-29-12 06:40 PM
Choosing The Right GPU To Take Adobe Workflows To The Max News Archived News Items 0 05-29-12 06:40 PM
Measuring card memory usage peter_ga NVIDIA Linux 0 05-24-12 09:07 PM
New GPU from Nvidia Announced Today, the GeForce GTX 670 News Archived News Items 0 05-10-12 02:50 PM

All times are GMT -5. The time now is 08:44 AM.


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