Skip to main content

Performance

Two Ways to Give Memory Back​

A browser that has been open all day tends to hold more memory than it is actually using. Floorp ships two independent mechanisms for clawing some of it back, both collected in Floorp Hub > Performance (about:hub#/features/performance).

  • Tab Auto Unload stops inactive pages when total memory use crosses a threshold you set. The pages really do go away, and they reload when you come back to them.
  • Idle memory reclaim leaves every page alone and simply asks the browser to hand memory it has already freed back to the operating system, after a period without keyboard or mouse input.

Both are off by default, and each can be used without the other. The memory figures both features use are the whole browser's: the parent process plus every content process, not a single tab.

Tab Auto Unload​

When the browser's resident memory stays above the threshold, Floorp starts unloading inactive tabs — least recently used first, one tab per check — until memory falls back under it.

A tab that has been unloaded is not closed. Its entry stays in the tab bar, and selecting it reloads the page: form state, scroll position, and video position are whatever the site restores, and pages that cannot be reloaded will not be offered for unloading.

  • Enable tab auto unload

    Turns the feature on. Disabled by default.

  • Unload when memory usage exceeds (MB)

    The threshold for the whole browser. Default 2048. Setting it to 0 means "unload as soon as the tab is eligible", which is rarely what you want.

  • Only unload tabs inactive for (minutes)

    How long a tab must have been in the background before it may be unloaded. Default 10, minimum 1.

  • URLs excluded from unloading

    Pages that must never be unloaded automatically. Type a pattern and press Enter or Add; the × on each row removes it. Empty and duplicate patterns are ignored.

Checks run about every 30 seconds, and each check unloads at most one tab — process memory does not drop the moment a tab is discarded, so discarding several from one reading would overshoot the threshold by a wide margin.

Exclusion Patterns​

Patterns are matched case-insensitively against the tab's URL.

  • example.com — matches example.com and every subdomain of it (mail.example.com, docs.example.com). A bare domain is not matched as a substring of unrelated URLs.

  • *.example.com — the same thing; the leading *. is accepted for familiarity, and it does include the domain itself.

  • https://example.com/path/* — a full URL where * stands for any run of characters. Without a * a full URL is treated as a prefix, so https://mail.example.com also covers everything below it.

Tabs covered by these patterns are marked as undiscardable, which means the exclusions also stop Firefox's own low-memory tab unloading. They stay in force even while Tab Auto Unload itself is switched off.

note

If you used the older "Tab Sleep Exception" list, its entries were carried over to this list once, and they keep their original meaning (a loose match anywhere in the URL).

What Is Never Unloaded​

Whatever the threshold says, Floorp does not unload:

  • the tab you are currently using
  • pinned tabs
  • tabs playing audio
  • Picture-in-Picture
  • tabs in a call or otherwise holding a WebRTC stream
  • tabs in a private window
  • anything matching an exclusion pattern

A tab that shows an unsaved-form warning when closed (or otherwise refuses to be discarded) is skipped as well, and the next candidate is tried.

Idle Memory Reclaim​

warning

This feature is experimental and off by default.

When the browser frees memory, the engine tends to keep those pages mapped instead of returning them to the operating system, so a long-running Floorp can sit on hundreds of megabytes it has no use for. Idle memory reclaim waits for a quiet period with no keyboard or mouse input, then runs garbage collection, cycle collection, and a jemalloc purge to give that memory back.

  • Reclaim memory while the browser is idle

    Turns the feature on. Disabled by default.

  • Idle time before reclaiming (seconds)

    How long the browser must sit untouched before a reclaim is considered. Default 60, minimum 60.

  • Minimum interval between reclaims (seconds)

    A throttle, so reclaims do not turn into constant CPU work. Default 300, minimum 60.

  • Only reclaim when memory usage exceeds (MB)

    Skips the reclaim when the browser is using less than this. Default 400.

Idle state is re-checked about once a minute, so an unattended browser keeps reclaiming rather than reclaiming once and going quiet.

Two things are worth knowing before switching it on:

  • Being idle is not the same as being inactive. Video playback, calls, and screen sharing do not suspend the reclaim — the browser considers you away from the keyboard, not away from the machine.
  • A reclaim can pause the browser. It is a synchronous memory sweep, so it may be noticeable if you come back at exactly the wrong moment. Shorter intervals make that more frequent.

One exception to the memory floor: if the browser is holding ghost windows (windows already closed but still referenced, a direct leak signal), the reclaim runs regardless of the "only when memory usage exceeds" value.

Which One Do I Want?​

  • Memory creep over a long session, and you would rather nothing reloaded? Idle memory reclaim. It touches no page.
  • Too many tabs open, and you are fine with cold tabs reloading? Tab Auto Unload, with exclusions for the sites you keep open (mail, dashboards, editors) so they stay warm.
  • Both. They do not conflict: one releases memory the browser already freed, the other stops pages from using it in the first place.

To protect a site from Firefox's own low-memory unloading without enabling anything else, add it to the exclusion list and leave Tab Auto Unload off.

Where the Settings Live​

For anyone hand-editing or scripting, the Hub page writes these prefs:

  • floorp.tabs.autoUnload — Tab Auto Unload settings as a JSON string
  • floorp.tabs.autoUnload.stats — per-session counters (unloadCount, timestamps)
  • floorp.memory.idleReclaim — idle reclaim settings as a JSON string
  • floorp.memory.idleReclaim.stats — reclaim counters and bytes freed
  • floorp.tabs.sleep.exclusion — retired; read once for migration, then cleared

The settings pages clamp values to their minimums, and unsupported types fall back to the defaults, so a pref edited by hand cannot drive either feature faster than the page allows.