meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
linux:prepare:prepare:firefox [2020/10/28 07:42] – created niziak | linux:prepare:prepare:firefox [2023/10/17 07:13] – niziak | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Disable Detachable Tabs in Mozilla Firefox ===== | ===== Disable Detachable Tabs in Mozilla Firefox ===== | ||
- | * `about: | + | * '' |
- | * `browser.tabs.allowTabDetach` | + | * '' |
+ | |||
+ | |||
+ | ===== limit memory usage ===== | ||
+ | |||
+ | ==== cgroups ==== | ||
+ | |||
+ | References: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | But now we have some modern systemd based tools. | ||
+ | |||
+ | ==== systemd ==== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | <file bash / | ||
+ | # | ||
+ | systemd-run --user -G --scope --unit=run-firefox -p OOMPolicy=continue -p MemoryHigh=4G -p MemoryMax=5G -p MemorySwapMax=2G -p " | ||
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | <file bash / | ||
+ | # | ||
+ | systemd-run --user -G --scope --unit=run-firefox -p OOMPolicy=continue -p MemoryHigh=50% -p MemoryMax=60% -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:// | ||