vladd148 Posted January 7, 2015 Share Posted January 7, 2015 Hey guys, currently running a modded install of KSP with B9, Texture Replacer, EVE and the Astronomer Pack as my main mods. Through hours of tweaking I have managed to get my RAM usage to around 2.5-2.7. However, I have noticed that about after a while in-game the RAM usage steadily increases until my game crashes. This occurs REGARDLESS of the part count, and what I am doing. (Example, I was testing out a 200 part plane and was running fine at 2.7 RAM and then last hopped on a 25 part plane and crashed). Is this normal?? Link to comment Share on other sites More sharing options...
Ruedii Posted January 7, 2015 Share Posted January 7, 2015 This is known as a memory leak, and is common in any program still in development. It's even more common with mods installed.You have several options (You aren't limited to just one):1. Reduce your mod load. (Texture Replacer, EVE and Astronomer's Pack can be very High on the RAM requirement, and you can trim out a lot of the parts on B9 that you don't use.)2. Install Advanced Texture Management (I know it's slow to load.)3. Switch to OpenGL4. Switch to 64bit Linux.Also you should check that all your mods are up to date. That will reduce memory issues as well. The latest B9 update cuts it's memory load in about a quarter. Link to comment Share on other sites More sharing options...
vladd148 Posted January 7, 2015 Author Share Posted January 7, 2015 Thank you very much for the reply! I will look to trim a few of the mods out Link to comment Share on other sites More sharing options...
AccidentalDisassembly Posted January 7, 2015 Share Posted January 7, 2015 Thank you very much for the reply! I will look to trim a few of the mods out I have the same issue as you, and find that it happens on stock too. Reducing textures/mods/whatever just slows it down, but at least it does that! Link to comment Share on other sites More sharing options...
crparris Posted February 9, 2015 Share Posted February 9, 2015 (edited) This is known as a memory leak, and is common in any program still in development. It's even more common with mods installed.You have several options (You aren't limited to just one):1. Reduce your mod load. (Texture Replacer, EVE and Astronomer's Pack can be very High on the RAM requirement, and you can trim out a lot of the parts on B9 that you don't use.)2. Install Advanced Texture Management (I know it's slow to load.)3. Switch to OpenGL4. Switch to 64bit Linux.Also you should check that all your mods are up to date. That will reduce memory issues as well. The latest B9 update cuts it's memory load in about a quarter.these options wont work. the memory leak will eventually crash your game; even in linux - its just a matter of time.. every screen change adds to RAM usage; eventually you WILL run out of ram. Edited February 9, 2015 by crparris Link to comment Share on other sites More sharing options...
Enceos Posted February 12, 2015 Share Posted February 12, 2015 Try doing the following steps:1. Exit to main menu2. Load back to your saveIf that doesn't reduce memory load then try starting a new game between the two steps.1. Exit to main menu2. Start a new game (or load another empty save)3. Exit to main menu4. Load back to your save Link to comment Share on other sites More sharing options...
Ruedii Posted February 12, 2015 Share Posted February 12, 2015 these options wont work. the memory leak will eventually crash your game; even in linux - its just a matter of time.. every screen change adds to RAM usage; eventually you WILL run out of ram.Since I presume you don't have experiencing with Linux memory addressing, I'll give it to you straight. Linux64 won't run out of memory very easily. It has 128 TB virtual memory space for usermode programs on current generation desktop processors. Additionally, Linux does not allow pages to be locked in memory by any user other than root, hence pages full of leaked memory WILL be swapped, and thus will only use swap space, and virtual memory, not physical memory.Honestly, if you are running nVidia drivers, they will crash before the system gets an OOM error.You are more likely to get an intraprogram page fault (i.e. a heap overflow or stack overflow), which can cause similar behavior to out of memory, without actually causing any physical problems on the OS level. This is caused when poorly written programs, such as the Unity3D libraries, allocate memory from the heap or stack without going through proper channels and just assumes there is enough memory already allocated in the heap or stack for the data. Link to comment Share on other sites More sharing options...
smjjames Posted February 12, 2015 Share Posted February 12, 2015 Since I presume you don't have experiencing with Linux memory addressing, I'll give it to you straight. Linux64 won't run out of memory very easily. It has 128 TB virtual memory space for usermode programs on current generation desktop processors. Additionally, Linux does not allow pages to be locked in memory by any user other than root, hence pages full of leaked memory WILL be swapped, and thus will only use swap space, and virtual memory, not physical memory.Honestly, if you are running nVidia drivers, they will crash before the system gets an OOM error.You are more likely to get an intraprogram page fault (i.e. a heap overflow or stack overflow), which can cause similar behavior to out of memory, without actually causing any physical problems on the OS level. This is caused when poorly written programs, such as the Unity3D libraries, allocate memory from the heap or stack without going through proper channels and just assumes there is enough memory already allocated in the heap or stack for the data.Would you call slowing down the system all of a sudden and needing a restart to fix it, an OS level problem? I have no idea why simply closing the game doesn't clear it and a restart is needed. And that would explain why I sometimes see NVIDIA have a crash and recovery shortly before the game spazzes out. Link to comment Share on other sites More sharing options...
Captain Planet Posted February 23, 2015 Share Posted February 23, 2015 Really would love to see this issue addressed or at least acknowledged by Squad before the game hits 1.0. It's a major problem that is continually cropping up in both vanilla and modded games. At this point I'm looking at running linux just for one game, which is ridiculous. Link to comment Share on other sites More sharing options...
smjjames Posted February 24, 2015 Share Posted February 24, 2015 Really would love to see this issue addressed or at least acknowledged by Squad before the game hits 1.0. It's a major problem that is continually cropping up in both vanilla and modded games. At this point I'm looking at running linux just for one game, which is ridiculous.Except that it's a problem with Linux as well, switching to Linux doesn't make the problem go away. Link to comment Share on other sites More sharing options...
Captain Planet Posted February 24, 2015 Share Posted February 24, 2015 Except that it's a problem with Linux as well, switching to Linux doesn't make the problem go away.Well, that's just depressing. Link to comment Share on other sites More sharing options...
Eddie Rod Posted May 26, 2015 Share Posted May 26, 2015 Why is this still not fixed in 1.0.2? Link to comment Share on other sites More sharing options...
sal_vager Posted May 26, 2015 Share Posted May 26, 2015 It's a different issue, and this thread is old, from before 1.0Closing. Link to comment Share on other sites More sharing options...
Recommended Posts