|
Gemstone for v9 This forum is for discussing the user-created Gemstone custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Gemstone laggy with new SageTV v9 install
I have a fresh install of SageTV v9 and installed the Gemstone plugin as I liked it on v7.
I'm seeing the main menu screens being laggy. What I mean is after I load the Gemstone UI, it has "TV" highlighted, when I hit the right button to see the submenu for TV, it takes about 3-4 seconds to show the submenu and then another second to highlight the default view. If I select that view, it does go into it and all is smooth. If I go back, it takes the 3-4 second period. This also happens if I navigate through the main menu selections, after the first 3-4 second pause to go from say "TV" to "Videos", the scrolling is smooth. I go back to the revert back to the default UI and everything is smooth. I didn't have this issue on my v7 install, but I wasn't sure if it was a setting I had changed in it to make it better that got reset when I did a fresh install of v9. Any help is appreciated. Thanks, Chuck
__________________
OS: Windows 10 Pro (64 bit) Motherboard/CPU/RAM: Gigabyte EP43-UD3/Intel Core 2 Quad Q9550 @ 2.83 GHz/8 GB RAM System Drive : Samsung 850 Pro SSD (256 GB) Recording Drive's: 2 x WD WD4001FAEX (4 TB) Tuner's: 2 x Ceton InfiniTV 4's Clients: 3 x Nvidia Shield TV's; Spares: 2 x HD300's SageTV v9.1.2.662 with OpenDCT v0.5.28 Java 1.8.0_111-b14 (32bit) |
#2
|
||||
|
||||
Quote:
1. cpu starvation 2. very large fanart 3. disk io I rarely see #1, but if the sever is old enough, then it might show up if the server is doing other stuff. If you are seeing lagginess when transitioning menus, I'm thinking it might be disk IO. I had a case like this recently, where my drives would spin down... so on a multi-drive machine, all of sudden sagetv would access something on another drive, and it would take 2-10 seconds before something would happen. I fixed it in my case by preventing my drives from spinning down. In gemstone I also experience lagginess when navigating views... ie, I'd see 1-2 second pauses as I go from item to item, and this was caused by very large fanart... most posters were were 2000x3000 pixels in size and it would take 1-2 seconds to load the image. Disk IO would also play a role if your server is accessing fanart over the network. ie, you fanart is not stored on the same machine as the server.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
|||
|
|||
Quote:
I doubt that it was due to the cpu, even though this build is older it has been running great with my SageTV v7 install, which also used the same Gemstone plugin. I may be related to fanart, as I didn't have it enabled in my v7 install but wanted to see how it worked with my new v9 install. I did disable it via BMT to see if that helped but it didn't. Not sure about the disk IO part or how to stop them from spinning down. However, I did see something interesting. I knew that the JVM Heap size could be at play here so I went into my HD300 to see what it was last night while I was having this issue and this is what it had: JVM Heap Size (Used/Total/Max): 700MB/1038MB/1038MB I couldn't remember hot to increase it and I didn't have time to search for it in the forums last night, so I left it as it was. I then had to reboot my server to debug an OpenDCT issue I am having and when I turned the HD300 back on everything was great when going through the menu items. The JVM Heap now said JVM Heap Size (Used/Total/Max): 232MB/441MB/1038MB, so it may have been that. I'm not sure what those numbers mean or how to change the heap size but I was wondering if you could answer my questions about this. Is the Max of 1038MB large enough and if not, how do I change it and to what value? What could have caused it to be so large before the reboot? Was it because I did have fanart enabled at one point and didn't reboot after I disabled it? Thanks for any and all help, Chuck
__________________
OS: Windows 10 Pro (64 bit) Motherboard/CPU/RAM: Gigabyte EP43-UD3/Intel Core 2 Quad Q9550 @ 2.83 GHz/8 GB RAM System Drive : Samsung 850 Pro SSD (256 GB) Recording Drive's: 2 x WD WD4001FAEX (4 TB) Tuner's: 2 x Ceton InfiniTV 4's Clients: 3 x Nvidia Shield TV's; Spares: 2 x HD300's SageTV v9.1.2.662 with OpenDCT v0.5.28 Java 1.8.0_111-b14 (32bit) |
#4
|
|||
|
|||
I see this issue from time to time and I have a superfast CPU (i7-6700K) with 16GB of memory and a superfast hard drive - a PCIex4 NVME SSD mounted on the mobo.
__________________
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 |
#5
|
|||
|
|||
Quote:
k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#6
|
|||
|
|||
Quote:
Thanks for the feedback. I haven't seen that issue again after I disabled the fanart. I never used it in v7, just thought I would try it out in v9 with Gemstone and had issues. So, my issues went away with I disabled the fanart and then rebooted the server. Thanks, Chuck
__________________
OS: Windows 10 Pro (64 bit) Motherboard/CPU/RAM: Gigabyte EP43-UD3/Intel Core 2 Quad Q9550 @ 2.83 GHz/8 GB RAM System Drive : Samsung 850 Pro SSD (256 GB) Recording Drive's: 2 x WD WD4001FAEX (4 TB) Tuner's: 2 x Ceton InfiniTV 4's Clients: 3 x Nvidia Shield TV's; Spares: 2 x HD300's SageTV v9.1.2.662 with OpenDCT v0.5.28 Java 1.8.0_111-b14 (32bit) |
#7
|
||||
|
||||
Quote:
at the moment the only fix is to switch from Windows to Linux so the Java heap size can be raised. until then, as you've found, turning off fanart is the best solution. |
#8
|
|||
|
|||
The latest phoenix release from a few weeks back should help in this as stuckless added some code to adjust the size of fanart to the max resolution of the system (as many are WAY larger which causes much overhead in memory).
I believe you need to force all the fanart to refresh in BMT as well as check the BMT settings as there are a few related new ones. I have not had time to test this out but stuckless said it made a big difference on the android mini client so I expect similar on the HDxxx clients. k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#9
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#10
|
|||
|
|||
oops.... cat out of bag
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#11
|
||||
|
||||
Additionally, are you doing the caching differently in gemstone2 so that all cached posters are the same size, regardless of original size? the current method in gemstone of simply scaling it to a percentage of the original id inconsistent, and doesn't make a lot of sense. If percentages are desired, I think going by a percentage of UI resolution would be best, or even just each artifact type to a specific resolution.
__________________
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 |
#12
|
|||
|
|||
Quote:
It gets the UI width, which if not found and not overridden then uses a default. then uses a percent of the screen width that the fanart element would consume on the ui, unless overridden, and applies that to the fanart. At least thats how its supposed to be doing it. k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#13
|
||||
|
||||
Quote:
__________________
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 |
#14
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#15
|
||||
|
||||
Quote:
__________________
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 |
#16
|
||||
|
||||
Quote:
In the next release of Phoenix, this is happening automatically when the posters are downloaded (by default, but can be turned off). ie, a 2000x3000 poster will be scaled when it is saved to ensure that the height is not greater than the "preferred" screen height. (gemstone/phoenix will then further scale it in the UI). For optimal performance for highly graphical UIs (ie fanart UIs), then images should be scaled, per client, to be the exact size you want. This is both efficent in terms of memory storage, but also, smaller images take up less cache, and are less likely to be evicted. This was the issue in the miniclient. it has 32mb image cache. So even though it was showing a poster that that was only 400 pixels wide, it was sending a 1920x2880 size poster. On the server, sagetv had to load it and cache, and on the miniclient it has to load it and cache (~20mb). So what was happening, was that I'd press down, and it would load the next poster to show, and then sagetv would get the request to cache another ~20mb, and it wouldn't have room, so then it would go through and start evicting the "oldest" objects first (which were likely very small fonts, etc) until it had room to cache the new poster. During this process, there is constant back and forth since the images are removed from the cache, and then unloaded, and this "pause" was taking ~9-10 seconds. After I made changes in the MiniClient to use a larger cache, it was better, but just meant that I hit it further down the list of images. Finally, adding the auto-resize for the posters and backgrounds to ensrue they were an "optimal" source size, the performance started to come under control. It would be ideal, if in gemstone 2, the images were scaled "exactly" to the size they need to ensure the most optimal use of memory and caching. Using more diskspace vs faster client experience... i think the faster experience wins out
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#17
|
||||
|
||||
Part of the issue is that often times, UI elements in sage are not a fixed size. They are often percentages of whatever container they are in, so sizing ends up being 'close', but not exact. And scaling an image from just barely larger than displayed will end up looking far worse than scaling an image from much larger than it will be displayed, because there is more information to work with.
__________________
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 |
#18
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#19
|
||||
|
||||
I know that would maximize performance, by minimizing memory footprint, but like I said, shrinking a 2000x3000 image in the cache to 533x800 on the display is going to look a LOT better than shrinking a 2000x3000 image to 720x1080 in the cache and then shrinking that image to 533x800. In fact, the closer the cache and final render sizes are to each other, the worse the scaling will look.
I'm wondering if this is something that could be fixed architecturally, to change it so that the image is scaled to actual rendering size on the server instead of the miniclient.
__________________
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 |
#20
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unable to install Gemstone | panteragstk | Gemstone for v7 | 2 | 09-01-2016 04:32 PM |
Gemstone install error | CUTIGER91 | Gemstone for v7 | 5 | 12-29-2015 09:44 AM |
I just restored my sageTV install (Oct, 2011).. cleanest upgrade path to Gemstone? | mkanet | Gemstone for v7 | 2 | 09-28-2012 08:36 PM |
Laggy Setup | artyzipp | SageTV Software | 2 | 05-27-2009 07:44 PM |
laggy UI since 5.04 upgrade | davey_fl | SageTV Software | 1 | 08-31-2006 01:32 PM |