Skip to content

[Bug]: "flatpak update uses insane amount of RAM" #6255

Open

Description

@netlore

Checklist

Flatpak version

1.16.1

What Linux distribution are you using?

Ubuntu

Linux distribution version

25.10 development release.

What architecture are you using?

x86_64

How to reproduce

Update a large flatpak, approaching half the size of your RAM, and the system will run out of ram and OOM Killer will kill the "flatpak update" process.

I'm trying to update "net.mkiol.SpeechNote.Addon.amd" on a laptop with 16GB RAM and I cannot... even if I load nothing else.

Expected Behavior

flatpak update should successfully update large flatpaks.

Actual Behavior

flatpak runs out of memory after filling 16GB of RAM, while updating a 7.6GB flatpak.

Additional Information

I think it tries to hold the download in memory and unpack it... certainly the RSS memory mirrored the download while the file was being downloaded, but the system did not run out of memory until it tried to unpack it.

It does not appear to be using any of the tmpfs filesystems while downloading at least.

Activity

  1. ReversePolishLogic commented on Aug 4, 2025

    @ReversePolishLogic

    I was able to reproduce this with identical results except I am trying to install rather than update. I also tried using the --no-deploy option thinking this could bifurcate the process of installing but it has the same result.

  2. sbenve commented on Dec 12, 2025

    @sbenve

    Same here.
    Running MX Linux 25, based on Debian 13, with systemd.
    Downloads OK with 1GB of RAM left, but when it stops the download to unpack it, crashes with "killed" message.
    flatpak install does not use /tmp nor /var/tmp to store the downloaded files

    Some systems are maxed out of RAM capacity and this just limits the software that can be installed on them.

  3. razzeee commented on Dec 13, 2025

    @razzeee
    Contributor

    Can you confirm, that this is with a OSTree repo (e.g. flathub?)

    If that's the case, it should probably be raised with OSTree https://github.com/ostreedev/ostree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions