Steam for Linux

Steam for Linux

Steam for Linux > Limited Beta > Topic Details
Issue Report: Steam memory leak
Memory leak: Steam uses absurd amounts of memory after 3 days of uptime.


If you need additional info (I am sure you will), then ask away!

System info:

Processor Information:
Vendor: GenuineIntel
Speed: 3601 Mhz
4 logical processors
4 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Unsupported
SSE41: Supported
SSE42: Supported

Network Information:
Network Speed:

Operating System Version:
Ubuntu 12.04.1 LTS (64 bit)
Kernel Name: Linux
Kernel Version: 3.2.0-32-generic
X Server vendor: The X.Org Foundation
X Server release: 11103000

Video Card:
Driver: NVIDIA Corporation GeForce GTX 560 Ti/PCIe/SSE2

Driver Version: 4.3.0 NVIDIA 310.14
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID: 0x10de
DeviceID: 0x1200
Number of Monitors: 1
Number of Logical Video Cards: 1
Primary Display Resolution: 1920 x 1080
Desktop Resolution: 1920 x 1080
Primary Display Size: 18.78" x 10.55" (21.54" diag)
47.7cm x 26.8cm (54.7cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 1023 MB
Supported MSAA Modes: 2x 4x 8x 16x

Sound card:
Audio device: Realtek ALC889

RAM: 7969 Mb

UI Language: English
Microphone: Not set
Total Hard Disk Space Available: 32153 Mb
Largest Free Hard Disk Block: 8246 Mb

Installed software:

< >
Showing 1-10 of 10 comments
Frank Nov 12, 2012 @ 3:27pm 
Thanks for the report!
I confirm memory leaks in Steam for Linux - memory consumption grows quite fast when performing some actions, and slowly memory leaking when Steam IDLE.

I suggest developers to use Steam with debugging symbols + Valgrind to see where memory leaking. IMHO Valgrind best in this case,,,
Bomb Dec 8, 2012 @ 7:20am 
I can confirm this issue as well, I also found that after several days of it being online the cpu usage had grown quite high as well, idling at about 15-20% of my process vs what it started at, around 3-5%
Vergo Dec 12, 2012 @ 2:16pm 
The Steam process will eventually crash due to this memory leak once the memory usage reaches 4GB. After having it running for three days, these are the last prints I found from the terminal:

Generating new string page texture 226: 128x256, total string texture memory is 14.40 MB Generating new string page texture 228: 64x256, total string texture memory is 14.47 MB Generating new string page texture 200: 128x256, total string texture memory is 14.60 MB primarycache setting for app 65300 is set to non-existent cache 65304 ***** OUT OF MEMORY! attempted allocation size: 2097152 **** memstd.cpp (2501) : Assertion Failed: OUT OF MEMORY memstd.cpp (2501) : Fatal assert failed: /home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/tier0/memstd.cpp, line 2501. Application exiting. Assert( Fatal assert ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/tier0/memstd.cpp:2501 Installing breakpad exception handler for appid(steam)/version(1354745237_client) Uploading dump (in-process) [proxy ''] /tmp/dumps/assert_20121212002115_1.dmp success = yes response: CrashID=bp-30bb6f54-0765-4622-9e6a-ddf742121211 _ExitOnFatalAssert

Looking from the system memory usage graph, the increase rate appears to have been linear regardless of whether the process was idling or not. I assume you already have that dump file somewhere stored with that CrashID.
Offensive Polygon Dec 15, 2012 @ 8:58am 
Seems Steam will leak even more memory while using Big Picture Mode. Perhaps the web browser is causing most of that.
Was talking in the Chat and simultaneously had the browser in the background logged into Google+ and playing one HTML5 video. After about half an hour or so Steam/MainThrd had taken 85% out of 4GB (more 3,something) shown by TOP before I finally forced killed it due to a high amount of slowdown.
This was about three days ago after most recent Dec 10 Steamclient update, running on 12.10 - Kubuntu and kernel 3.5. (3.7 won't boot)
BJORN Dec 15, 2012 @ 9:40am 
Would this explain a hard freeze (crash), then? More than once now, my system has slowed down, then completely frozen while using Firefox with Steam running, and each time, I've had Steam open for at least 24 hours. The only way to recover is by pressing the power button on my PC.
johnv Dec 18, 2012 @ 4:50pm 
Fixed a pretty good leak in the latest release. If you are still seeing this, let us know!
Originally posted by johnv:
Fixed a pretty good leak in the latest release. If you are still seeing this, let us know!

Thanks! It seems that it is fixed.
Erm... It is better than it was before, but the memory usage is still climbing slowly... Was at 250 megabytes yesterday, 322 megabytes today...
Vergo Dec 20, 2012 @ 11:31am 
Looks same as before for me. With a 21 hour uptime, the memory usage of MainThrd shows currently 1464m VIRT, 1.2g RES and 64m SHR in top. I haven't even started any games during this session.
< >
Showing 1-10 of 10 comments
Per page: 15 30 50

Steam for Linux > Limited Beta > Topic Details