meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:prepare:firefox [2025/01/05 14:03] – removed - external edit (Unknown date) 127.0.0.1 | linux:prepare:firefox [2025/09/26 08:59] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Firefox ====== | ||
| + | |||
| + | ===== certificate problem, but option to accept anyway has gone ===== | ||
| + | " | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ===== Disable Detachable Tabs in Mozilla Firefox ===== | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * write '' | ||
| + | * select '' | ||
| + | * set ot to '' | ||
| + | |||
| + | |||
| + | ===== limit memory usage ===== | ||
| + | |||
| + | ==== about: | ||
| + | |||
| + | * '' | ||
| + | |||
| + | |||
| + | ==== cgroups ==== | ||
| + | |||
| + | References: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | But now we have some modern systemd based tools. | ||
| + | |||
| + | |||
| + | ==== systemd ==== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | <file bash / | ||
| + | #!/bin/bash | ||
| + | systemd-run --user -G --scope --unit=run-firefox -p OOMPolicy=continue -p MemoryMaxigh=4G -p MemoryMax=5G -p MemorySwapMax=2G -p " | ||
| + | </ | ||
| + | |||
| + | or | ||
| + | |||
| + | <file bash / | ||
| + | #!/bin/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 | ||
| + | |||
| + | | ||
| + | </ | ||
| + | |||
| + | Modify limits without restarting firefox: | ||
| + | <code bash> | ||
| + | systemctl set-property --user run-firefox.scope MemoryMax=8G MemorySwapMax=10G | ||
| + | </ | ||
| + | |||
| + | ==== put other firefox-esr under jail ==== | ||
| + | |||
| + | <code bash> | ||
| + | apt-get install cgroup-tools | ||
| + | |||
| + | sudo cgclassify -g memory, | ||
| + | </ | ||
| + | |||
| + | ==== firejail ==== | ||
| + | |||
| + | <code bash> | ||
| + | sudo apt install firejail | ||
| + | |||
| + | firejail --noprofile --rlimit-as=5g firefox | ||
| + | |||
| + | </ | ||
| + | |||
| + | < | ||
| + | | ||
| + | Set the maximum size of the process' | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | |||