[mythtv-commits] Ticket #3421: Enhancement: use of sys_ioprio_set for jobqueue

MythTV mythtv at cvs.mythtv.org
Sun May 6 05:12:02 UTC 2007


#3421: Enhancement: use of sys_ioprio_set for jobqueue
-------------------------+--------------------------------------------------
 Reporter:  anonymous    |       Owner:  ijr    
     Type:  enhancement  |      Status:  new    
 Priority:  minor        |   Milestone:  unknown
Component:  mythtv       |     Version:  head   
 Severity:  low          |  
-------------------------+--------------------------------------------------
 I've attached a patch that allows settings of I/O priorities via
 sys_ioprio_set for jobqueue jobs.  I find this useful for my master back-
 end which I like to have set to process two job-queue jobs simultaneously
 - at the same time I want to ensure that this does not get in the way of
 recording (my master back-end has 4 inputs (3 local and 1 remote) plus 2
 outputs (1 local and 1 remote)).

 The patch is not really production ready and I don't know if anyone else
 will really be interested in it, however I thought I'd better submit it so
 people at least have a chance to reject it ;-)

 BTW, this patch also fixes a bug I noticed in the setting of normal
 priorities - previously the priority was set before the job process was
 spawned and (I assume) reset back to its previous value after the job was
 spawned.  Unfortunately there appeared to be some race condition with this
 somewhere, as sometimes the spawned jobs were not nice'd as expected.
 Moving the setpriority() call to after the fork() but before the exec()
 fixed this problem.  If the rest of the patch gets rejected I can submit
 this as a separate patch...

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3421>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list