This is an issue that's been ongoing for years. I am striving to get rid of it:
On scheduled or manual backups, when the pigz program zips the files, it occupies all cpu cores and does not leave room for other programs. This leads to failures of Apache (due to timeouts) on some occasions.
I am seeking a way to limit the cpu usage of that single program. I have thought about cgroups, but it does not seem to be suitable, because pigz runs as root and we cannot (don't want to) limit root in cgroups.
Does anyone know how to deal with this issue? Any ideas?
On scheduled or manual backups, when the pigz program zips the files, it occupies all cpu cores and does not leave room for other programs. This leads to failures of Apache (due to timeouts) on some occasions.
I am seeking a way to limit the cpu usage of that single program. I have thought about cgroups, but it does not seem to be suitable, because pigz runs as root and we cannot (don't want to) limit root in cgroups.
Does anyone know how to deal with this issue? Any ideas?