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). I have realtime enabled in Ubuntu. When I launch a recording, "using realtime prioirty" shows up in the log. When I look at TOP, under the PR column, I see that Mythfrontend priority is similar to other programs, around the 30's. However, there are a few tasks, with 'RT" as priority, presumably reatltime. Should I expect to see RT for mythfrontend task as well?
<br><br>2). Any idea how to up the task priority on mythfrontend for the Linux scheduler?<br><br>2). I tried compiling a new kernel with preemptive scheduling turned on (my old kernel was set to voluntary/desktop). I also tried to update PAM to a newer version. I am not sure what went wrong but Mythfrontend CPU went near 100%. This is very unusual for my
3.2Ghz Pentium. Older posts seem to suggest that the problem is that mythfrontend can't get the CPU as often as it needs. I tried rtlimits, pam, realtime-lsm. Nothing seemed to help. I always see "using realtime" in the logs but CPU is high causing prebuffering pauses. Not sure if the problem is with my new kernel or something I messed up in the PAM.
<br><br>3). I have gotten no where near solving my audio sync issues. I have been considering compiling a kernel with Ingo's realtime patch. There have been two posts on that subject. One saying that MythTv works and another asking if it is possible. Does anyone have further information on this? 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>