steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Steam: Memory Leak MainThrd Memory Usage 3000MiB

Open CommanderAlchemy opened this issue 13 years ago • 10 comments

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''

CommanderAlchemy avatar Dec 20 '12 11:12 CommanderAlchemy

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

Salamek avatar Dec 20 '12 13:12 Salamek

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

SilverPreece avatar Dec 20 '12 16:12 SilverPreece

Oh, yeah 3000MiB =)

CommanderAlchemy avatar Dec 21 '12 00:12 CommanderAlchemy

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

fowll avatar Dec 22 '12 02:12 fowll

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.

CommanderAlchemy avatar Jan 04 '13 21:01 CommanderAlchemy

@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.

johnv-valve avatar Jan 08 '13 18:01 johnv-valve

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.

m4tx avatar Jan 16 '13 19:01 m4tx

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.

CommanderAlchemy avatar Jan 21 '13 11:01 CommanderAlchemy

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.

flyonthewall avatar Feb 01 '13 17:02 flyonthewall

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/

CommanderAlchemy avatar Feb 10 '13 05:02 CommanderAlchemy