SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-31-2010, 01:42 PM
crusader crusader is offline
Sage User
 
Join Date: Nov 2009
Location: Houston, TX
Posts: 68
Lightbulb 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.
Reply With Quote
  #2  
Old 01-31-2010, 06:45 PM
sic0048 sic0048 is offline
Sage Icon
 
Join Date: Nov 2007
Posts: 1,400
Quote:
Originally Posted by crusader View Post
How SageTV works with WHS? Does it write files to pool drive and OS later transfers it to another location?
WHS doesn't really treat the files any differently than any other OS. The unique thing about WHS is how it backs up other computers. But if you use WHS to record shows, it will do so at whatever location you choose. It does not move them from that location.

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
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
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


All times are GMT -6. The time now is 11:00 PM.


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