I have been trying to fix problems with a 100-200mS delay in audio and that has created a lot of questions around how the Linux Schedule works and whether or not MythTV is getting the CPU it needs or not.  Here are questions that I am hoping someone can help shed light on.
<br><br>1).&nbsp;&nbsp; I have realtime enabled in Ubuntu.&nbsp;&nbsp; When I launch a recording, &quot;using realtime prioirty&quot; shows up in the log.&nbsp;&nbsp; When I look at TOP, under the PR column, I see that Mythfrontend priority is similar to other programs, around the 30's.&nbsp; However, there are a few tasks, with 'RT&quot; as priority, presumably reatltime.&nbsp;&nbsp; Should I expect to see RT for mythfrontend task as well?
<br><br>2).&nbsp; Any idea how to up the task priority on mythfrontend for the Linux scheduler?<br><br>2).&nbsp; I tried compiling a new kernel with preemptive scheduling turned on (my old kernel was set to voluntary/desktop).&nbsp;&nbsp; I also tried to update PAM to a newer version.&nbsp; I am not sure what went wrong but Mythfrontend CPU went near 100%.&nbsp; This is very unusual for my 
3.2Ghz Pentium.&nbsp;&nbsp; Older posts seem to suggest that the problem is that mythfrontend can't get the CPU as often as it needs.&nbsp; I tried rtlimits, pam, realtime-lsm.&nbsp; Nothing seemed to help.&nbsp; I always see &quot;using realtime&quot; in the logs but CPU is high causing prebuffering pauses.&nbsp; Not sure if the problem is with my new kernel or something I messed up in the PAM.
<br><br>3).&nbsp; I have gotten no where near solving my audio sync issues.&nbsp; I have been considering compiling a kernel with Ingo's realtime patch.&nbsp; There have been two posts on that subject.&nbsp; One saying that MythTv works and another asking if it is possible.&nbsp;&nbsp; Does anyone have further information on this?&nbsp; So far, I have had trouble getting it to compile and I am expecting to have difficulty getting NVidia to work.
<br><br>My system for anyone that is curious:<br>Ubuntu Breezy<br>Vanilla 2.6.15 kernel<br>Pentium 4 3.2Ghz w/HT<br>Nothing unusual in the logs<br>MythTv from SVN<br><br>Steve<br>