Sample Header Ad - 728x90

Is there a way to set a hard cap/limit on how much RAM Chrome can use?

5 votes
1 answer
5794 views
I'm using Linux on my Steam Deck (SteamOS/Arch Linux). Is there a method to set a hard cap/limit on the maximum total RAM Chrome can use with command line arguments? (to 8 GB out of the device's max 16 GB) Chrome works just fine with tons of tabs open on my Windows laptop with 8 GB of RAM, and I can always kill individual processes with Chrome's built-in task manager. But on the Steam Deck's Arch Linux, if I forget to use Chrome's built-in task manager to kill tabs/processes, having too many tabs of certain poorly optimized websites can cause the entire machine to hang. Then I have no choice but to hard reset by holding the power button. I already use uBlock Origin to clean up websites, but that doesn't seem to be enough. --TL;DR-- I want to use command-line arguments to set a hard cap on the maximum total RAM that Chrome can use to 8 GB out of the device's 16 GB of RAM. If I use the KDE Menu Editor, I can directly add command-line arguments to Chrome. The command-line to execute is: run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u %U @@ Is there an argument I can add to do this? Looking for something like: "--max_ram_usage 8192MB"
Asked by JLHack7 (51 rep)
Jun 25, 2023, 09:11 PM
Last activity: Jun 25, 2023, 09:51 PM