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
It looks like there is some memory there is not released when calling package_sack.update_and_load_enabled_repos(True)
from python when the cache is expired.
I have created some test code located here https://github.com/timlau/apitest/tree/main/dnf5/memleak
it does some basic dnf5 setup and get the number of updates and clean up the base each time
with a fresh cache it run 3x and memory is released each time.
If I run "dnf5 clean expire-cache" before running the same code, the amount of allocated memory is increased at each run
Tested on dnf5.x86_64 5.1.17-1.fc40
I use python3-memray to track the memory usage
The text was updated successfully, but these errors were encountered:
It looks like there is some memory there is not released when calling package_sack.update_and_load_enabled_repos(True)
from python when the cache is expired.
I have created some test code located here
https://github.com/timlau/apitest/tree/main/dnf5/memleak
it does some basic dnf5 setup and get the number of updates and clean up the base each time
with a fresh cache it run 3x and memory is released each time.
If I run "dnf5 clean expire-cache" before running the same code, the amount of allocated memory is increased at each run
Tested on dnf5.x86_64 5.1.17-1.fc40
I use python3-memray to track the memory usage
The text was updated successfully, but these errors were encountered: