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 03-04-2008, 06:48 AM
pjpjpjpj pjpjpjpj is offline
Sage Icon
 
Join Date: Feb 2008
Posts: 2,164
64K Block partitioning?

I installed SageTV on my PC this past weekend for the first time. I see that SageTV recommends partitioning your hard drive (that will store recordings) into 64K blocks. I am completely clueless about this.

I have an external USB 500G hard drive that will be used exclusively for storing recordings, both SD and HD. In anticipation of getting the system set up, I copied all my MP3s to this drive, to be shared through Sage. When I looked into formatting the 500G drive, it said "all data will be lost", so obviously I need to move the MP3s to another drive - at least temporarily (?) - so my question is, if I format this drive with the 64K block partitioning, is it still usable for other files besides the recorded TV shows? What does this exactly do to the drive? Would it effect the ability to store music, photos, etc., on the drive? Do I just need to move the MP3s elsewhere, reformat the drive, and then move them back?

In other words, what effect does "64K block formatting" have on things... and what problems would/might I see if I do not?
Reply With Quote
  #2  
Old 03-04-2008, 07:08 AM
jerryt jerryt is offline
Sage Fanatic
 
Join Date: Oct 2007
Posts: 832
Pro = 64K clusters increases drive read speed. Helps prevent stutter.
Con = Wastes a small amount of disk space, because every file smaller then 64K, will take 64K of space.
Reply With Quote
  #3  
Old 03-04-2008, 07:54 AM
cslatt's Avatar
cslatt cslatt is offline
Sage Advanced User
 
Join Date: Nov 2005
Posts: 239
jerryt is 100% correct - The advantage is in improving read speeds and decreasing disk fragmentation - helps keep your video playing smoothly. The downside is you waste a lot if space IF you have a lot of small files (smaller than 64K) on that drive.
Reply With Quote
  #4  
Old 03-04-2008, 08:57 AM
matt91's Avatar
matt91 matt91 is offline
Sage Icon
 
Join Date: Feb 2005
Location: Washington, DC
Posts: 1,185
And just to complete the loop on this question: MP3s are generally 3-10mb/ each, so you wouldn't be losing any space on these files. However, if you have lots of smaller coverart (or other small files), you'd be losing space.

There are some in-place formatting programs, I think. This has come up before, search around and you might fine a commercial recommendation.
Matt
__________________
Server: Ubuntu 16.04 running Sage for Linux v9
Reply With Quote
  #5  
Old 03-04-2008, 09:50 AM
pjpjpjpj pjpjpjpj is offline
Sage Icon
 
Join Date: Feb 2008
Posts: 2,164
Thanks for the info - I agree, the MP3s wouldn't be the problem (and there wouldn't be any other files of mine on there), but I forgot about the cover art! That's a lot of wasted space. Of course, with a 500Gb drive, it might not matter, as the wife and I don't really let a lot of stuff pile up (our current Tivo is only a 35-Gig model and we have never come close... though granted it doesn't do HD).

If I move the MP3s to the PC's hard drive, they will take up about 75% of it (it's a small drive, hence the external one for TV), but will leave it at probably less than 10% free in total. My fear there is that the PC performance might suffer due to the hard drive being so full.

Could I pretty much count on stutter while watching recordings or "live" TV, if I do not format the drive with 64K blocks? Is it "frequent" or "rare"?
Reply With Quote
  #6  
Old 03-04-2008, 10:06 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by pjpjpjpj View Post
Could I pretty much count on stutter while watching recordings or "live" TV, if I do not format the drive with 64K blocks? Is it "frequent" or "rare"?
Count on it.


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
  #7  
Old 03-04-2008, 10:27 AM
Thomas Wischgol's Avatar
Thomas Wischgol Thomas Wischgol is offline
Sage Aficionado
 
Join Date: Sep 2005
Posts: 276
Quote:
Originally Posted by matt91 View Post
And just to complete the loop on this question: MP3s are generally 3-10mb/ each, so you wouldn't be losing any space on these files. However, if you have lots of smaller coverart (or other small files), you'd be losing space.

There are some in-place formatting programs, I think. This has come up before, search around and you might fine a commercial recommendation.
Matt
Just to clarify: this is not really correct either. With any file that is n*64+1 kB in size you will loose 63kB as an example. Hence, chances are that you are loosing some disk space no matter how large the files. However, the ratio between used space and lost space becomes significantly better the larger the files. So if your files are a few GB in size (which TV recordings typically are) your space lost is minimal. For example, with recordings of 2GB each on a 500 GB hard drive you will have space for about 250 recordings. The maximal space lost is 63kB per file, hence 250 * 63kB = 15 MB. On the other hand with files of 10 MB each, you will be able to fit 50000 on the hard drive and therefore loose up to 3076 MB of space.

Thomas
Reply With Quote
  #8  
Old 03-04-2008, 12:24 PM
RobJ RobJ is offline
Sage Advanced User
 
Join Date: Jan 2007
Location: Tampa, FL
Posts: 97
Quote:
Originally Posted by Thomas Wischgol View Post
Just to clarify: this is not really correct either. With any file that is n*64+1 kB in size you will loose 63kB as an example. Hence, chances are that you are loosing some disk space no matter how large the files. However, the ratio between used space and lost space becomes significantly better the larger the files. So if your files are a few GB in size (which TV recordings typically are) your space lost is minimal. For example, with recordings of 2GB each on a 500 GB hard drive you will have space for about 250 recordings. The maximal space lost is 63kB per file, hence 250 * 63kB = 15 MB. On the other hand with files of 10 MB each, you will be able to fit 50000 on the hard drive and therefore loose up to 3076 MB of space.

Thomas
Your post is completely and technically correct, but I would like to offer a counterpoint. It is generally customary to leave empty space, often 10 to 20 gigabytes, at the end of a drive, 'just in case' or because one's defragger demands it, or ... With so much unused space dwarfing the small amounts lost to less-efficient but better-performing clustering, arguments don't carry much wait to try to maximize space usage. They would only matter if you were running out of room.
Reply With Quote
  #9  
Old 03-04-2008, 12:49 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
The cover art for albums won't take that much wasted space.

I just remembered that I have a utility to report disk space usage, taking cluster size into account to report wasted space, and reporting on the disk's current cluster size. This utility was more important when I had limited drive space & needed to make better use of the clusters, but since there seems to be a frequent question about how to check a drive's current cluster size, I've put it in the forum's download section: File Size & Disk Usage.

You can use it to see just how much those music files + cover art really use and how much space is wasted... and you'll probably see that the % wasted space is fairly low.

- 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
  #10  
Old 03-04-2008, 01:05 PM
elaw elaw is offline
Sage Advanced User
 
Join Date: Mar 2005
Location: Wilmington, MA, USA
Posts: 179
Actually, estimating wasted space is pretty simple. The key is the "slack" (the industry term for space wasted due to partial cluster use), which averages 1/2 the cluster size*.

So you can get an approximation of wasted space by computing (cluster size / 2) * (total number of files on the disk or partition). So with 1000 files on a drive w/64K clusters, it's (64K/2 = 32K) * 1000 = about 32 megabytes. The same drive with 4K clusters (NTFS default) would have (4K/2 = 2K) * 1000 = 2 megabytes of wasted space. Neither number is very large compared to current HD sizes of 500, 750, 1000 gigabytes.

*This method assumes most of your files are much larger than the cluster size (usually the case on a HTPC). Doesn't work so well with small files, like on a web server with a bunch of .htm files that are only a few K each.
__________________
Be alert! America needs more lerts.

Eric Law
Reply With Quote
  #11  
Old 03-04-2008, 01:40 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by elaw View Post
So with 1000 files on a drive w/64K clusters, it's (64K/2 = 32K) * 1000 = about 32 megabytes.
To put it in perspective, that works out to about 20 seconds of HD video, maybe a minute of SD. Hardly worth worrying about.
__________________
-- Greg
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
How important is 64K block size msmith8228 Hardware Support 49 01-09-2010 07:08 AM
OS on its own partition vs. just one large partition w/ 64k blocks? korben_dallas General Discussion 8 03-05-2007 10:25 AM
Convert to 64K Blocks Stuntman Hardware Support 9 02-08-2007 02:14 PM
64K cluster size? kandieman101 SageTV Software 13 12-29-2006 07:55 AM
64k block size and XP - is it compatible? Ctrl-Z Hardware Support 19 01-20-2005 12:31 PM


All times are GMT -6. The time now is 04:49 AM.


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