-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add option to apply a systemd cgroup/slice #4
Comments
https://www.redhat.com/sysadmin/cgroups-part-four?extIdCarryOver=true&sc_cid=701f2000001OH7nAAG It is possible to include existing services in a new slice (eg music.slice) as follows: Add a drop in directory for your target service (eg mpd.service): Create a drop in file for that service: Assign the shares value: Restart: |
However the slice does not seem to get created until after a reboot |
Question to resolve: how to activate the new slice without a reboot? |
This may be linked to the dependencies of mpd.service. Perhaps asking mpd to stop itself might be necessary |
sudo service mpd stop Seems to do the trick |
The plug-in configuration should use a slider of 25-75% to identify cpu resource allocation Vs system |
Add distinct config for IO and memory as well, controlled by sliders |
On further research it is hard to see the benefit of controlling IO or memory, so that will not be part of the plugin. |
CPUQuota limits the % of CPU time on a single CPU. This could be useful in ensuring that the shielded processes cannot consume all of a CPU, by setting it to (eg) 95. This could be controlled by distinct config |
CPUShares=value |
No description provided.
The text was updated successfully, but these errors were encountered: