Skip to content
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

Download transaction should not block other transactions #748

Open
sidt4 opened this issue May 2, 2024 · 0 comments
Open

Download transaction should not block other transactions #748

sidt4 opened this issue May 2, 2024 · 0 comments

Comments

@sidt4
Copy link
Contributor

sidt4 commented May 2, 2024

Download transaction (part of update-packages) blocks PK clients for longer periods of time, which is not a good thing.

E.g. When the user clicks Download in updates page of GNOME Software, no other PK dependent transaction works in GNOME Software until the entire update packages download is completed,

There have been discussions in the past on making PK multi-threaded, but due to PK backend limitations, this is not possible currently. Rather than pursuing multi-threading, we can just special case update-packages (download) transaction alone, and let other transactions run when package downloads are in progress.

Here are the top 30 worst-case execution times of the following 5 transactions on my system over the past couple of months.

  • install-packages
  • refresh-cache
  • remove-packages
  • search-file
  • update-packages(download)

Without update-packages (download) transaction:

Top execution times of transactions in seconds

With update-packages (download) transaction:

Top 30 execution times of transactions - update (in seconds)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant