nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA FreeBSD (http://www.nvnews.net/vbulletin/forumdisplay.php?f=47)
-   -   memory leak in nvidia kernel module (http://www.nvnews.net/vbulletin/showthread.php?t=112228)

muhkuh 04-24-08 12:28 PM

memory leak in nvidia kernel module
 
1 Attachment(s)
Hello,

we are experiencing a continuous memory leak using drivers ranging from 1.0-9762 to current 173.08. The leak seems to be in glXSwapBuffers.

There are two things that seem to influence the matter:

1. There is some frame cap code that does several calls to usleep and gettimeofday to limit the frame rate to 30 fps. When this code is removed the leak disappears.

2. When VSYNC is disabled the leak disappears too.

I attached a minimal test case that uses glut to create a window and does nothing more than:

clear framebuffer
call usleep(10) several times
swap buffers

When starting this test case with __GL_SYNC_TO_VBLANK=1 and monitoring the kernel module by calling:
vmstat -m | grep nvidia

there is a significant leak (1k every 10s). Setting __GL_SYNC_TO_VBLANK=0 the leak is gone as stated above.

System: FreeBSD 6.2
Intel Celeron (P4) 2GHZ
512 MB Ram
GeForce FX 5200 256 MB
Intel 865G Chipset

The system is used in an embedded environment so the leak is a big problem.


The attached test requires a version of glut to compile.


Thanks in advance.


Markus


Edit:
I made a bug report: NVIDIA Bug ID: 420133

SamZ 05-16-08 12:03 PM

Re: memory leak in nvidia kernel module
 
I am having the same problem.
With __GL_SYNC_TO_VBLANK=1, and Option "Rotate" "CCW", my vmstat is growing and eventually making the system crawl.

With only one of these on, things are fine, but I need both!

This has happened on two different motherboards, with 7200,7300 and 8600 GTS cards.

This is FreeBSD 7.0, nVidia 169.12

Embedded system running of Compact Flash with no swapfile, if that makes a difference.

Sam

muhkuh 06-06-08 10:18 AM

Re: memory leak in nvidia kernel module
 
The bug as flagged as fixed and integrated and is waiting for QA to be closed. Su I guess it will be fixed in a future driver release.


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

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