![]() |
|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
||||
|
||||
Quote:
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#22
|
|||
|
|||
Depends on your perspective. That doesn't take that much drive storage but that 80MB is being loaded into memory in its entirety.
My SageTV service's memory footprint is nearly 900MB with a 43MB wiz.bin, all the plugins, and 2 extenders. Not sure how that breaks down beyond what I see in the task manager.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#23
|
||||
|
||||
That puts your wiz.bin at less than 5% of your memory footprint. If we're going to fix memory usage/heap size issues/problems/limitations with Sage, the wiz.bin isn't the first place I'd look, I'd be looking at putting each miniclient in it's own VM or something like that, much bigger bang for the buck as it were.
|
#24
|
||||
|
||||
It's pretty easy to clear all of the historical stuff out of the DB. Just set these properties:
wizard/retain_airings_from_completed_recordings=false (this'll prevent it from retaining data from things only because they were recorded) wizard/clear_profile=true (this'll clear all data relating to intelligent recording, everything watched, all the explicit and implicit don't likes) wizard/clear_watched=true (this'll only clear the Watched data vs. clear_profile, which clears a lot more than that) wizard/last_maintenance=0 (this'll cause DB maintenance to happen after load, which'll then clear all of the expired records from the DB...and if you set the above flags...there'll be lots of those.. and shrink it back down in size; normally this gets run at least once a day) The clear_watched and clear_profile properties will reset themselves after being read.
__________________
Jeffrey Kardatzke Founder of SageTV |
#25
|
||||
|
||||
Quote:
I was using Fuzzy's advice to build a slave server for imported videos and pointed the slave to import all the same video folders as the main server. and that wiz.bin is only 31MB. The only difference between the 2 is that the slave does not have any EPG data and no plug-ins are installed. The 2 main plug-ins on the main server are CMT & BMT. Perhaps the issue is in one of them. Quote:
__________________
If this doesn't work right, Then: "I'm going to blow up the Earth!" |
#26
|
||||
|
||||
Quote:
The problem for me was, I'd moved or renamed something so I had items in my database that no longer existed, but Sage was keeping them around (for safety) since it could not access the path to know they were not there. This caused the comskip plugin to "hang" while it waited for each file to timeout trying to access. The solution is this: seeker/disable_root_path_existence_check=true http://forums.sagetv.com/forums/show...ble_root_path* It tells Sage to not save files it can't find the parent/root path for (like old UNC paths for servers that got renamed or don't exist, drives that don't exist, etc). I'm actually having that problem right now since I've migrated to my VM server full time. So I have stuff pointed to \\sagetv, that can't be found since that server is disabled, (\\sagetvm is the new one). I still need to copy my old recordings to the new server, or at least go figure out if there's anything on that I really care about. Quote:
|
#27
|
||||
|
||||
Quote:
wizard/retain_airings_from_completed_recordings=false
__________________
Jeffrey Kardatzke Founder of SageTV |
#28
|
||||
|
||||
Going to try both of these...
seeker/disable_root_path_existence_check=true wizard/retain_airings_from_completed_recordings=false I want to state that the server has 16GB of memory and is pretty beefed up. I am not getting spinning wheels and the extenders for the most part are swift. My only real issue is that sometimes when a scan of the imported videos runs it seems to only find about 60-70% of the videos. When this happens it it usually universal (server/client/extenders) but sometimes is is not... I'm only guessing that it is either I'm reaching a limit on the amount of imported objects or that my database has got junk in it from a plug-in or something...
__________________
If this doesn't work right, Then: "I'm going to blow up the Earth!" |
#29
|
||||
|
||||
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 |
#30
|
||||
|
||||
Quote:
Is there something in the debug log that would let me know which file? And why would it work 9 out of 10 times if a particular file is a problem or is it one of several parameters that causes the issue? I also notice that the Memory being used for SageTV sometimes goes as high as 1.2GB but stays under 800MB when I limit my imports... I think the issue happens more so when the memory usage is high.
__________________
If this doesn't work right, Then: "I'm going to blow up the Earth!" |
#31
|
|||
|
|||
Quote:
|
#32
|
||||
|
||||
Quote:
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 |
#33
|
|||
|
|||
80 megs out of a 400mb (default) JVM is more like 20% which wold be significant for someone in that situation. For a 1 gig JVM it is 8%, which is much less so. I was alluding to the current version and steps that can be taken now by users until such time that other options are implemented. Something you can do now that might help is more significant than something that might be available months from now.
From the programming/development standpoint, yes, pursuit of optimizations of the wiz.bin is likely to not produce any significant improvement over other options already mentioned. We're talking past each other on this. |
#34
|
||||
|
||||
FWIW, the "normal" size of the wiz.bin is probably less than 50MB. Mine's a bit over 50MB but it's got almost 10 years of watched history. New users are unlikely to run into any issues with the wiz.bin or the 400MB default JVM size.
When you start getting more advanced, it's trivially easy to up the JVM size, but even then you really only need to do that when you start adding lots of extenders or plugins. Either way, the wiz.bin is probably the most tightly integrated, important, and hard to change part of SageTV and changing it would probably provide the least improvement in performance or memory usage, so I just don't see the point of messing with it. This seems to be a classic case of fearing what you (the collective you) don't understand. People don't understand the wiz.bin because it's a custom format, so they fear it, they assign all sorts of problems to it that it doesn't deserve, and just want to change it to something more familiar. |
#35
|
||||
|
||||
Not that this is an improvement, per se, but something down road, that might be cool, would be a jdbc wrapper for the Wiz.bin. If you had that, then people could use tools like Squirrel SQL to connect to the "database" to better inpect it, etc. It doesn't change the internal format, just how you access it, to make it more familiar
![]()
__________________
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 |
#36
|
||||
|
||||
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 |
#37
|
||||
|
||||
I'd be terrified if the database was rewritten. I remember the bad old days (version 4) when a corrupt wiz.bin was fairly common. When was the last time anybody had a corrupt wiz.bin these days? (And issues during upgrading from v7 to v9 don't count.) hardly ever. The current DB is fast and reliable. Now that it's opened sourced we are already seeing people writing tools to manipulate and export the data.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Limit to Day - V7 Improvements? | bellyman | SageTV Software | 10 | 09-27-2011 04:34 PM |
EPG Thread : Questions, Improvements, etc | bialio | Phoenix | 2 | 06-26-2011 05:55 AM |
Improvements needed for Sage TV HD | Flash2k6 | SageTV HD Theater - Media Player | 7 | 12-04-2009 07:03 PM |
Clear QAM Improvements to HVR-1600 | bcjenkins | SageTV Linux | 1 | 11-14-2009 09:13 AM |
general improvements | loomdog32 | SageMC Custom Interface | 0 | 12-25-2008 10:30 PM |