Skip to content

[consumption] process niceness extension #449

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

Closed
ramunasd opened this issue May 29, 2018 · 2 comments · Fixed by #467
Closed

[consumption] process niceness extension #449

ramunasd opened this issue May 29, 2018 · 2 comments · Fixed by #467

Comments

@ramunasd
Copy link
Contributor

With PHP it is doable with just one line:

proc_nice($priority);

Where priority is integer from -20 to 19, but only values from 0 onwards is allowed without root permissions. Default is 0.

http://php.net/manual/en/function.proc-nice.php

Would be very usefull for environments with limited CPU power and where (in terms of CPU time) some consumers must overcome other not so important processes.

@makasim
Copy link
Member

makasim commented May 29, 2018

Would you like to submit PR?

@ramunasd
Copy link
Contributor Author

it's on my todo list :)

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

Successfully merging a pull request may close this issue.

2 participants