protonscr

Steam: Memory Leak MainThrd Memory Usage 3000MiB

steamclosed reviewednot reproducible
ValveSoftware/steam-for-linux#100 · opened 2012-12-20 by CommanderAlchemy · updated 2013-02-10 · 10 comments · github
CCommanderAlchemy 2012-12-20 github

Hi there,

Looks like Steam got some memory leak. Having Steam open for couple of hours my usage went to 3GiB.

Here is the process information of MainThrd
http://pastebin.ubuntu.com/1452046/

  • System info.

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

Network Information:
Network Speed:

Operating System Version:
"Arch Linux" (64 bit)
Kernel Name: Linux
Kernel Version: 3.6.10-1-ARCH
X Server vendor: The X.Org Foundation
X Server release: 11300902

Video Card:
Driver: NVIDIA Corporation GeForce GTX 260/PCIe/SSE2

Driver Version:  3.3.0 NVIDIA 313.09
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID:  0x10de
DeviceID:  0x5e2
Number of Monitors:  2
Number of Logical Video Cards:  1
Primary Display Resolution:  1920 x 1080
Desktop Resolution: 3840 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: 896 MB
Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
Audio device: AV200

Memory:
RAM: 7989 Mb

Miscellaneous:
UI Language: English
LANG: en_US.UTF-8
Microphone: Not set
Total Hard Disk Space Available: 55436 Mb
Largest Free Hard Disk Block: 5658 Mb

Installed software:

Recent Failure Reports:
Sun Dec 16 23:06:52 2012 GMT: file ''/tmp/dumps/assert_20121217000649_1.dmp'', upload yes: ''CrashID=bp-205e22a8-b11f-473d-9b6f-bef0d2121216''

SSalamek 2012-12-20 github

3000GiB ? You mean 3000MiB i hope :dancer:

SSilverPreece 2012-12-20 github

I was wondering just how much RAM he had in that machine...

CCommanderAlchemy 2012-12-21 github

Oh, yeah 3000MiB =)

Ffowll 2012-12-22 github

it seems memory is not freed when exiting big picture. i get about 100MiB more usage every time i open and close big picture.

CCommanderAlchemy 2013-01-04 github

please note that this leak has nothing to do with big picture mode, i had this leak when only running the steam client in the background.

Jjohnv-valve maintainer 2013-01-08 github

@CommanderAlchemy - can you give more details about what Steam was doing (downloading, what windows, what's displaying, etc.) and what you are using to measure this? Before & after data will help as well.

I left Steam running all night on the Library window and saw data+stack (from /proc/[pid]/statm) increase by ~35MB. Sounds like some kind of leak, but not anything near 3GB in a couple hours.

Mm4tx 2013-01-16 github

The bug affects me as well. About 3 hours ago Steam used ~327MB, now it uses 675,5MB (and increases, it ate 671,8MB 5 minutes ago). Application stays minimized, I do nothing in it.

CCommanderAlchemy 2013-01-21 github

Sorry about this, I was out of town to respond to this bug. But Steam was launched as usual to library mode and was running with friends on nothing more.

Memory usage was spotted when i noticed that swap was getting used and the system was extremely slow. The memory usage was from the (KDE System Monitor) that's where the process information is pasted from.

Right now steam process uses ~191M (fresh start) Though i noticed that starts using very high CPU from time to time but thats another bug report.

Im having an extra eye on the memory usage right now to see if this issue is still there.

Fflyonthewall 2013-02-01 github

I started up steam a few days ago and I've been running it in the background without actually running any games. Today when I came home, my computer was slower than I've ever experienced it and when I check top I see Steam eating up 53% of my 6GB of memory. I had 20 bytes of swap left and felt a bit relieved when I managed to kill Steam before it killed my workstation.

CCommanderAlchemy 2013-02-10 github

Hm, still an issue it seems. Played today CS:S and then was going to Library and started Half Life. Looked recently into the Process Table in Ksysguard (KDE system monitor) and steam uses 350492 K Memory. Looked also in Community tab during gameplay and tabbed out/in couple of times.

Full memory details:
http://pastebin.ubuntu.com/1632060/

Full terminal output:
http://pastebin.ubuntu.com/1632066/

Nothing extracted yet.