[mythtv-users] suspend and resume mythcommflag

Misty P mistyp at thekorn.net
Thu May 15 20:53:54 UTC 2008


James Klaas wrote:
> I have a backend and frontend/backend setup running 0.21 running on
> Ubuntu.
>
> My problem is that if I'm trying to watch liveTV or if something is
> recording in the background, the video gets really choppy when
> mythcommflag is running.  It's much worse when mythcommflag is running
> on the frontend.  Rather than dedicate a computer for the task, I
> think it would be much better if I could suspend and resume
> mythcommflag (via SIGSTOP and SIGCONT signals) when mythtv recognizes
> that liveTV or a recording is happening.
>
> I think a lot of the choppyness is coming from extensive disk access
> when one or two recorders are going at once, plus mythcommflag
> running.
>
> Is there any way to do this?

I know it's not quite what you're looking for, but if disk contention is 
causing the problem then using a script to pause/unpause commercial flagging 
that's only looking at CPU usage is like using the weather to predict profit 
margins.  Yes, they sort of affect each other, *but*...

I'd recommend using ionice instead.  ionice : disk :: nice : cpu.

(man ionice if that didn't make any sense.)




More information about the mythtv-users mailing list