Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Can browser.tabs.unloadOnLowMemory be enabled and will it work

  • 3 回覆
  • 0 有這個問題
  • 138 次檢視
  • 最近回覆由 TyDraniu

In a thread discussion about the flag, "browser.tabs.unloadOnLowMemory" dated 23-Nov-2022 (https://news.ycombinator.com/item?id=33706117) it was mentioned that we've disabled tab unloading on Linux because low-memory detection just didn't work.

Has the issue been fixed? Does the low-memory detection work in Linux? Can it be enabled now?

Does it get triggered when SWAP is being used? Or when system free RAM falls say to about 25% of total physical RAM?

In a thread discussion about the flag, "browser.tabs.unloadOnLowMemory" dated 23-Nov-2022 (https://news.ycombinator.com/item?id=33706117) it was mentioned that we've disabled tab unloading on Linux because low-memory detection just didn't work. Has the issue been fixed? Does the low-memory detection work in Linux? Can it be enabled now? Does it get triggered when SWAP is being used? Or when system free RAM falls say to about 25% of total physical RAM?

所有回覆 (3)

I don't think so. Some work has been done under https://bugzilla.mozilla.org/show_bug.cgi?id=1752625 and https://bugzilla.mozilla.org/show_bug.cgi?id=1782178, but it looks like it's not ready yet.

Will it get triggered when SWAP is being used? Or when system free RAM falls say to about 25% of total physical RAM? Or will it use the commit memory to determine when to trigger?

Tab Unloading is a feature that automatically unloads tabs to prevent Firefox from crashing due to insufficient memory when the system’s available memory is low.

The feature consists of two parts: memory pressure detector and tab unloader. When the memory pressure detector detects a low memory situation, it triggers the tab unloader that prioritizes tabs and chooses a tab to unload, or if there are no unloadable tabs, triggers the internal memory-pressure warning allowing the browser’s subsystems to reduce their memory use.

There are two modes to prioritize tabs.

Firefox basically unloads tabs in least-recently-used order, excluding tabs playing media, using Picture-in-Picture, or using WebRTC. Pinned tabs are deprioritized and are less likely to be unloaded.

When there are more tabs opened, in most cases when there are more than eleven tabs, Firefox does extra calculations identifying processes hosting tabs and estimates memory usage of each tab, and then unloads tabs with larger memory and more processes that will be terminated by tab unloading.

The about:unloads page shows how Firefox prioritizes tabs and which tab will be unloaded when the tab unloader is triggered. You can trigger tab unloading manually by clicking the Unload button in the page.

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題