meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:prepare:prepare:firefox [2023/08/22 08:52] – 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 ===== | ===== limit memory usage ===== | ||
+ | |||
+ | ==== cgroups ==== | ||
+ | |||
+ | References: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | But now we have some modern systemd based tools. | ||
==== systemd ==== | ==== systemd ==== | ||
+ | |||
+ | [[https:// | ||
<file bash / | <file bash / | ||
- | systemd-run --user -G --scope --unit=firefox -p OOMPolicy=continue -p MemoryMax=2G -p MemorySwapMax=2G-p " | + | # |
- | </code> | + | systemd-run --user -G --scope --unit=run-firefox -p OOMPolicy=continue |
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | <file bash / | ||
+ | # | ||
+ | systemd-run --user -G --scope --unit=run-firefox -p OOMPolicy=continue -p MemoryHigh=50% -p MemoryMax=60% | ||
+ | </file> | ||
See [[https:// | See [[https:// | ||
+ | |||
+ | Verify limits: | ||
+ | <code bash> | ||
+ | systemctl list-units --user --type scope | ||
+ | systemctl status --user run-firefox.scope | ||
+ | |||
+ | | ||
+ | </ | ||
==== firejail ==== | ==== firejail ==== |