[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Popcon-developers] Bug#483465: popularity-contest: cronjob should use ionice



[Franklin Piat]
> popularity-contest's cronjob (/etc/cron.daily/popularity-contest)
> should use ionice in order to be [even] less intrusive.

Make sense to me.

> I've attached a simple patch.

I suspect adding something like this to the script is less intrusive:

  ionice -c2 -p $$ > /dev/null 2>&1 || true

It change the nice level on the script process.  Btw, why did you
choose class 2 (best-effort) instead of class 3 (idle)?  I thought
class 2 was the default, thus making the operation a no-op?

Happy hacking,
-- 
Petter Reinholdtsen





Reply to: