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 04-30-2008, 01:42 PM
dotheDVDeed dotheDVDeed is offline
Sage Advanced User
 
Join Date: Mar 2007
Posts: 84
Why are my SageTV recordings fragmented?

ALL (repeat ALL) my SageTV recordings are fragmented on my 64k formatted HD.

And the recordings seem to made up of what's close to 1 meg fragments. ie 4.9 GB file has about 4,900 fragments and a 6 GB file has about 6,000 fragments.

For the most part these fragmented recordings are playable on my HD extenders, but ah, this can't be a good thing, can it?

I'm using the standard SDTV theme, etc. Version 6.3.10.2--700 GB drive w/ 417 GB free.

TIM
Reply With Quote
  #2  
Old 04-30-2008, 01:59 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
If you record more than one program at a time, they're going to be fragmented, just because of the way disk allocation works. Or if your disk is close to full and it has to delete old programs to make room for new ones, you're probably going to get fragmentation as a result.

Fragmentation isn't necessarily a bad thing. The point of using 64K clusters is so that fragmentation won't matter so much, because the disk has plenty of time to seek to the next fragment while the previous fragment is playing back. (With smaller clusters it would have to seek a lot more often, and there wouldn't be enough time.)

Some people have argued that Sage should preallocate files in order to avoid fragmentation. That might help with playback (then again it might not), but it would probably be worse for recording multiple shows at once, because the disk would be seeking all over the place while writing to different files. You really want to minimize seeking during recording, to avoid buffer overruns and damaged recordings.
__________________
-- Greg
Reply With Quote
  #3  
Old 04-30-2008, 02:34 PM
dotheDVDeed dotheDVDeed is offline
Sage Advanced User
 
Join Date: Mar 2007
Posts: 84
Thanks Greg for the explanation. Seems to me there should be a "mini-app" included with SageTV that copies, defrags and replaces these files at a user-designated time when SageTV is neither serving or recording.

I've read other threads here where users have automated Videoredo to perform a quickstream fix on their recordings during downtimes. I can't help but wonder whether just a defragging of these recordings is all that's necessary in most cases.

TIM

Last edited by dotheDVDeed; 04-30-2008 at 02:53 PM.
Reply With Quote
  #4  
Old 04-30-2008, 03:20 PM
mdnttoker mdnttoker is offline
Sage Aficionado
 
Join Date: Aug 2006
Posts: 446
What about what app's like uTorrent does, allows you to allocate a large chunk of disk space at once?

Sage knows how long the TV show is going to be (non-live TV that is), and should be able to guestimate a disk allocation amount.

Why not allocate a large chunk @ the beginning, then fill it up as you go, like the uTorrent app does?
Reply With Quote
  #5  
Old 04-30-2008, 03:57 PM
Thomas Wischgol's Avatar
Thomas Wischgol Thomas Wischgol is offline
Sage Aficionado
 
Join Date: Sep 2005
Posts: 276
Quote:
Originally Posted by mdnttoker View Post
What about what app's like uTorrent does, allows you to allocate a large chunk of disk space at once?

Sage knows how long the TV show is going to be (non-live TV that is), and should be able to guestimate a disk allocation amount.

Why not allocate a large chunk @ the beginning, then fill it up as you go, like the uTorrent app does?
You still will end up with fragmentation once your hard drive gets full and Sage starts deleting old recordings. I do not think fragmentation is that much of an issue if you use 64K cluster size and have your system set up so that it uses caching (that is write caching - preferably write-back - as well as cached reads). Keep in mind that defragmenting the hard drive - either by copying files around or using a defragger - also increases wear because the drive will seek constantly during that process.

Thomas
Reply With Quote
  #6  
Old 04-30-2008, 06:35 PM
unkyjoe's Avatar
unkyjoe unkyjoe is offline
Sage Advanced User
 
Join Date: Dec 2006
Location: Seguin TX
Posts: 221
Ok, so any benefit to setting up 64k clusters on the DVD or Music store disks?

Or does it only benefit the recording drive - why do I ask? Well you see I formatted my DVD storage drives with 4k clusters instead of 64k.

Thanks for the help.
__________________
SageTV HD100 Extender
SageTV MVP Extender
Media Server-WHS - 2GB Ram - 3TB storage - Windows 7 MC - My Movies Plugin for Win7MC
"Life is a banquet and most people are starving to death!"
Reply With Quote
  #7  
Old 04-30-2008, 07:21 PM
rfutscher rfutscher is offline
Sage Advanced User
 
Join Date: Apr 2003
Posts: 141
Each device has a I/O buffer. When a record buffer becomes full you want to empty it using one cluster. Like wise for a play back buffer. When a play back buffer becomes empty you want to fill it using the data from one cluster. If you have three tuners and three playback devices the heads are constantly moving to service the six buffers. This is why a fragmented file doesn't matter. The heads are always in the wrong place from servicing other buffers.

I would guess that the play back buffer sizes are the same for off air video and DVD playback. Therefore you would want the cluster size to be the same so that one cluster fills the playback buffer.


Quote:
Originally Posted by unkyjoe View Post
Ok, so any benefit to setting up 64k clusters on the DVD or Music store disks?

Or does it only benefit the recording drive - why do I ask? Well you see I formatted my DVD storage drives with 4k clusters instead of 64k.

Thanks for the help.
Reply With Quote
  #8  
Old 05-01-2008, 06:56 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by GKusnick View Post
Some people have argued that Sage should preallocate files in order to avoid fragmentation. That might help with playback (then again it might not), but it would probably be worse for recording multiple shows at once, because the disk would be seeking all over the place while writing to different files. You really want to minimize seeking during recording, to avoid buffer overruns and damaged recordings.
Quote:
Originally Posted by mdnttoker View Post
What about what app's like uTorrent does, allows you to allocate a large chunk of disk space at once?

Sage knows how long the TV show is going to be (non-live TV that is), and should be able to guestimate a disk allocation amount.

Why not allocate a large chunk @ the beginning, then fill it up as you go, like the uTorrent app does?
The reason you wouldn't want this is Greg's comment above.
Reply With Quote
  #9  
Old 05-01-2008, 09:06 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by unkyjoe View Post
Ok, so any benefit to setting up 64k clusters on the DVD or Music store disks?

Or does it only benefit the recording drive - why do I ask? Well you see I formatted my DVD storage drives with 4k clusters instead of 64k.

Thanks for the help.
I'm running WHS for the Sage server and have 300GB left over from the primary disk which by default is formatted automatically to 4k. DVDs loaded on that drive play fine with no issues. My opinion is it is more important for the huge recordings. Especially HD. (Which mine are stored on drives NOT managed by WHS and formatted for 64K.)

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #10  
Old 05-01-2008, 11:57 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
The small clusters should be OK for fixed-content if the files are not fragmented & you are not reading multiple media files simultaneously from the same drive. If there were 2 clients trying to read from the same drive, that would raise the chance of stuttering playback because the drive would have to keep seeking between the 2 files & seeking to read a small cluster, then seeking to the next small cluster at another location is what the drive can't keep up with at times.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
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
SageTV FAQ Narflex SageTV Software 45 04-15-2011 08:34 AM
Recordings in Video Library SageDonkey SageTV Beta Test Software 2 03-14-2008 07:22 AM
Is anyone still using the mlbdude style SageTV Recordings menu in the default STV? Opus4 SageTV Customizations 31 03-05-2008 09:08 AM
Recordings screen a disaster of clutter perf SageTV Beta Test Software 16 08-20-2007 10:46 AM
Scheduled recordings bazan SageTV Software 4 09-15-2006 08:36 AM


All times are GMT -6. The time now is 10:55 AM.


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