[mythtv-users] mythcomflag - how do I set nice level?

Mark Knecht markknecht at gmail.com
Fri Sep 23 02:11:50 UTC 2005


On 9/22/05, Robert Tsai <rtsai1111 at comcast.net> wrote:
> On Thu, Sep 22, 2005 at 06:52:15PM -0700, Mark Knecht wrote:
> > Thanks very much.
> >
> > I did have it set to one job, but CPU usage was medium so I've set it
> > to low. Additionally I saw an option to start commercial flagging when
> > recording starts. I've disabled that also, at least as a test.
> >
> > Probably 70% of our recording is late night stuff so commercial
> > flagging can get done between 3AM and 7AM and probably cause no
> > problems at all.
>
> I think your real problem was commercial flagging when recording
> starts (a.k.a. "real-time commercial flagging).

Could be. Now that I know where the setting are I can play with that a bit.
>
> You might be OK bumping CPU usage back up to medium so that
> commflagging can go faster. The nicing should prevent mythcommflagging
> from interfering with recordings. But I don't know the details of your
> capture cards, maybe you need more CPU for software encoding.

3GHz P4HT but currently a UMP kernel.
PVR-150
PVR-250
512MB

250GB storage over NFS in another box so good networking matters.

>
> My AMD64 always runs in powersave mode at 1GHz and lets me watch one
> recording, record two more off of HD-3000 cards (digital broadcast so
> no encoding), and mythcommflagging, all at the same time, with no
> problems with anything.

Sounds cool.

>
> > On 9/22/05, Robert Tsai <rtsai1111 at comcast.net> wrote:
> > > On Thu, Sep 22, 2005 at 06:18:11PM -0700, Mark Knecht wrote:
> > > > Is it possible to somehow nice mythcomflag? It appears that in
> > > > cases where I'm recording two shows and also doing commercial
> > > > detection on two shows that just completed that my poor 3GHz P4
> > > > cannot keep up. This is resulting in bad recordings. I think
> > > > that if I lowered priorities on mythcomflag I'd do better.
> > >
> > > In mythtv-setup General options there is a "Job Queue"
> > > configuration page. Set the CPU Usage option:
> > >
> > >         - High: no nicing
> > >         - Medium: nice 19
> > >         - Low: nice 19 + sleep() every so often in the main loop
> > >
> > > Also, you might want to reduce the number of maximum simultaneous
> > > jobs to "1", unless you have hyperthreading enabled and are
> > > running an SMP kernel.
>
> --Rob
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFDM2ID18A6pRrdKfkRAsu7AKCSy4gJlfbAxl4ouNNQ4R9AMIw4swCfcw4S
> /0W456aC2dINUvPn2Iv4aUI=
> =yW8V
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
>


More information about the mythtv-users mailing list