|
SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.) |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Quote:
What priority are things like user application binaries (ie, outlook, firefox, thunderbird, chrome)? What priority are those program's data (mailbox files, web caches, fonts, etc)? I'm guessing it is 5 because with the absurdly complex windows APIs, most people are going to take the default. So it basically boils down to the same problem as on *nix: Without sage (or whatever is accessing large recording files, including comskip, plex, etc), there is a large potential for the large files to screw up interactive work. At least in *nix, the "cache" is generally a "page cache", also known as a "Unified Buffer Cache", that is shared between anonymous ram, and file backed pages. This concept is probably similar on windows. At least some unixes allow you to set policies on this cache, so that files cannot cause applications to be swapped out. Not sure how windows behaves here either. Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#22
|
||||
|
||||
I think the problems people experience have more to do with the page-file usage, than the cache. They are just a little related when system memory is low. With RAM prices over the last 2 years, I've made it a point to install enough RAM to make the pagefile unnecessary, and actively disable it on all my systems. (My sage server, which does a lot more than just sage, has 16GB, my sage clients all have 6-8GB, and my general purpose desktop has 12GB).
The thing is, having both a disk cache, AND a page file, are counterproductive to each other. Storing files in RAM, and swapping data to disk, are mutually wasteful.
__________________
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 |
#23
|
||||
|
||||
This is what's happening...
I am able to at least follow what's going on my PC that causes the sluggishness...
I use the utility called ATM to view different priority standby lists. Yes, SageTV recordings first show up in standby list P5 (shown in white color in attached screenshot). For load testing, I started 11 simultaneous TV recordings in sageTV, then took the screenshot. P5 standby list data starts to move down to P1 block-by-block; depending what I'm doing in other active applications (ie, up new web pages in my web browser or navigate to new sageTV menus with more fanart). See the second attached screenshot. However... Instead of data reaching P0 standby list and, subsequently getting purged from memory all together, data moves back UP to priority 5 standby list. This process can go back and forth indefinitely (between standby list P5 and P1) until I start new recordings. It is only then that the older recordings get purged from standby lists (replaced by newer recordings). During this seemingly never-ending cycle, my system progressively gets sluggish in the course of days (depending on how busy my PC is). So, why is there sluggishness related to this type of activity? Things seem to be moving along the way they should. Whatever it is, it is related to relatively large chunks of data being juggled between standby list P5 and P1; as witnessed by other people who reported this symptom under similar circumstances. Also, why does the sluggishness go away instantly after I empty the standby list? These two questions are what I can't answer. There are no Microsoft white papers that can explain this symptom. Quote:
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming ***RIP SageTV*** |
#24
|
||||
|
||||
Nope... my pagefile doesnt get used much. If it does, not much of it gets used. Plus, that wouldn't explain why clearing the standby list immediately cures the slugish symptom.
Quote:
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming ***RIP SageTV*** |
#25
|
||||
|
||||
Quote:
EDIT: Actually, it seems that it is likely the SuperFetch (the feature, not the service) that is bringing that data back into the priority 5 list as other processes are releasing memory. An unfortunate aspect of superfetch trying to allow 'new' programs to open and have a lot of memory to use, but then when they are done with that memory, it allows it to recache what was repurposed - whether really needed or not. Again, this is a problem with sage not properly opening the files at a low priority as it should. A lower priority file is less likely to be re-cached. You CAN disable SuperFetch with a registry key, without disabling the other features (ReadyBoost, ReadyBoot, ReadyDrive). The key for disabling SuperFetch, is HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters\EnableSuperfetch="0" if you feel the need to try it. Not related to this problem, I have always wished sage was more 'modular' process wise. Especially on systems of your size. I really prefer the network encoder based system that the R5000 uses, and wish that is how all sage recording was done. A separate process for each 'tuner' that handles it's own tuner, and simply tunes and writes. Then also a separate process for each extender UI. Sage did make a standalone recording process, but it wasn't updated with the newer tuner codes, so it likely won't work with newer stuff (like the HDHR).
__________________
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 Last edited by Fuzzy; 04-25-2013 at 08:36 PM. |
#26
|
||||
|
||||
That was a nice thought. But, it looks like MS Superfetching (not the service) can't be disabled. There's still the same standbylist activity/behavior (and respective sluggishness effect)after I made the registry setting change and rebooted. By manually clearing the standbylist, the problem goes away instantly. BTW, 6 of my SageTV recording sources are network encoders... 4 of them R5000, 2 of them DVB-S2.
Quote:
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming ***RIP SageTV*** |
#27
|
||||
|
||||
The disabling of the superfetch wont stop the caching, just the recaching of files previously purged. I still think to understand the problem, you need to figure out what is actually causing it. I don't contest it had to do with the cache, but it's odd that most don't have this problem.
__________________
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 |
#28
|
||||
|
||||
There aren't very many people who use their PC in the same way I do; especially those who have 8GB of RAM. I can't figure out what specifically causing it with the tools I have. Plus, even if I did find what specifically caused the symptom, I doubt there would be a setting I can just turn off or change to fix the problem.
I can rule out what it's not (such as pagefile activity, general CPU or HDD activity, or lack of "available" RAM shown in task manager). I can also at least narrow it down to superfetch activity that's the indirect cause of the symptom. When me (and others with this symptom) can instantly cure the sluggishness by emptying the entire standby list, one would think it would be a huge clue. Unfortunately, there's no tool I can think of that would expose the direct cause of the issue. I guess throwing a ton of more RAM at the problem could make the problem go away; but, I wouldn't be able to explain that either. Quote:
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming ***RIP SageTV*** |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help! Problem with large M2ts files. | Gregavi | SageTV HD Theater - Media Player | 0 | 07-24-2010 08:49 PM |
Unable to play files with large metadata in SageTV7 | Peter_h | Batch Metadata Tools | 16 | 07-09-2010 07:25 PM |
HELP! large vob files truncated to 1hr 16 minutes | rnewman | SageTV Software | 12 | 12-31-2006 09:45 AM |
Recording a large number of partial files | mpenton | Hardware Support | 1 | 02-01-2006 11:54 AM |
Recovery of free space after moving large files? | rotaryracer | Hardware Support | 8 | 07-30-2004 08:17 AM |