Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565418 - Rework $PORTAGE_NICENESS and $PORTAGE_IONICE_COMMAND
Summary: Rework $PORTAGE_NICENESS and $PORTAGE_IONICE_COMMAND
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-10 21:02 UTC by xpue
Modified: 2020-11-07 17:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xpue 2015-11-10 21:02:31 UTC
Currently i have script as my PORTAGE_IONICE_COMMAND which sets cpu scheduling policy to idle, and scheduling  class also to idle.
>chrt --idle --pid 0 $1
>ionice --class 3 --pid $1

I think PORTAGE_NICENESS and PORTAGE_IONICE_COMMAND are not very well suited to what they suppoosed to do, because first only sets niceness but not scheduling class, and second does not allow to run multiple commands without use of external script.

Reproducible: Always
Comment 1 aperion 2020-11-07 16:30:23 UTC
I just recently noticed that PORTAGE_NICENESS was not working anymore. Apparently because of the autogroup feature. I was not able to make it work using autogroup. Now I aliased emerge to "chrt --idle 0 emerge", which is effective.

It would be nice if portage could do that via configuration, potentially  replacing the old variant.
I think this could improve the user experience greatly. Because without this, I could not even watch video streams while emerge was active.