-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yumex_updater_systray memory leak (dnf5) #80
Comments
How to reproduce sudo dnf install python3-memray cd to git checkout make memray-updater-live In a terminal run dbus-send --session --print-reply --dest=dk.yumex.UpdateService /dk/yumex/UpdateService dk.yumex.UpdateService.RefreshUpdates boolean:false
dbus-send --session --print-reply --dest=dk.yumex.UpdateService /dk/yumex/UpdateService dk.yumex.UpdateService.RefreshUpdates boolean:false
dnf5 clean expire-cache
dbus-send --session --print-reply --dest=dk.yumex.UpdateService /dk/yumex/UpdateService dk.yumex.UpdateService.RefreshUpdates boolean:false watch the heap memory dont settle at the same level if metadata is refreshed |
testing using the build-in metadata expire dbus-send --session --print-reply --dest=dk.yumex.UpdateService /dk/yumex/UpdateService dk.yumex.UpdateService.RefreshUpdates boolean:true |
Looks like it is a memory leak in dnf5 |
created dnf5 upstream issue |
there is an upstream librepo PR for a solution to the memory leak |
PR is added upstream |
the fix will be available in librepo > 1.18.0 |
the fix has been released and pushed to Fedora 40 |
looks like it fixed the memory leak in dnf |
When running an update check with expired metadata not all allocated memory is released after the check is executed.
It is not only when running the build-in metadata expire, running
also trigger the issue, every time metadata is downloaded during the check then a little extra memory is used.
The text was updated successfully, but these errors were encountered: