Coder Social home page Coder Social logo

Comments (11)

kakra avatar kakra commented on May 26, 2024

I wonder if adding 1-2 GB of swap would work around the issue? The Linux kernel memory manager does not really like to work completely without swap unless you carefully control memory resources of your processes (multi-generational LRU memory management should solve this, afaik, Google developers currently do upstream efforts for such a patch which is also or will be used for Android). Also, if you have /proc/pressure/{io,memory}, fossilize should be able to control its memory usage before it runs the system into OOM situations. This can be enabled through the kernel PSI feature.

from fossilize.

philipl avatar philipl commented on May 26, 2024

The kernel I've been using has /proc/pressure/{io,memory} so by itself that was certainly not enough to prevent this behaviour.

from fossilize.

philipl avatar philipl commented on May 26, 2024

I've tested with 2GB of swap and 32GB of swap, and even then it's happy to gobble up all memory and then OOM. The swapfile makes no difference to how fossilize behaves.

from fossilize.

kakra avatar kakra commented on May 26, 2024

What's the resident and virtual size of the fossilize processes when the problem builds up? Is it really fossilize itself, or does it rather dominate the cache and dirty pages?

from fossilize.

philipl avatar philipl commented on May 26, 2024

It's basically just fossilize itself. Here is the state of affairs just before I run out of 64GB on my system:

image

from fossilize.

philipl avatar philipl commented on May 26, 2024

FWIW, when all is said and done, my on disk cache size for SotTR is 1.3GB.

from fossilize.

kakra avatar kakra commented on May 26, 2024

Did you manually increase the fossilize worker number? "to speed things up"? It should run two workers by default, and put workers into T state if something is running out of control. All this does not seem to work for you. Or maybe you're running a flatpak version of Steam which may not be able to access PSI?

from fossilize.

philipl avatar philipl commented on May 26, 2024

This is an Ubuntu system with the standard deb bootstrap package that is then downloading and running the client. No flatpak cleverness or anything like that. I have not tried to tweak the number of workers - I didn't even know it was possible. It's just doing whatever it does.

from fossilize.

philipl avatar philipl commented on May 26, 2024

Just for fun, I added 128GB of swap and it was still happy to OOM.

from fossilize.

kakra avatar kakra commented on May 26, 2024

Maybe related to #196 which reproduces it using the pipeline cache and running fossilize manually?

from fossilize.

philipl avatar philipl commented on May 26, 2024

Latest update. With a 6.0.x kernel, the OOM killer no longer kicks in. I still experience multiple seconds of system unresponsiveness when memory is exhausted but the fossilize processes do back off in response to pressure and nothing gets killed. I guess the kernel requirements here are exceptionally steep.

from fossilize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.