You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: "flatpak update uses insane amount of RAM" #6255
This issue is not a report of a security vulnerability (see here if you need to report a security issue).
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.
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.
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.
Activity
ReversePolishLogic commentedon Aug 4, 2025
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.
sbenve commentedon Dec 12, 2025
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.
razzeee commentedon Dec 13, 2025
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