SageTV Community  

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

Notices

SageTV Mac Edition Discussion related to the SageTV Media Center for Mac edition. Questions, issues, problems, suggestions, etc. relating to the SageTV Mac edition should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-29-2008, 02:05 PM
mcbrems's Avatar
mcbrems mcbrems is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 78
Setting Hard Drive block size to 64KB

Hey,

Sage recommends formatting the video storage drive to 64KB block size for best performance. It isn't so obvious how to do this in Mac OSX.

I've scoured the Apple support site, and could only find reference to specifically setting allocation block size in relation to Xsan drives using Xsan Admin. The only other reference to formatting a drive to optimize for video playback was in relation to Apple's iMovie, stating that formatting the drive to HFS Extended would yield the best result. It's not clear how any of this relates to journalled formatting either.

This is another avenue I'm considering to eliminate the occasional video hiccup. Does anybody have experience with this?

Thanks,
MB
__________________
MacMini 2GHz Intel Core 2 Duo
2GB SDRAM OSX v10.6
Nvidia GeForce 9400M
Sony SXRD-A502000
Silicon Dust HDHomerun Dual OTA Tuner
2TB My Book External Firewire

Last edited by mcbrems; 04-29-2008 at 02:28 PM. Reason: for clarity
Reply With Quote
  #2  
Old 05-04-2008, 09:13 AM
karljayne karljayne is offline
Sage User
 
Join Date: Jan 2005
Posts: 74
I read somewhere on the internet that the default block size on Leopard is 4Kb. As far as I can tell there is no way to change that when partitioning a device from OS X, other than with RAID tools. Of course, that doesn't mean you can't partition the drive with another OS, perhaps there's a utility that allows block sizing for Linux?
__________________
Server WIN7PRO, AMD Phenom II Deneb, 4GB RAM, Gigabyte GeForce 7300 GS 512MB, RAID0 600GB, Hauppauge 500MCE, HD PVR w/ DCT-6200, HDHomerun, SageTV 7.0.12
Reply With Quote
  #3  
Old 05-05-2008, 05:08 PM
iconic's Avatar
iconic iconic is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 138
Quote:
Originally Posted by mcbrems View Post
This is another avenue I'm considering to eliminate the occasional video hiccup. Does anybody have experience with this?
I wouldn't bother, the Unified Buffer Cache should smooth out mass storage bottlenecks. Is the hiccup while recording, playing back, or both (in which case it has absolutely nothing to do with mass storage)?
Reply With Quote
  #4  
Old 05-05-2008, 06:05 PM
mcbrems's Avatar
mcbrems mcbrems is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 78
Only when playing back... usually 1080HD material. After the hiccup (dropped frames) I am able to skip back to just before the occurance and verify the integrity of the stream - in other words, I immediately play it again and no frames are dropped in the exact same place, confirming that all of the frames were recorded, and that the issue is with playback.
__________________
MacMini 2GHz Intel Core 2 Duo
2GB SDRAM OSX v10.6
Nvidia GeForce 9400M
Sony SXRD-A502000
Silicon Dust HDHomerun Dual OTA Tuner
2TB My Book External Firewire

Last edited by mcbrems; 05-06-2008 at 11:27 AM.
Reply With Quote
  #5  
Old 05-07-2008, 01:07 PM
sandor's Avatar
sandor sandor is offline
Sage Expert
 
Join Date: Dec 2006
Location: Philadelphia, PA USA
Posts: 621
I'm going to look into it a little further, but part of the 64 K block issue is with NTFS itself. I use ext3 formatted hard drives (default block size) as recording drives, and have no issues with fragmentation. I am assuming that HFS+ with journaling will have just as few problems with fragmentation as ext3 - NTFS just flat out stinks in many ways.




***edit***

forgot to add, HFS+, as well as utilizing delayed allocations (in order to find contiguous blocks), has built-in, on-the-fly, auto-defragmentation for files under 20 MB in size.


So, basically, the way HFS+ was created and how it deals with allocating blocks for data goes a tremendously long way in preventing the fragmentation of data in the first place.
__________________
MacBook Core2Duo 2 ghz
nVidia 9400M GPU
46" Sammy HLP4663 720p DLP
2x HDHR, all OTA
QNAP TS-809:
12.5 TB for Recordings/Imports/TimeMachine/Music
HD200 via 802.11n in Living Room
802.11n client in bedroom

Last edited by sandor; 05-07-2008 at 02:13 PM.
Reply With Quote
  #6  
Old 05-08-2008, 06:19 PM
iconic's Avatar
iconic iconic is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 138
Quote:
Originally Posted by mcbrems View Post
Only when playing back... usually 1080HD material. After the hiccup (dropped frames) I am able to skip back to just before the occurance and verify the integrity of the stream - in other words, I immediately play it again and no frames are dropped in the exact same place, confirming that all of the frames were recorded, and that the issue is with playback.
I'm guessing you don't get the same issue with VLC? That doesn't sound like it's mass-storage related. You don't have Apple Mail running at the same time do you?
Reply With Quote
  #7  
Old 05-08-2008, 06:57 PM
mcbrems's Avatar
mcbrems mcbrems is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 78
Quote:
Originally Posted by sandor View Post
forgot to add, HFS has built-in, on-the-fly, auto-defragmentation for files under 20 MB in size.
How does HFS+ auto-defrag with files under 20MB help with 8GB mpg files? As I understand, the larger the block allocation, the less blocks of data, and therefore less "fragments." With huge video files, aren't we concerned with fragmentation at sizes higher than 20MB?

Thx
__________________
MacMini 2GHz Intel Core 2 Duo
2GB SDRAM OSX v10.6
Nvidia GeForce 9400M
Sony SXRD-A502000
Silicon Dust HDHomerun Dual OTA Tuner
2TB My Book External Firewire
Reply With Quote
  #8  
Old 05-08-2008, 07:03 PM
mcbrems's Avatar
mcbrems mcbrems is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 78
Quote:
Originally Posted by iconic View Post
I'm guessing you don't get the same issue with VLC? That doesn't sound like it's mass-storage related. You don't have Apple Mail running at the same time do you?
VLC plays the same files fine. In fact, SageTV V6.4.0 stutters on archived files that 6.3.5 plays just fine, so I know it's not storage-related, and I know the issue is 6.4.0-centric when it happens with nothing else open but Sage.
__________________
MacMini 2GHz Intel Core 2 Duo
2GB SDRAM OSX v10.6
Nvidia GeForce 9400M
Sony SXRD-A502000
Silicon Dust HDHomerun Dual OTA Tuner
2TB My Book External Firewire

Last edited by mcbrems; 05-09-2008 at 11:21 AM.
Reply With Quote
  #9  
Old 05-09-2008, 11:03 AM
sandor's Avatar
sandor sandor is offline
Sage Expert
 
Join Date: Dec 2006
Location: Philadelphia, PA USA
Posts: 621
Quote:
Originally Posted by mcbrems View Post
How does HFS+ auto-defrag with files under 20MB help with 8GB mpg files? As I understand, the larger the block allocation, the less blocks of data, and therefore less "fragments." With huge video files, aren't we concerned with fragmentation at sizes higher than 20MB?

Thx

its just one of the many underlying benefits of a file system such as HFS+ or ext3 - these file systems work in ways that keep fragmentation from happening in the first place, unlike NTFS.

I haven't done any testing wrt to HFS+, but, as i said, my Sage system records everything to an ext3 NAS, and i have done extensive testing with it, and block size makes nary a difference in performance.
__________________
MacBook Core2Duo 2 ghz
nVidia 9400M GPU
46" Sammy HLP4663 720p DLP
2x HDHR, all OTA
QNAP TS-809:
12.5 TB for Recordings/Imports/TimeMachine/Music
HD200 via 802.11n in Living Room
802.11n client in bedroom
Reply With Quote
  #10  
Old 12-21-2008, 03:09 AM
CadErik's Avatar
CadErik CadErik is offline
Sage Advanced User
 
Join Date: Jan 2006
Location: Ottawa, Canada
Posts: 148
Quote:
Originally Posted by sandor View Post
its just one of the many underlying benefits of a file system such as HFS+ or ext3 - these file systems work in ways that keep fragmentation from happening in the first place, unlike NTFS.
This is totally wrong, there are even defrag tools for ext3.
My guess is that the file usage on Linux is different enough and doesn't cause inherently so much fragmentation - which is why this is less an issue -.
There are no secret miracles when you need to read and write multiple streams of undefined length of data at the same time, fragmentation happens.

Last edited by CadErik; 12-21-2008 at 03:15 AM.
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
Hate to say it, but DirectTV makes me use Sage much less... Shield General Discussion 27 01-03-2008 11:45 AM
HD set top into Sage... How without dropping to SD? DRM2PVR Hardware Support 3 01-02-2008 04:29 PM
HD QAM Tuners happyfirst Hardware Support 2 10-21-2007 02:03 PM
Channel Merit Setting? spacecadet SageTV Software 15 09-25-2007 08:13 AM
Set HD preferences for a specific show? bwillet SageTV Software 1 02-19-2007 01:42 PM


All times are GMT -6. The time now is 05:29 PM.


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