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

2008-06-08 Thread Bill Allombert
On Sun, Jun 08, 2008 at 07:08:45PM +0200, Petter Reinholdtsen wrote:
 [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 21 || true

Personnally, I do not like it, because this cause yet another package
(schedutils) to be used by popcon, and for which the 'vote' data will
be meaningless (we will have installed=vote).

Furthermore, I think this setting should be configured at the cron
programm level, not for each cronjob separately.

Cheers,
-- 
Bill. [EMAIL PROTECTED]

Imagine a large red swirl here. 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2008-06-08 Thread Franklin PIAT
Hello,

On Sun, 2008-06-08 at 19:42 +0200, Bill Allombert wrote:
 On Sun, Jun 08, 2008 at 07:08:45PM +0200, Petter Reinholdtsen wrote:
  [Franklin Piat]
   popularity-contest's cronjob (/etc/cron.daily/popularity-contest)
   should use ionice in order to be [even] less intrusive.
 
 Personnally, I do not like it, because this cause yet another package
 (schedutils) to be used by popcon, and for which the 'vote' data will
 be meaningless (we will have installed=vote).

ionice is now included in the util-linux package.

 Furthermore, I think this setting should be configured at the cron
 programm level, not for each cronjob separately.

That would be much nicer ;)

But since nice was never enabled globally for cron jobs, I didn't
considered asking for that.

For instance, there might be some cron jobs that actually restart a
daemon (instead of reload)...

We could reassign the bug to cron, but I'm afraid it might not be
applied in Lenny (because we're so close from freeze, and it's might be
considered difficult to the side-effects).

Franklin




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]