|
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 |
#1
|
|||
|
|||
multiple sources, fragmentation and WHS
Hi,
Some time ago my SageTV system started stuttering (esp when playing HD). After some digging I've identified small cluster size (4kb) and extreme fragmentation to be the root cause. After spending few nights with Partition Magic, destroying half of my data I finally managed to resize clusters to 16kb, then decided to split disk into two partitions where one is dedicated completely for SageTV (and uses cluster size 64kb). Guys, my advice -- never use Partition Magic for cluster resizing -- this piece of sheet likes to fail in the middle of operation with mysterious errors (taking half of your files with it). Anyways, now SageTV is happy and works fine. But I've noticed that recordings still end up being very fragmented due to the fact that when SageTV writes multiple recordings in parallel OS preallocates small chunks on-demand. So you end up with files being "interleaved" on the disk (i.e. 100kb of file1, then 100kb of file2, then again 100kb of file1, etc). Later when file1 is deleted and space is reused -- fragmentation goes on a rampage. In case if someone technical from SageTV team stumbles upon this posting -- what about doing preallocation manually (e.g. using 40Mb increments) using Win32 API function SetFilePointerEx(to move pointer forward) and SetEndOfFile(signals OS to preallocate space)? It works marvelously with overlapped I/O and FILE_FLAG_NO_BUFFERING (I am talking from my own experience). I am sure there are equivalents on Linux/etc. How SageTV works with WHS? Does it write files to pool drive and OS later transfers it to another location? In this case this whole fragmentation problem do not exists, right? (fragmentation goes away during this "transfer to another drive" step) Michael. |
#2
|
|||
|
|||
Quote:
Some people will put the hard drives they want to use for SageTV into the WHS drive pool. This way WHS can use that space for other functions like duplication and backing up other computers. Personally, I leave the hard drives I'm using for SageTV out of the WHS storage pool. WHS simply sees these drives as normal, but "other" drives. I have them formated to 64k blocks and I only use them for Sage recordings. You definitely need to format the drives you use for SageTV recordings to 64k block size. This is keep the fragmentation down to a minimum.
__________________
i7-6700 server with about 10tb of space currently SageTV v9 (64bit) Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable) OpenDCT HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party) Amazon Firestick 4k and Nvidia Shield using the MiniClient Using CQC to control it all |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using one STB with multiple sources | wayner | Hardware Support | 5 | 09-03-2008 05:21 PM |
Multiple sources | mr_milo | SageTV Software | 9 | 05-06-2006 09:58 AM |
One tuner - multiple sources? | h8dk97 | Hardware Support | 3 | 10-03-2005 10:10 PM |
Multiple Input Sources | KRKeegan | Hardware Support | 1 | 03-30-2005 05:44 PM |
Multiple media sources (libraries) | phatjew | SageTV Software | 2 | 01-28-2004 05:21 PM |