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"