SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux > SageTV for unRAID/Docker
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-09-2017, 09:13 PM
MacDaddy MacDaddy is offline
Sage Aficionado
 
Join Date: Nov 2004
Location: Houston
Posts: 255
Pegged CPU for unRaid docker

I was watching the Texans football tonight (delayed watching an active recording) when the playback stuttered, stalled and then went black. It might have been a mercy killing given the way they were playing at the moment. I brought up the unRaid dashboard and saw that out of the 8 cores, core 0 was pegged 100%. Looking at cAdvisor and scanning in to each docker, I did not see anything that was even near 100%, although the sage docker had higher utilization that I am used to seeing. When I returned to the dashboard I saw that CPU 0 was normal, but CPU 3 was pegged. I restarted the sage docker and was able to resume using although all my in-progress recordings were of course gone.

I've attached the Sage and OpenDCT logs. It looks like something started to happen around the 8/9 21:01:22 mark. I see complaints about Remuxer out of sync and later a hang detected. I would sure appreciate any insights from the experts on what might be causing this and where I can make adjustments to prevent it in the future.

I know that I had two sports recordings going on the same time with SRE involved. One program was Astros on ATTSWHD starting at 7:00. The second program was Texans on KTRKDT starting at 6:30. There may have been some other shows fire up while I was delayed watching the Texans.

Let me know if I can provide any other information. Thanks in advance for any insights you all may be able to offer.
Attached Files
File Type: zip sagetv_0 - Copy.zip (631.5 KB, 195 views)
File Type: zip opendct - Copy.zip (98.7 KB, 209 views)
File Type: zip wrapper - Copy.zip (687.9 KB, 198 views)
__________________
Frankentivo: iStar D-380HB, SuperMicro X107-F-O, Xeon 1270v3 CPU, Kingston 8 GB 1600MHz DDRR3L x 4
Tuners: 4 x HDHR OTA, 4 x HDHR3 OTA, 3 x HDHR Prime
UnRAID Pro: 1 x Samsung 500GB Cache, 5 x WD Red 4TB (1 Parity, 4 Data)
Extenders: 2 x HD-200, 1 x HD-300 on Atlona PRO3HD66m
Sage: V9.0.14.567 with OpenDCT on unRaid docker, Gemstone, BMT, Web UI, PlayOn, TiSage
Reply With Quote
  #2  
Old 08-10-2017, 05:05 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
This is interesting in that it looks like SageTV is holding up OpenDCT a lot for some reason. On the surface it looks like a throughput problem. Those messages about the remuxer being out of sync means that the packets coming in from OpenDCT are not properly spaced TS packets. When you then look at the OpenDCT logs, you can see why. OpenDCT is getting backed up because SageTV can't receive the data fast enough. There are also some dropped packets that never made it to OpenDCT from the HDHomeRun which doesn't help either.

My advice would be to stop using MediaServerConsumerImpl and change over to FFmpegTransSageTVConsumerImpl. FFmpegTransSageTVConsumerImpl is the default in a normal installation of OpenDCT because it's often more consistent than using the internal remuxer.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #3  
Old 08-10-2017, 09:26 AM
MacDaddy MacDaddy is offline
Sage Aficionado
 
Join Date: Nov 2004
Location: Houston
Posts: 255
Thanks very much for the insights. I will change over to FFmpeg as you suggested. I'll do some forum searches on where that might be, but I'm gonna guess in Sage somewhere.

The drops are interesting. I have a dual NIC with one side attached to my backbone network (router, clients, etc.) and the other side connected directly to my capture devices. The capture side does not serve DHCP and the devices use defaulted 169.254.x.x addresses. There are five capture devices - 2xHDHR discovery (old white box, config for OTA), 2xHDHR connect (config for OTA) and 1 HDHR Prime (Xfinity cablecard, 3 streams).

I deliberately put the capture devices on their own isolated segment to control the traffic. When I look at my interfaces, I see eth0 (backbone) has
Code:
 RX packets 667278003  bytes 321603524745 (299.5 GiB)
 RX errors 0  dropped 24428  overruns 179  frame 0
The eth1 (capture devices) has
Code:
 RX packets 787784975  bytes 1075247471656 (1001.4 GiB)
 RX errors 0  dropped 817213  overruns 0  frame 0
I'm not sure what an acceptable drop rate would be, but a comparison of the two sides shows that for the amount of data received eth1 has 10x greater drop rate. Much depends on the transmission design of the capture devices to determine if this is an issue, but I think it worth exploring some more.

When I see a CPU at 100%, I usually think that either memory is overcommitted and the swap rate is blocking it, or some lock mechanism is in a race, or a massive IO operation has encountered an error and is looping.
It was interesting to me that in the unRaid dashboard I could see the 100% bounce to different cores. Also the Cadvisor did not show any of the individual docker containers getting anywhere near 100%. I wonder if there was a condition with the docker engine itself. I'm not really sure where to look for diagnostic information on that. I'll have to see if any of the unRaid folks have ideas.

Thanks again for your insights and advice. This is a rare occurrence. I've had recordings on every single capture device as a stress test when I first began using the sage docker. It passed the stress test, but I didn't run it for hours. If you can think of other logs that I should preserve should this happen again, please let me know.
__________________
Frankentivo: iStar D-380HB, SuperMicro X107-F-O, Xeon 1270v3 CPU, Kingston 8 GB 1600MHz DDRR3L x 4
Tuners: 4 x HDHR OTA, 4 x HDHR3 OTA, 3 x HDHR Prime
UnRAID Pro: 1 x Samsung 500GB Cache, 5 x WD Red 4TB (1 Parity, 4 Data)
Extenders: 2 x HD-200, 1 x HD-300 on Atlona PRO3HD66m
Sage: V9.0.14.567 with OpenDCT on unRaid docker, Gemstone, BMT, Web UI, PlayOn, TiSage
Reply With Quote
  #4  
Old 08-10-2017, 09:48 AM
MacDaddy MacDaddy is offline
Sage Aficionado
 
Join Date: Nov 2004
Location: Houston
Posts: 255
Quote:
Originally Posted by MacDaddy View Post
but I'm gonna guess in Sage somewhere
Nope. It appears to be in opendct.properties. I stopped OpenDCT, edited the opendct.properties for this line:
Code:
consumer.dynamic.channels.media_server=consumer.dynamic.channels.raw=consumer.dynamic.default=opendct.consumer.FFmpegTransSageTVConsumerImpl
Then stopped Sage, started OpenDCT and started Sage. I'll let you know how it works.
__________________
Frankentivo: iStar D-380HB, SuperMicro X107-F-O, Xeon 1270v3 CPU, Kingston 8 GB 1600MHz DDRR3L x 4
Tuners: 4 x HDHR OTA, 4 x HDHR3 OTA, 3 x HDHR Prime
UnRAID Pro: 1 x Samsung 500GB Cache, 5 x WD Red 4TB (1 Parity, 4 Data)
Extenders: 2 x HD-200, 1 x HD-300 on Atlona PRO3HD66m
Sage: V9.0.14.567 with OpenDCT on unRaid docker, Gemstone, BMT, Web UI, PlayOn, TiSage
Reply With Quote
  #5  
Old 08-22-2017, 12:39 PM
glenner glenner is offline
Sage Advanced User
 
Join Date: May 2010
Location: Toronto, ON
Posts: 99
Quote:
Originally Posted by MacDaddy View Post
It looks like something started to happen around the 8/9 21:01:22 mark.
Does your mover run at 9pm? I've seen heavy CPU use, and out of memory issues when the mover runs. There are tweaks that seem to help. But the first step is to determine if the mover is involved. And you can check that in your scheduler settings for the mover, or in the unraid syslog.
__________________

Server hardware: i7-7700@3.6GHz, ASUSTek Prime H270 Pro, R5 case, 32GB, 2x250GB M.2 SSD cache (raid1), 12TB pool, HDHR Dual Tuner, HDHR Extend, CM 4221/7778
Server software: unRAID 6.9.2, SageTV v9, SageMC (high WAF), SD EPG, dockers (SageTV, Plex, Emby, Unifi Controller, Sonarr, OpenVPN, DelugeVPN, Logitech Media Center, etc.), VMs
Clients: 3 x HD300, Placeshifters, 4 x FireStick4K+Android Miniclient, iOS devices+Plex
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup a USB-UIRT in unRAID/Docker wayner SageTV for unRAID/Docker 42 07-02-2018 09:30 PM
Docker Image for unRaid ChaOConnor SageTV Linux 73 05-28-2017 11:57 AM
Unraid 6.3.1 Docker Update Error dgeezer SageTV for unRAID/Docker 3 02-16-2017 10:17 AM
Is unRAID/Docker the right OS for me? wayner SageTV for unRAID/Docker 32 01-12-2017 03:08 PM
SageTV Docker/unRAID now has a sub-forum stuckless SageTV for unRAID/Docker 0 10-10-2016 07:20 AM


All times are GMT -6. The time now is 12:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.