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 11:28 AM

memory leak in nvidia kernel module
1 Attachment(s)

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.


I made a bug report: NVIDIA Bug ID: 420133

SamZ 05-16-08 11:03 AM

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.


muhkuh 06-06-08 09: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 08:42 PM.

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