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

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-13-11, 05:45 AM   #1
wodor
Registered User
 
Join Date: Nov 2005
Location: betelgeuse
Posts: 19
Default Mem leaks with last 260 and 270 series

Hi,
I have huge mem leaks in Xorg memory space when I use close drivers. It is possible that its depend of suspend or wine.

Some information about my hardrawe and software, and logs.

hardware:
01:00.0 VGA compatible controller: nVidia Corporation GT218 [NVS 3100M] (rev a2)

software:
xorg 1.9.4
kernel : 2.6.37
dist: arch linux 64 bits (updated stable)
I use compiz last compilation
.

kernel parameters: linux /boot/vmlinuz-2.6.37 root=/dev/sda1 ro nouveau.modeset=0 acpi_sleep=nonvs resume=swap:/dev/sda7 resume=/dev/sda7

graphic mem usage:
Memory Usage
Total : 511 Mb
Used : 301 Mb
Free : 209 Mb

xorg process:

12348 root 20 0 835m 720m 21m R 6 12.1 48:19.03 Xorg

[root@h2 Desktop]# free
total used free shared buffers cached
Mem: 6103408 5501452 601956 0 746896 2583812
-/+ buffers/cache: 2170744 3932664
Swap: 2050044 4600 2045444

Xorg logs:
http://wklej.org/id/491889/

[root@h2 Desktop]# dmesg | grep nv
nvidia 0000:01:00.0: restoring config space at offset 0xc (was 0xe3000000, writing 0x0)
nvidia 0000:01:00.0: restoring config space at offset 0x3 (was 0x800010, writing 0x800000)


best regards,
wodor is offline   Reply With Quote
Old 03-13-11, 07:01 AM   #2
Licaon
Registered User
 
Licaon's Avatar
 
Join Date: Nov 2004
Location: Between the keyboard and the chair.
Posts: 490
Default Re: Mem leaks with last 260 and 270 series

can you read http://www.nvnews.net/vbulletin/showthread.php?t=46678 and generate a good report with the debug ( -logverbose 6 ) info as instructed after the issue appears ?
Licaon is offline   Reply With Quote
Old 03-14-11, 06:03 PM   #3
danix
NVIDIA Corporation
 
danix's Avatar
 
Join Date: Feb 2010
Location: Santa Clara, CA
Posts: 237
Default Re: Mem leaks with last 260 and 270 series

Please try to isolate a workflow that reproduces the issue and provide detailed instructions on how to reproduce it. Thanks.
danix is offline   Reply With Quote
Old 06-18-11, 10:31 AM   #4
wodor
Registered User
 
Join Date: Nov 2005
Location: betelgeuse
Posts: 19
Default Re: Mem leaks with last 260 and 270 series, and 275 too.

Hi, I still have this problem on my linux machine. I use xfce4 and applications like conky, opera and psi. I attached bug log.


Three months ago I found additional one bug. When I used tool to change resolution from gnome2 on toolbar I had big mem leaks in Xserver when content menu from toolbar apper.


ps. reproduction: leave computer alone for some time (4 or 5 hours) ;-)

best regards,
Attached Files
File Type: gz nvidia-bug-report.log.gz (109.9 KB, 69 views)
wodor is offline   Reply With Quote
Old 06-18-11, 11:33 AM   #5
DeiF
Registered User
 
Join Date: Oct 2008
Posts: 114
Default Re: Mem leaks with last 260 and 270 series

Just this morning I noticed that my system was being sluggish (a while after resuming from suspend IIRC), so I opened up "top" to see what was happening.
I saw Xorg using 1400MB of virtual memory, 1300MB of "res" (and a little less shared, I think ~1200MB). That, coupled with other programs (e.g. Firefox) was triggering swap usage, since I only have 2GB of RAM.
So I launched xrestop to see what was the program storing so much pixmaps into Xorg. To my surprise the most demanding app was "plasma-desktop" eating only 50MB, and the rest being much much less.
After a quick googling, I then found the pmap command, so I did "pmap -d xorgpid" and found 2 lines near the top to be the most consuming. One was marked as [heap] and the other [anon].
I stopped there, as I didn't know how to further investigate this.

If I'm able to reproduce this I'll comment further.
DeiF is offline   Reply With Quote
Old 06-19-11, 04:32 PM   #6
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: Mem leaks with last 260 and 270 series

Quote:
Originally Posted by DeiF View Post
Just this morning I noticed that my system was being sluggish (a while after resuming from suspend IIRC), so I opened up "top" to see what was happening.
I saw Xorg using 1400MB of virtual memory, 1300MB of "res" (and a little less shared, I think ~1200MB). That, coupled with other programs (e.g. Firefox) was triggering swap usage, since I only have 2GB of RAM.
So I launched xrestop to see what was the program storing so much pixmaps into Xorg. To my surprise the most demanding app was "plasma-desktop" eating only 50MB, and the rest being much much less.
After a quick googling, I then found the pmap command, so I did "pmap -d xorgpid" and found 2 lines near the top to be the most consuming. One was marked as [heap] and the other [anon].
I stopped there, as I didn't know how to further investigate this.

If I'm able to reproduce this I'll comment further.
How many pixmaps did xrestop say plasma-desktop was using? The total memory size number reported by xrestop is not always accurate. It would be interesting the next time this happens to try killing plasma-desktop (and other applications, one by one) to see if any one of them causes the X server to free that memory.

There are resources other than pixmaps that could be taking up that memory too.
AaronP is offline   Reply With Quote
Old 06-20-11, 07:07 AM   #7
DeiF
Registered User
 
Join Date: Oct 2008
Posts: 114
Default Re: Mem leaks with last 260 and 270 series

Quote:
Originally Posted by AaronP View Post
How many pixmaps did xrestop say plasma-desktop was using?
Sorry, didn't remember.
Quote:
Originally Posted by AaronP View Post
The total memory size number reported by xrestop is not always accurate. It would be interesting the next time this happens to try killing plasma-desktop (and other applications, one by one) to see if any one of them causes the X server to free that memory.

There are resources other than pixmaps that could be taking up that memory too.
I think I killed plasma-desktop IIRC but the memory stayed almost the same.
Thanks for the tips, though. I will try that the next time it happens.
DeiF is offline   Reply With Quote
Old 06-20-11, 09:06 AM   #8
wodor
Registered User
 
Join Date: Nov 2005
Location: betelgeuse
Posts: 19
Default Re: Mem leaks with last 260 and 270 series

Quote:
Originally Posted by DeiF View Post
Sorry, didn't remember.


I think I killed plasma-desktop IIRC but the memory stayed almost the same.
Thanks for the tips, though. I will try that the next time it happens.
Hi,
I had that same problem with gtk-window-decorator from compiz. I killed this proces and Xserver didnt release memory.

best regards,
wodor is offline   Reply With Quote

Old 06-20-11, 12:11 PM   #9
wodor
Registered User
 
Join Date: Nov 2005
Location: betelgeuse
Posts: 19
Default Re: Mem leaks with last 260 and 270 series

Today I had another one huge memleak.

Howto reproduce : maximalize and unmaximalize windows like opera, terminal, gvim etc.
I made it under compiz too and I just inform compiz developers.
ps.

11861 root 20 0 927M 834M 19368 S 12.0 14.0 7:36.92 /usr/bin/X :0 vt7 -nolisten tcp -auth /var/run/xauth/A:0-Mj0ylc

best regards,
Attached Files
File Type: gz nvidia-bug-report.log.gz (82.1 KB, 65 views)
File Type: log Xorg-pmap.log (11.3 KB, 76 views)
wodor is offline   Reply With Quote
Old 06-21-11, 07:58 AM   #10
jeisom
Registered User
 
Join Date: Dec 2005
Location: My own little world
Posts: 117
Default Re: Mem leaks with last 260 and 270 series

Don't know if this is useful, but running 270.41.19 with 2.6.39.1 kernel on amd64.
free with most everything shutdown(X and most unrequired daemons)
Code:
             total       used       free     shared    buffers     cached
Mem:       6114788    3769372    2345416          0        440    1462240
-/+ buffers/cache:    2306692    3808096
Swap:      7802876         44    7802832
Attached is a log from kmemleak. Don't know what took the ram though 3.7 gigs is alot for only what was running at the time.

I'll try to reproduce.
Attached Files
File Type: bz2 memleak.log.bz2 (2.9 KB, 63 views)
jeisom is offline   Reply With Quote
Old 06-21-11, 12:29 PM   #11
Licaon
Registered User
 
Licaon's Avatar
 
Join Date: Nov 2004
Location: Between the keyboard and the chair.
Posts: 490
Default Re: Mem leaks with last 260 and 270 series

bad post
Licaon is offline   Reply With Quote
Old 07-08-11, 05:22 AM   #12
wodor
Registered User
 
Join Date: Nov 2005
Location: betelgeuse
Posts: 19
Default Re: Mem leaks with last 260 and 270 series

With 280.04 too

best regards,
wodor 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 01:13 PM.


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