Bug 1060444 - Suggestion: Low priority for update processes
Summary: Suggestion: Low priority for update processes
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-01 20:05 UTC by Fdor
Modified: 2014-02-25 14:42 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-25 14:42:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Fdor 2014-02-01 20:05:15 UTC
If I launch the Fedora graphical updater (gpk-update-viewer), I see that it launches other commands (yumBackend.py, apply-delta-rpm, etc), and all of them run with normal priority (0).

While my system is being updated, I do other things (play music, edit files, etc), and I note that the update is eating cpu, because the things I'm doing are not too fluid.

So I would like to give the suggestion of changing the default priority of gpk-update-viewer (and the priority of all processes that are launched by it) to a low priority (for example, the equivalent of "nice -n 19 <command>"), in order to give more cpu to the user programs.

Comment 1 Fdor 2014-02-22 15:02:12 UTC
Any feedback on the suggestion? (good/bad, agree/disagree, etc)

Comment 2 Rex Dieter 2014-02-23 03:44:37 UTC
CPU priorities are already implemented, see /etc/PackageKit/PackageKit.conf entries for
BackendSpawnNiceValue
BackendSpawnNiceValueBackground

Probably could do IO priorities too (not implemented as far as I'm aware).

Now, whether the defaults should be modified... especially in f19... the answer is likely no (bugzilla isnt really the place for decisions like this).

Comment 3 Fdor 2014-02-23 14:06:16 UTC
Thank you for the info.

In my PackageKit.conf (fedora 19) the default values are:

    BackendSpawnNiceValue=0
    BackendSpawnNiceValueBackground=10

I would set:

    BackendSpawnNiceValue=19
    BackendSpawnNiceValueBackground=19

Could the default values be changed in future fedora releases? (fedora 21 for example)

Please re-post the suggestion at the adecuate forums, if bugzilla is not the correct place. If you can't, please let me know the forums and I will try to post there.

Thank you

Comment 4 Fdor 2014-02-23 14:45:39 UTC
I have re-posted the suggestion to the PackageKit mail list:

    http://lists.freedesktop.org/mailman/listinfo/packagekit

My message isn't shown for now:

    http://lists.freedesktop.org/archives/packagekit/2014-February/thread.html

Probably an admin will have to review it before being shown.

Comment 5 Rex Dieter 2014-02-23 18:03:33 UTC
Most mailing lists only allow posts from subscribers, so if you want to participate in the discussion there, it would be best to subscribe first.

Comment 6 Fdor 2014-02-23 20:28:41 UTC
Ok, I have just subscribed, and re-sent the message.
Still not shown, probaly takes some time. Tomorrow I'll review the list.

Comment 7 Fdor 2014-02-24 19:38:39 UTC
My fail. I sent the message to an incorrect email address.
The suggestion is shown now:

http://lists.freedesktop.org/archives/packagekit/2014-February/thread.html

Comment 8 Rex Dieter 2014-02-25 14:42:33 UTC
Thanks, let's let the conversation take it's course upstream.


Note You need to log in before you can comment on or make changes to this bug.