SickGear/init-scripts
Ian d7210ac465 Add CPU Quota for SickGear
I have had a lot of issues with SickGear eating up every resource that I give to it. Most people are not going to be running SickGear on it's own dedicated hardware. While you can do a lot of resource management with virtualization, even then, I would imagine you're stacking other services with this. At one point, I was setting SickGear to restart nightly to keep the process from completely locking up my system. However, systemd has given us some pretty neat resources to handle this sort of stuff.

I'm proposing we set a 50% CPU quota on SickGear, as it helps keep resources freed for other processes. If the user wants to dedicate all resources, then they have the option of changing the service file. However, this sets a pretty good precedent for resource allocation.

For now, I'm only setting a CPU quota, however, there are FAR MORE options in case we want to further manage the resources which SickGear can use. https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
2016-04-25 19:32:48 -05:00
..
init.debian Change sickbeard variables to sickgear variables in init-scripts 2015-11-20 23:52:29 +08:00
init.fedora Change sickbeard variables to sickgear variables in init-scripts 2015-11-20 23:52:29 +08:00
init.freebsd Change sickbeard variables to sickgear variables in init-scripts 2015-11-20 23:52:29 +08:00
init.gentoo Change sickbeard variables to sickgear variables in init-scripts 2015-11-20 23:52:29 +08:00
init.solaris11 Change sickbeard variables to sickgear variables in init-scripts 2015-11-20 23:52:29 +08:00
init.systemd Add CPU Quota for SickGear 2016-04-25 19:32:48 -05:00
init.ubuntu Change sickbeard variables to sickgear variables in init-scripts 2015-11-20 23:52:29 +08:00