[Popcon-developers] Bug#483465: popularity-contest: cronjob should use ionice
- Subject: [Popcon-developers] Bug#483465: popularity-contest: cronjob should use ionice
- From: pere@hungry.com (Petter Reinholdtsen)
- Date: Sun, 8 Jun 2008 19:08:45 +0200
- Message-id: <[🔎] 20080608170845.GC16185@klodrik.uio.no>
- In-reply-to: <20080528205321.19317.27809.reportbug@solid.paris.klabs.be>
- References: <20080528205321.19317.27809.reportbug@solid.paris.klabs.be>
[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: