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

Newegg Daily Deals

Thread Tools
Old 04-24-08, 11:28 AM   #1
Registered User
Join Date: Jun 2005
Posts: 10
Exclamation memory leak in nvidia kernel module


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
Attached Files
File Type: gz nvidia_memory_leak_test.tar.gz (3.8 KB, 290 views)

Last edited by muhkuh; 05-05-08 at 03:14 AM.
muhkuh is offline   Reply With Quote
Old 05-16-08, 11:03 AM   #2
Registered User
Join Date: May 2008
Posts: 6
Default 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.

SamZ is offline   Reply With Quote
Old 06-06-08, 09:18 AM   #3
Registered User
Join Date: Jun 2005
Posts: 10
Default 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.
muhkuh is offline   Reply With Quote

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
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-01-02 11:58 PM
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 01:44 PM
Need help to get the X to work on my Acer TravelMate 630 knchee NVIDIA Linux 16 09-19-02 10:16 PM

All times are GMT -5. The time now is 01:35 AM.

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