• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

DarkArcana

Recruit
16 Badges
Mar 11, 2015
2
0
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Necroids
I was playing Cities: Skylines for a few hours. Had it in Windowed mode. Steam overlay was turned off. Paused it and left it for maybe an hour and came back, it was a little slow. I looked at my memory usage and saw that I was using all of my RAM and some swap space. I have swap set really low (2GB) because I almost never need it with 16GB of ram. So I figured I should save and shut down the game to clear any memory leak there might have been. After shutting it down, the memory was still being used. I ran `ps aux | grep steam` and also for cities.x64 (the linux binary). All of the processes for the game were still running even though I shut it down. Ok, so I killed the processes, but instead of them dying (sigterm), the processes for the game turned into zombie processes. I made a post on Reddit and was sent this way. In the post, I linked this picture (http://gyazo.com/adc345763660a85426647b2b4f321e8c) of the top program. HTOP wouldn't even work :|. This is after trying to kill the processes. You can see they are still using a LOT of memory. In the end, I had to completely restart my system to regain the resources.

My specs: - AMD FX-8350 - 16GB DDR3 1800 ram - Nvidia GeForce 650 Ti - Samsung 850 Pro SSD - ArchLinux (kde kf5 if the de is important). Nvidia 340.76-2 driver.

Let me know if you need any more specific information.
 
Upvote 0
Memory leak

Looks like I may be having a similar memory leak issue on my system, only a bit worse since mine has less memory to begin with (8GB instead of 16GB). I am experiencing system lock-ups and hard-drive thrashing when loading games, exiting the game, and even when hitting population milestones. The game locks up for a few minutes every time before showing the new population milestone screen.

According to htop, this is the system usage just while in the main menu:

Screenshot from 2015-03-11 22:52:10.png

This is the system usage while I have a city loaded (population of ~3800):

Screenshot from 2015-03-11 22:57:16.png

And this is the system usage after I have exited the game (I had to use "killall -9 Cities.x64" after this to get rid of all the left-over threads using up my RAM):

Screenshot from 2015-03-11 23:02:54.png

I'm also on Arch Linux and using the NVidia binary driver, but in my case I'm on a laptop, and using bumblebee and primusrun to make use of my NVidia card.

This is the contents of my devinfo.txt:

Code:
Machine ID: 408c057dca344ded92eab099587c2b36
Model: PC
OS: Linux 3.18 unknown 64bit
Language: English
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz (4 core(s))
System Memory: 7876
Gfx Device: GeForce GT 630M/PCIe/SSE2
Gfx Version: OpenGL 4.5 [4.5.0 NVIDIA 346.47]
Gfx Memory: 1024
Gfx Shader Model: 30
Game Version: 1.0.5
 
Posted the same issue as a new thread myself. Can confirm. Particularly bad for streaming. Open Broadcast Software basically bottoms out after about 10 minute and my stream drops to about 1 FPS.

I checked Processes tab and, sure enough, it's like triple the memory usage as anything I've ever seen.