nefelim4ag / Ananicy

Ananicy - is Another auto nice daemon, with community rules support (Use pull request please)
GNU General Public License v3.0
567 stars 79 forks source link

Feature Request: Interval Wait To Renice #460

Open Sepero opened 1 year ago

Sepero commented 1 year ago

I use ananicy to renice user bash shells to a lower priority, but keep ssh at a high priority. This becomes a problem when some shell script has a lot of loops, or repeated shell calls. Each new spawn of bash uses CPU cycles, and ananicy is trying to renice every one, and ananicy then starts eating up my CPU as well. Ananicy ends up consuming as much, if not more CPU than the actual processes being run.

This type of event could happen with any other program being programmatically looped on the system, not just bash. Renicing every process immediately as it is spawned may not always be necessary nor desirable. It would be valuable to have an option to tell ananicy, "only renice processes every X number of seconds"

Interval Wait X Seconds To Renice Processes Again