meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
linux:prepare:prepare:firefox [2020/10/28 07:42] – created niziak | linux:prepare:prepare:firefox [2023/08/22 10:42] – niziak | ||
---|---|---|---|
Line 4: | Line 4: | ||
* `about: | * `about: | ||
* `browser.tabs.allowTabDetach` | * `browser.tabs.allowTabDetach` | ||
+ | |||
+ | |||
+ | ===== limit memory usage ===== | ||
+ | |||
+ | ==== cgroups ==== | ||
+ | |||
+ | References: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | But now we have some modern systemd based tools. | ||
+ | |||
+ | ==== systemd ==== | ||
+ | |||
+ | <file bash / | ||
+ | #!/bin/bash | ||
+ | systemd-run --user -G --scope --unit=run-firefox -p OOMPolicy=continue -p MemoryMax=2G -p MemorySwapMax=2G -p " | ||
+ | </ | ||
+ | |||
+ | See [[https:// | ||
+ | |||
+ | Verify limits: | ||
+ | <code bash> | ||
+ | systemctl list-units --user --type scope | ||
+ | systemctl status --user run-firefox.scope | ||
+ | |||
+ | | ||
+ | </ | ||
+ | |||
+ | ==== firejail ==== | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt install firejail | ||
+ | |||
+ | firejail --noprofile --rlimit-as=5g firefox | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | | ||
+ | Set the maximum size of the process' | ||
+ | </ | ||
+ | |||
+ | [[https:// | ||