I’m using linux mint 21.3, and a process (brave aka chrome) sometimes memory leaking, so eats all the RAM, and then linux goes into swap death loop, when everything freezes (sometimes the mouse cursor is moving), and nothing can’t be done, i can just see the HDD led blinking, and do a reset. Is there a way to make the system automatically detect swap death loop, and close the biggest ram user process, and so on?

  • palordrolap@kbin.social
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    You could probably rig something up to periodically check RAM usage and if it’s dangerously high, send a system notification - or make an xmessage popup - to tell you to restart Brave ASAP. That is, before the death loop begins in the first place.

    You might also want to install an extension that unloads tabs that haven’t been accessed in a while, especially if you’re a tab hoarder.

    I don’t use Brave, so I’m making assumptions that such an extension exists and that Brave can be restarted without losing all tabs, etc.