Getting lots of Errors when recording and playing at the same time.

Added by Stephen West over 2 years ago

TLDR; Why would the HTSP connection interfere with the recording connection?

I'm not sure if this is a bug, or a random glitch.

Recording multiple shows at the same time works fine, but when I try to view one, even if it isn't one of the ones currently recording, I start getting lots of "Continuity Errors". I'm not sure if this is expected for my setup. I wasn't expecting it. I think they are ethernet packets getting dropped errors, but it didn't look like I was saturating my 100mb link.

Ascii diagram of network setup:

                     |                   |
                     |       NAS         |
                     |   ^          X    |
                     |   |          |    |
                     |   |          |    |
                     |   |          |    |
                         |          |
/------------------\  /---------------\
|                  |  |  |         |  |
|    +-------------------+         |  |    /---------------\
|    |           +-----------------+  |    |               |
|    | TVHeadEnd | |  |      LAN      |    |    Kodi(Pi3)  |
|    |           +-------------------------------->        |
|    +--------------------------+     |    |               |
|                  |  |         |     |    \---------------/
\------------------/  \---------------/
                       |        |        |
                       |        X        |
                       |  NetworkTuner   |
                       |                 |
                       |                 |

Or ignoring the LAN:
+------+       +--------------+      +-----------+
|      >----------------------------->           |
| NAS  |       |  TVHeadEnd   |      |   Kodi    |
|      <----------+           |      |           |
+------+       +--|-----------+      +-----------+
      | NetworkTuner |

I mount the NAS in fstab, and record to that. The idea was that Kodi would pick it up too, and I wouldn't have to stress the really 10 year old computer. Kodi doesn't auto refresh network shares well, so I haven't been using that. I've just been using the PVR client. The network streams should add up to well under 100mb/s.

I tried recording one stream while viewing one other. gnome-system-monitor showed up as about 1.5MiB/s up and down, peaks not going over 2.5MiB/s. It also goes up and down, not pegged at a value as if it were saturated. TVheadend Status shows 2648kb/s in, 2648kb/s out for the recording, and 11534kb/s in 11534kb/s out for the viewing. That's about 13mb/s each way, or if i divide by 8, 1.5MB/s. So that checks out.

I've installed a second 100mb Ethernet card (Netgear), and more storage (I don't use the storage), and the problem hasn't happened since. I'm not sure if it was just a reboot fix or if it is actually using the extra network card. Since it went away, it can't be a "Pentium4" problem, or a NAS problem.

Version of TVHeadend?
HTS Tvheadend 4.3.0~pre+201911281811-0~built201911291747~git221c29b~ubuntu18.04.1

Running on what OS and version?
System:    Host: Dell-DM051 Kernel: 4.15.0-88-generic i686 bits: 32 compiler: gcc v: 7.4.0 Console: tty 0 
           Distro: Linux Mint 19.2 Tina base: Ubuntu 18.04 bionic 
Machine:   Type: Desktop System: Dell product: Dell DM051 v: N/A serial: <filter> 
           Mobo: Dell model: 0WG261 serial: <filter> BIOS: Dell v: A05 date: 03/31/2006 
CPU:       Topology: Single Core model: Intel Pentium 4 bits: 64 type: MT arch: Netburst Smithfield rev: 3 
           L2 cache: 2048 KiB 
           flags: lm nx pae sse sse2 sse3 bogomips: 11970 
           Speed: 2993 MHz min/max: N/A Core speeds (MHz): 1: 2993 2: 2993 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] RV610 [Radeon HD 2400 PRO/XT] driver: radeon v: kernel 
           bus ID: 01:00.0 
           Display: server: 1.19.6 driver: ati,radeon unloaded: fbdev,modesetting,vesa tty: 116x43 
           Message: Advanced graphics data unavailable in console. Try -G --display 
Audio:     Device-1: Intel NM10/ICH7 Family High Definition Audio vendor: Dell driver: snd_hda_intel v: kernel 
           bus ID: 00:1b.0 
           Device-2: Conexant Systems CX23418 Single-Chip MPEG-2 Encoder with Integrated Analog Video/Broadcast 
           Audio Decoder 
           vendor: Hauppauge works driver: cx18 v: 1.5.1 bus ID: 03:02.0 
           Sound Server: ALSA v: k4.15.0-88-generic 
Network:   Device-1: National DP83815 Ethernet vendor: Netgear FA311 / FA312 driver: natsemi v: kernel 
           port: cc00 bus ID: 03:03.0 
           IF: enp3s3 state: up speed: 100 Mbps duplex: full mac: <filter> 
           Device-2: Intel NM10/ICH7 Family LAN vendor: Dell driver: e100 v: 3.5.24-k2-NAPI port: c8c0 
           bus ID: 03:08.0 
           IF: enp3s8 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 1.02 TiB used: 221.81 GiB (21.3%) 
           ID-1: /dev/sda vendor: Kingston model: SV300S37A120G size: 111.79 GiB 
           ID-2: /dev/sdb vendor: Western Digital model: WD10EAVS-00D7B1 size: 931.51 GiB 
Partition: ID-1: / size: 54.92 GiB used: 12.96 GiB (23.6%) fs: ext4 dev: /dev/sda5 
Sensors:   Message: No sensors data was found. Is sensors configured? 
Info:      Processes: 172 Uptime: 18d 21h 20m Memory: 2.40 GiB used: 714.7 MiB (29.1%) Init: systemd runlevel: 5 
           Compilers: gcc: 7.4.0 Shell: bash v: 4.4.20 inxi: 3.0.32 

Package that came with the OS or something you compiled yourself?
Added via bionic main

Adapter/tuner chipset or make/model?
Hauppauge WinTV-HVR-1600
     03:02.0 Multimedia video controller: Conexant Systems, Inc. CX23418 Single-Chip MPEG-2 Encoder with Integrated Analog Video/Broadcast Audio Decoder

     Model: HDHR4-2US