These forums are CLOSED. Please visit the new forums HERE
Memory Leak in Linux-Native Client? |
|
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
|
10-23-2006 20:28
Is there a memory leak in the Linux-Native Client? ...or possibly in all Second Life Clients? I`m using the current Linux-Native Client [i686_1_12_2_9 as I type this], and I`ve noticed that if I stay logged in long enough, the client crashes. Just today, I`ve been noticing that my System Load application shows Virtual Memory at 0 Bytes just before the client barfs, and when the failed client exits, most of my virtual memory is made available again. This has happened several times today, and the system is usable again after the failure, whereas it is utterly unusable while the client is in the process of failing. [Heck, even the mouse gets laggy!]
|
Zi Ree
Mrrrew!
![]() Join date: 25 Feb 2006
Posts: 723
|
10-24-2006 01:43
Yes, I see this, too. After several hours in-world the system becomes more and more choppy, screen freezes occur more frequently until at one point the whole system basically comes to a halt and the harddisk starts swapping like mad. I usually quit the client when I see it starting to crash, so I don't have to wait 10 or more minutes until the system has recovered.
I find it happens more often when you zoom out with the camera a far distance to see more of your surroundings. _____________________
Zi!
(SuSE Linux 10.2, Kernel 2.6.13-15, AMD64 3200+, 2GB RAM, NVidia GeForce 7800GS 512MB (AGP), KDE 3.5.5, Second Life 1.13.1 (6) alpha soon beta thingie) Blog: http://ziree.wordpress.com/ - QAvimator: http://qavimator.org Second Life Linux Users Group IRC Channel: irc.freenode.org #secondlifelug |
Drake Bacon
Linux is Furry
Join date: 13 Jul 2005
Posts: 443
|
10-24-2006 03:23
I have the same in Windowed mode. I have a system monitor on my KDE Kicker. As I go around, it goes up.
|
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
|
10-24-2006 05:47
I'll look into it!
|
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
|
10-24-2006 15:19
I'll look into it! Meanwhile, further information:
|
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
|
Tofu, This One`s For You.
10-24-2006 18:00
Tofu, I just e-mailed you a transcript of my Second Life log for a session that crashed as described above.
|
Merrick Moose
Registered User
![]() Join date: 20 Oct 2005
Posts: 191
|
10-24-2006 23:12
There does appear to be something causing memory usage to go up. The Heap for SL seems to endlessly grow with the heap growing past the allocated disk cache size. The number of files and locations open doesn't increase either. Only the heap. 0000000009ed8000 599392K rw--- [ anon ]
The more places visited the bigger this gets and it only appears to be accessible to a destructor when the client itself closes. |
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
|
10-25-2006 03:09
Thanks for the log, Llauren. There's nothing unusual there sadly (I've looked into the 'this should NEVER happen' message and I'm pretty sure it's actually harmless from a stability angle, but I'm checking with some other devs).
I've been working on the automated crash reporter lately which should help a lot in scooping up these 'random' crashes. |
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
|
10-25-2006 03:16
There does appear to be something causing memory usage to go up. The Heap for SL seems to endlessly grow with the heap growing past the allocated disk cache size. The number of files and locations open doesn't increase either. Only the heap. 0000000009ed8000 599392K rw--- [ anon ] The more places visited the bigger this gets and it only appears to be accessible to a destructor when the client itself closes. Thanks for looking at this. However, growing memory usage isn't unexpected behavior - to an extent this is expected over a session as SL's various in-memory caches fill up; 600MB for example sounds quite normal (assuming you have more than 512MB of memory!) and does not constitute a leak. Indefinitely-growing memory usage would be unexpected though, as would heap usage far in excess of physical memory. |
Merrick Moose
Registered User
![]() Join date: 20 Oct 2005
Posts: 191
|
10-25-2006 08:17
The longer I stay logged in the larger it gets. The client does slow down after a while though I have a massive amount of memory and I have never been able to fill it up before the client crashes. 2gb of ram then 6gb of swap, best I can do is get it to about 4gb of swap after eating all the ram, things get very unhappy and running pmap on it tends to crash it before it gets a reading. If there is something better than pmap then I can certainly use that. About the max it seems to grow for me before segfaulting is 1.2gb with 600mb being the average.
-- From behavior in world it appears that once an avatar has left the area the data for that area is still kept. Such as crossing over into a new sim or a teleport. The allocated memory continues to grow, it doesn't appear that any is released. If the disk cache is set in the client why not allocate the whole disk cache at client start so it may use continuous memory? Though it is quite possible as well to have a memory leak outside of the bounds of pmap, though the system should try to reclaim that. For some folks it does appear to happen faster. To get up to 600mb for me took about four hours. |
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
|
10-26-2006 05:11
Does everyone who is seeing this (and is sure that it is because of memory growth and not other random crashes) have 2GB of RAM?
|
Zi Ree
Mrrrew!
![]() Join date: 25 Feb 2006
Posts: 723
|
10-26-2006 06:18
I see this myself and I have 1 GB of RAM, 256 MB VRAM.
_____________________
Zi!
(SuSE Linux 10.2, Kernel 2.6.13-15, AMD64 3200+, 2GB RAM, NVidia GeForce 7800GS 512MB (AGP), KDE 3.5.5, Second Life 1.13.1 (6) alpha soon beta thingie) Blog: http://ziree.wordpress.com/ - QAvimator: http://qavimator.org Second Life Linux Users Group IRC Channel: irc.freenode.org #secondlifelug |
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
|
10-26-2006 12:00
Does everyone who is seeing this (and is sure that it is because of memory growth and not other random crashes) have 2GB of RAM?This is my 400th post. What a thing to use my 400th post for. [I`ve been trying to save it for something special.
![]() ![]() |
Drake Bacon
Linux is Furry
Join date: 13 Jul 2005
Posts: 443
|
10-26-2006 17:35
Specs in my sig. I'm seeing this.
_____________________
Drake Bacon/Drake Winger
Home: Custom AMD X2 (65nm) 5000+, 4 Gig RAM, Gentoo amd64, NVidia GeForce 8600GT PCIe Mobile: Dell Inspiron E1505 (Core Duo 1.6GHz, 1 gig RAM, Gentoo x86, NVidia GeForce Go 7300 PCIe) Backup: iMac (Core 2 Duo 2.4GHz, 4 gig RAM, ATI Radeon HD 2400, MacOS X Leopard) Don't Ask: Asus EeePC 900A (Atom 1.6Ghz, 1 gig RAM, Intel graphics, Gentoo x86) |
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
|
12-11-2006 13:36
![]() _____________________
|
Brendan Wei
Registered User
Join date: 11 Dec 2006
Posts: 1
|
Enourmous memory leak
12-11-2006 19:01
Immediately after logging in, the client starts eating memory. It uses 757mb of ram and 2.2gb of swap in about 2 or 3 minutes. Everything slows down until the system is unusable, and the SecondLife client dies.
System Specs ========= Ubuntu 6.10 (also tried with debian unstable) Kde 3.5 kernel 2.6.17-10-generic frglx graphics drivers 128mb video ram Athalon 1.4ghz |
Adam Kaupas
Registered User
Join date: 20 Aug 2006
Posts: 24
|
12-20-2006 12:34
I spent most of my time in SL far above the clouds, with only a few small objects in view - the little platform I stand on.
It runs at 40 to 60 and above FPS, really smooth. However, once I spend a little while on the ground, specifically in fairly crowded areas, the FPS drops radidly and the whole thing starts to slow to a crawl, after an hour or two it's practically unusable and I hit teleport home to get back to 500m high, at which point the lag goes away. Specs: Kubuntu Feisty Testing AMD64 3500+ 2GB ram ATI X800XT PE 256MB |
Arrow Hand
Registered User
Join date: 10 Mar 2006
Posts: 78
|
12-23-2006 11:55
My Slackware 11 install has shown serious disk thrashing after a few minutes logged on since about three client releases ago. The latest release bogs down to a grossly slow response in minutes. If I stay on any longer and my system may lock up.
Earlier releases (about three weeks ago) weren't nearly as bad. I was able to build a house and wander around freely with little problems, though my disk did show heavy accesses. |
Alejandro Rosenthal
Freethinker
Join date: 13 Oct 2006
Posts: 22
|
12-24-2006 02:36
I can confirm this, as well, in the current 1.13 release series. After probably 10 minutes of use, my system RAM is completely gone and it begins swapping out. My system has 512MB of memory and I have nothing else running aside from Second Life as to keep memory usage to a minimum.
In the 1.12 release series this problem did not exist. In fact, it was fantastic. I rarely ever had to relog, but with the current 1.13 series I need to relog every half hour, or less, or my system will completely lock up. I cannot provide any distribution information here as I built my system myself. However, all of my software is current, as well as stable. Edit: I should also mention that I am using an nVidia graphics card with the official drivers (1.0-9631). Also, I have tried various combinations of LL_GL_BASICEXT, LL_GL_NOEXT and LL_GL_BLACKLIST; all to no avail. The memory leak is consistent in all cases. I suspect it has something to do with textures, as the climb in memory usage is the greatest when I am in texture intensive areas. Also, forcing textures to rez by using the usual click method will greatly increase the amount of memory used. I can monitor this climb through various sources (gkrellm, top, etc.). At no point does the memory usage decrease. |