Mailing List archive

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

[vdr] Re: High CPU usage of VDR 1.1.11



Klaus Schmidinger wrote:
> Oliver Endriss wrote:
> > Hi,
> >
> > I just tested VDR 1.1.11 on a Pentium I 233 MMX.
> > This is a slow machine, but there have never been any problems.
> > (With VDR 1.0.4 peak CPU usage is about 25% during recording.)
> >
> > With VDR 1.1.11 and NEWSTRUCT driver, it is impossible to create a
> > good recording.
> >
> > CPU usage is at 100% and there are lots of error messages in the syslog:
> > [old log deleted]
> >
> > When I stop recording CPU usage is still at 100%, until I switch
> > channels. Then it drops to normal (< 5%).
> >
> > I get similar results with the old driver + time-shifting firmware.
> > After I disabled "#define DVB_DRIVER_VERSION 2002090101 //XXX+" VDR
> > seems to work normal no watter which driver/firmware is being used.
> >
> > Before I start some debug sessions:
> > Is it normal that the new code needs so much horse power?
>
> I assume this is a system with only a single DVB card, right?

Yes, DVB-S Nexus 2.1

> Looks like there is a problem in the transfer mode.
> Could you try again and see which thread is causing the most CPU
> load? From the log file you should be able to relate the process id
> to the thread.

CPU load:
transfer thread[18960]:   60-80%
receiver thread[18961]:   10-20%
recording thread[18963]:  5%

syslog output:
|Sep 30 16:23:12 orion vdr[18940]: switching to channel 9
|Sep 30 16:23:12 orion vdr[18940]: setting watchdog timer to 60 seconds
|Sep 30 16:23:24 orion vdr[18940]: max. latency time 6 seconds
|Sep 30 16:24:13 orion vdr[18960]: transfer thread started (pid=18960)
|Sep 30 16:24:13 orion vdr[18961]: receiver thread started on device 1 (pid=18961)
|Sep 30 16:24:13 orion vdr[18940]: timer 2 start
|Sep 30 16:24:13 orion vdr[18940]: Title: 'Kreuzfahrt mit Odysseus' Subtitle: '1. Von Troja bis zur Insel des Windes'
|Sep 30 16:24:13 orion vdr[18940]: record /video/@Kreuzfahrt_mit_Odysseus_1._Von_Troja_bis_zur_Insel_des_Windes/2002-09-30.16:24.50.99.rec
|Sep 30 16:24:13 orion vdr[18940]: creating directory /video/@Kreuzfahrt_mit_Odysseus_1._Von_Troja_bis_zur_Insel_des_Windes/2002-09-30.16:24.50.99.rec
|Sep 30 16:24:14 orion vdr[18940]: recording to '/video/@Kreuzfahrt_mit_Odysseus_1._Von_Troja_bis_zur_Insel_des_Windes/2002-09-30.16:24.50.99.rec/001.vdr'
|Sep 30 16:24:14 orion vdr[18963]: recording thread started (pid=18963)
|Sep 30 16:24:22 orion kernel: buffer empty
|Sep 30 16:26:11 orion last message repeated 2 times
|Sep 30 16:26:23 orion last message repeated 2 times
|Sep 30 16:27:46 orion vdr[18961]: buffer usage: 80% (pid=18960)
|Sep 30 16:27:46 orion vdr[18961]: buffer usage: 85% (pid=18960)
|Sep 30 16:28:05 orion vdr[18961]: buffer usage: 90% (pid=18960)
|Sep 30 16:28:05 orion vdr[18961]: buffer usage: 95% (pid=18960)
|Sep 30 16:28:06 orion vdr[18961]: buffer usage: 100% (pid=18960)
|Sep 30 16:28:06 orion vdr[18961]: ERROR: ring buffer overflow (61 bytes dropped)
|Sep 30 16:28:06 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:08 orion last message repeated 667 times
|Sep 30 16:28:08 orion vdr[18960]: ERROR: skipped 127 byte to sync on TS packet
|Sep 30 16:28:08 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:08 orion last message repeated 11 times
|Sep 30 16:28:08 orion vdr[18961]: ERROR: ring buffer overflow (61 bytes dropped)
|Sep 30 16:28:08 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:10 orion last message repeated 677 times
|Sep 30 16:28:10 orion vdr[18960]: ERROR: skipped 127 byte to sync on TS packet
|Sep 30 16:28:10 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:10 orion vdr[18961]: ERROR: ring buffer overflow (61 bytes dropped)
|Sep 30 16:28:10 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:11 orion last message repeated 517 times
|Sep 30 16:28:11 orion vdr[18960]: ERROR: error in data stream!
|...
|Sep 30 16:28:24 orion vdr[18940]: confirm: Aufzeichnung beenden?
|Sep 30 16:28:24 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:24 orion last message repeated 12 times
|Sep 30 16:28:24 orion vdr[18940]: confirmed
|Sep 30 16:28:24 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:24 orion last message repeated 11 times
|Sep 30 16:28:24 orion vdr[18963]: recording thread ended (pid=18963)
|Sep 30 16:28:24 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:24 orion last message repeated 8 times
|Sep 30 16:28:24 orion vdr[18940]: buffer stats: 774344 (14%) used
|Sep 30 16:28:24 orion vdr[18940]: timer 2 stop
|Sep 30 16:28:24 orion vdr[18940]: deleting timer 2
|Sep 30 16:28:24 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:25 orion last message repeated 708 times
|Sep 30 16:28:25 orion vdr[18960]: ERROR: skipped 127 byte to sync on TS packet
|Sep 30 16:28:25 orion vdr[18961]: ERROR: ring buffer overflow (61 bytes dropped)
|Sep 30 16:28:25 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:27 orion last message repeated 1246 times
|Sep 30 16:28:27 orion vdr[18960]: ERROR: skipped 127 byte to sync on TS packet
|Sep 30 16:28:27 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:27 orion last message repeated 12 times
|Sep 30 16:28:27 orion vdr[18961]: ERROR: ring buffer overflow (61 bytes dropped)
|Sep 30 16:28:27 orion vdr[18961]: ERROR: ring buffer overflow (188 bytes dropped)
|Sep 30 16:28:28 orion last message repeated 583 times
|Sep 30 16:28:28 orion vdr[18960]: ERROR: error in data stream!
|...
|Sep 30 16:30:01 orion vdr[18940]: switching to channel 8
|Sep 30 16:30:01 orion vdr[18960]: transfer thread ended (pid=18960)
|Sep 30 16:30:02 orion vdr[18961]: receiver thread ended on device 1 (pid=18961)
|Sep 30 16:30:02 orion vdr[18940]: buffer stats: 1048575 (100%) used
|Sep 30 16:30:02 orion vdr[18940]: switching to channel 8

Is it ok that transfer thread and receiver thread run until the channel is switched?

Oliver


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index