Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: VDR eating CPU time



Hi Klaus,

as requested:

Channels:						Transfermode:	CPU-load:

Premiere 1:11797:h:0:27500:511:512:0:2:10			T	28 %
Premiere 2:11797:h:0:27500:1791:1792:0:2:11		T	74 %
Premiere 3:11797:h:0:27500:2303:2304:0:2:43		T	8 - 20 %
Premiere Star:11797:h:0:27500:767:768:0:2:9		T	47 %
Premiere Sci-Fi:11797:h:0:27500:1535:1536:0:2:41	T	5 %
Premiere Action:11797:h:0:27500:1023:1024:0:2:20	T	5 %
Premiere X-ACTION:11798:H:0:27500:2047:2048:8191:2:50	T	50 %
Premiere Comedy:11797:h:0:27500:1279:1280:0:2:29	T	3 %
13th Street:12031:h:0:27500:2303:2304:0:2:42		T	4 %
Studio Universal:12090:V:0:27500:255:256:0:2:36		T	5 %
Premiere ONE:12032:H:0:27500:3071:3072:8191:2:51	T	70 %
Filmpalast:12031:h:0:27500:2559:2560:0:2:516		T	6 %
Heimatkanal:12031:h:0:27500:2815:2816:0:2:517		T	5 %
Discovery Channel:12031:h:0:27500:1791:1792:0:2:14	T	5 -95 %

ARD:11837:h:0:27500:101:102:0:0:28106				4 %
ZDF:11954:h:0:27500:110:120:130:0:28006				3 %
BR3:11837:h:0:27500:201:202:0:0:28107				4 %
ORF1:12692:h:0:22000:160:161:165:2:13001			T	75 %
ORF2:12692:h:0:22000:500:501:505:2:13002			T	70 %
RTL:12188:h:0:27500:163:104:105:0:12003				4 %
Sat.1:12480:v:0:27500:1791:1792:34:0:46				4 %

I hope this can help

Salaam

> From: kls@cadsoft.de [mailto:kls@cadsoft.de]On Behalf Of Klaus
> Schmidinger
> Sent: Tuesday, January 15, 2002 4:43 PM
> To: vdr@linuxtv.org
> Subject: [vdr] Re: VDR eating CPU time
> 
> 
> Tilo Renkl wrote:
> > 
> > Thanx a lot, but I do not think that this is the problem.
> > I realized that this problem only apears on a few specific
> > channels, eg. Discovery Channel or Dinedom Deluxe !?!?
> > 
> > Salaam
> 
> Those are both channels that will need the Transfer Mode.
> Can you name some channels where it does *not* happen
> (and which still need the Transfer Mode)?
> 
> Klaus
> 
> > 
> > > -----Original Message-----
> > > From: kls@cadsoft.de [mailto:kls@cadsoft.de]On Behalf Of Klaus
> > > Schmidinger
> > > Sent: Sunday, January 13, 2002 10:44 PM
> > > To: vdr@linuxtv.org
> > > Subject: [vdr] Re: VDR eating CPU time
> > >
> > >
> > > Achim Lange wrote:
> > > >
> > > > Hello Tilo,
> > > >
> > > > > First of all, thanx for your quick answer, but I am not one of
> > > > > those incredible coders out there. I am only one of the lucky
> > > > > guys, that know about VDR, and uses it with pleasure.
> > > > >
> > > > > Could you please tell me a little more detailed what 
> I have to to
> > > > > exactly ??
> > > > > > -----Original Message-----
> > > > > > From: kls@cadsoft.de [mailto:kls@cadsoft.de]On 
> Behalf Of Klaus
> > > > > > Schmidinger
> > > > > > Sent: Sunday, January 13, 2002 11:29 AM
> > > > > > To: vdr@linuxtv.org
> > > > > > Subject: [vdr] Re: VDR eating CPU time
> > > > > >
> > > > > >
> > > > > > You could try to increase the value in the usleep(1) call in
> > > > > > cTransferBuffer::Output(). Try it with 10, 100, 1000, 10000
> > > > > > and check whether the system load goes down and the
> > > transfer mode
> > > > > > still works without glitches.
> > > > > >
> > > > > > Klaus
> > > >
> > > > go to your VDR-Source directory (e.g. /usr/src/VDR)
> > > > do "grep TransferBuffer *.c" (if that would not have
> > > helped, you could have
> > > > tried the search in *.h also)
> > > > there you get only the file dvbapi.c
> > > > Open this file in vi (or the editor of your choice) and 
> search for
> > > > "cTransferBuffer::Output"
> > > >
> > > > Around the line 2240 (depending on which patches you have
> > > applied) you will
> > > > find a function-declaration of this name.
> > > > about 8 lines lower you find something like:
> > > >
> > > > if (Available() < MAXFRAMESIZE) {
> > > >               usleep(100000); // allow the buffer to
> > > collect some reserve
> > > >               continue;
> > > >               }
> > > > and I guess that value 100000 is the one, that Klaus meant.
> > > Change it, and
> > > > do your "make" again (with all the parameters you used 
> originally).
> > >
> > > No, that's not the one. Look 23 lines further down:
> > >
> > >             usleep(1); // this keeps the CPU load low
> > >
> > > That's the one!
> > >
> > > Klaus
> > >
> > >
> > > >
> > > > Hope this helps,
> > > >
> > > > ciao,
> > > >
> > > >     Achim (who does not have a clue of programming in C or
> > > C++ either, but
> > > > usually knows where to look :)
> -- 
> _______________________________________________________________
> 
> Klaus Schmidinger                       Phone: +49-8635-6989-10
> CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
> Hofmark 2                               Email:   kls@cadsoft.de
> D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
> _______________________________________________________________
> 
> 



Home | Main Index | Thread Index