Project

General

Profile

Bug #2765

ever-increasing CPU usage

Added by Dreamcat 4 over 9 years ago. Updated over 9 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-04-09
Due date:
% Done:

100%

Estimated time:
Found in version:
3.9.2679~g995aaf8~trusty
Affected Versions:

Description

This bug has been noticed for several weeks now. However now have the proper debugging environment to catch logs and stacktrace about it.

Symptoms:

1* Start tvheadend - works very well to begin with
2* Left it network scanning (sat>ip, inverto IDL-400s)
3* After about 12 hours - tvheadend process is now using >75% CPU on 1 core
4* Tvheadend still works (but considerably more slowly)
5* After about 24 hours - tvheadend process is now using most CPU of BOTH cores.
6* Tvheadend crashes / runs out of resources.

Today I have taken live stacktrace at point 3* - after about 12 hours. Files attached.

If you require more logging, then please specify the extra sub-systems you need, then I can re-run the test again. Many thanks.


Files

tvheadend-.ps-aux.txt (3.85 KB) tvheadend-.ps-aux.txt List of running processes Dreamcat 4, 2015-04-09 10:56
tvheadend-3.9.2679~g995aaf8~trusty.gdb.stacktrace.txt (63 KB) tvheadend-3.9.2679~g995aaf8~trusty.gdb.stacktrace.txt GDB Stracktrace (12 hour mark occupied / running) Dreamcat 4, 2015-04-09 10:56
tvheadend-3.9.2679~g995aaf8~trusty.last-5000-lines.log (463 KB) tvheadend-3.9.2679~g995aaf8~trusty.last-5000-lines.log Last 5000 lines of default log output (12 hour mark occupied / running) Dreamcat 4, 2015-04-09 10:59
tvheadend-3.9.2679~g995aaf8~trusty.gdb.stacktrace.log (69.5 KB) tvheadend-3.9.2679~g995aaf8~trusty.gdb.stacktrace.log This combined log contains uname -a + ps-aux + stacktrace output (concactenated together) Dreamcat 4, 2015-04-09 11:08

History

#1

Updated by Dreamcat 4 over 9 years ago

This log file contains the same GDB stactrace.txt, but also include at top a few extra supplementary info or "uname -a", and "ps -aux".

#2

Updated by Dreamcat 4 over 9 years ago

[10:31] < perexg> dreamcat4: use top to show the busy threads: 'top -H -p <pid_of_tvheadend>'

https://gist.github.com/dreamcat4/25699af13ef66ada4445

#3

Updated by Dreamcat 4 over 9 years ago

The Problem was:

Bad epg config file. Saving EPG data every 1 second:

https://gist.github.com/dreamcat4/459001568f356e8655ca

"epgdb_periodicsave": 1,

Where it should be:

"epgdb_periodicsave": 3600,

From manually editing config file.

#4

Updated by Jaroslav Kysela over 9 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|79ec2df4ddaaf31bad38611b374067fb109ef6d3.

Also available in: Atom PDF