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 02-27-2017, 12:42 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Need advice for getting SageTV for docker as fast as possible

My system is up and running and it runs ok but I am wondering what I can do to fine-tune performance.

I have /appdata on the cache drive on my system. The cache drive is an SSD.
I have JVM set to 3GB. (No matter how hard I try I can't even get to 2GB used)
My system has an i5-2500K CPU. (3.7GHz)
My system has 24GB of memory but I may be dropping down to 16GB.
It is not unusual for me to be simultaneously using 4-5 HD-200 or HD-300 extenders.
I use Gemstone as my UI with lots of Fanart.
I have several other dockers installed and running but they rarely do anything that is CPU intensive.

What are the most important factors to improve the speed of my system. I am wondering about the following factors. What is the most important and am I missing anything. Where do I get the biggest bang for my buck?

CPU clock speed
Number of CPU cores.
Multiple Xeon CPUs
Other CPU factors (like L3 cache, etc)
JVM Heap size.
Speed of SSD.
Overall unRAID server memory.
???
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #2  
Old 02-28-2017, 01:37 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
Is using sage causing your cpu to get to 100% at any given time? If not I'm not really sure an upgrade is necessary.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #3  
Old 02-28-2017, 02:15 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I don't think my CPU has ever hit 100% but does that still mean my system is optimally configured? Maybe there are other things slowing down the system, like accessing the SSD? And if I had more memory could unRAID cache more things, like all of my Fanart, in memory?

Last night the system was slightly sluggish in that when I hit the SkipFwd button it didn't skip immediately - it took a half second or so. This was noticeably slower than what I am used to -and this is while watching a sporting even so I am constantly riding the SkipFwd and SkipFwdx2 buttons. At the time there were about four clients connected with 2 or 3 active at any one time.

It is not that I am necessarily disappointed with my system performance, I am just wondering how to figure out where the bottleneck is and whether I can get things working a bit faster with some upgrades.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #4  
Old 02-28-2017, 02:49 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
My system is in my sig. I have my appdata on my SSD cache drive and when I use the mini client for android TV that is connected to my gigabit network everything is instant. I've never really noticed a slow down at all and I'm not even scratching the surface of what my hardware can do.

Maybe this could be network related? Do you have realtek NIC on your motherboard? That could be a bottleneck, or your switch, router, none of those things.

These are fun issues to track down, but before you spend anything on server hardware try to eliminate other factors first.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #5  
Old 02-28-2017, 04:21 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
You might get more consistent performance by locking the sagetv docker to specific cpu's, and other dockers/vms to others. This way sage will always have plenty of uninterrupted timeslices, and the dedicated CPU cache will always be ready with sagetv related data.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #6  
Old 02-28-2017, 07:19 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
I have added the following to my SageTV docker to give it access to specific CPU cores (like Fuzzy was suggesting) and to limit how much memory the docker can use. I found that the docker was using a lot more memory than I had allocated to SageTV so I wanted to make sure I didn't choke other processes on unRAID. May have just been a temporary problem but others were posting about problems with other dockers so I limited this in case I was encountering a docker bug. I have SageTV defined at 4G and the docker at 6G. This ensures the docker never takes more than 6G of memory from unRAID and SageTV will never use more than 4G from the docker allowing 2G for system software in the docker to have it's own space. May be overkill but I don't want either to have problems.

Code:
--cpuset-cpus="4,5,20,21" --memory="6G"
__________________
"Keep your goals away from the trolls"
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
Quick question about sagetv docker mechling-burgh SageTV for unRAID/Docker 8 06-23-2017 08:48 AM
Is my SageTV docker stuck or not ? makutaku SageTV for unRAID/Docker 21 03-13-2017 09:32 PM
SageTV - unRAID docker HW requirments? SomeWhatLost Hardware Support 21 01-10-2017 05:02 PM
SageTV Docker on macOS benjamintm SageTV for unRAID/Docker 8 12-12-2016 07:29 AM
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 03:08 PM.


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