3 ms·
I’ve case you are serious, replace chrome with: #!/bin/bash echo 1000 > /proc/$$/oom_score_adj path_to_real_chrome
by hinoki 6y ago
I’ve case you are serious, replace chrome with:
#!/bin/bash
echo 1000 > /proc/$$/oom_score_adj
path_to_real_chrome
- mappu 6y agoWhat's the maintainable way of doing this, that can survive chrome package updates and also handle http URIs opened from other applications?
- steerablesafe 6y agoHow do you typically start chrome? I guess you could just change the .desktop file somewhere in $HOME, system updates don't touch that.
- zbentley 6y agoWon't that just OOM-shield the shell launching chrome and not the chrome process itself? I think you want "exec path_to_real_chrome".