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 06-09-2004, 12:36 PM
broderp's Avatar
broderp broderp is offline
Sage Expert
 
Join Date: Apr 2004
Posts: 510
Routine Maintenance

In light of my experience last night, I was wondering what effects if any automatically scheduling activities like DEFRAG and scan disk on my hard drives will work with a PC up and running 24/7 SAGE 2.0.

Will a defrag STOP a EPG update? Will I loose any information? Will it cause my PC to lock up and crash? What if I'm recording a show at 3AM during the time a defrag has to run?


How do you guys incorporate these tasks with the usage of sage?

Thanks.
__________________
Raymond
RIP: P4 3.0Ghz, ASUS MB, 2G MEM, ATI 1300X AGP VIDEO, PVR-150MCE & PVR-500MCE, 1 TB HD

NEW: DELL OPTIPLEX 755, 4GB MEM, ATI DVIX (DUAL) VIDEO, PVR-1250MCE & PVR-500MCE, 1.3TB HDD's
Reply With Quote
  #2  
Old 06-09-2004, 12:49 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
I've never defragged my Sage drive, it's not neccessary, especially if you have the drive formatted with 64k clusters. In fact I don't defrag my HTPC at all. There's only a few programs on it, and nothing gets moved around much.

I just checked my SageTV drive, and it's 49% fragmented with 99% file fragmentation, but it hasn't caused on problem. Keep in mind, you're dealing with really big files here and that they aren't fraged into many peices (my average is 6.5 fragments/file).

In fact I seem to remember some cases where Defrag actually caused problems. Defrage hits the drive pretty hard, and if it's happening while a recording is occuring it can actually lead to corrupted recordings.
Reply With Quote
  #3  
Old 06-09-2004, 12:54 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
I used to defrag (& still do for my work machine), but I've got SageTV recordings with _thousands_ of fragments and they play perfectly. The 64K cluster size is the key, like stanger89 said.

- 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
  #4  
Old 06-09-2004, 01:14 PM
broderp's Avatar
broderp broderp is offline
Sage Expert
 
Join Date: Apr 2004
Posts: 510
OK, how do I get 64K cluster sizes, how dies it benifit over the NTFS file system?

Can I add a partision to my HD or must I use some utility to do it? (I've done this many times with win98SE PC's and a boot disk.

How will MPEG2 recorded on a 64K cluster partition play with/ interact with a different PC that is NTFS? (I will be transfering files to put on DVD, onto a different PC, and the software I use is PICKY)
__________________
Raymond
RIP: P4 3.0Ghz, ASUS MB, 2G MEM, ATI 1300X AGP VIDEO, PVR-150MCE & PVR-500MCE, 1 TB HD

NEW: DELL OPTIPLEX 755, 4GB MEM, ATI DVIX (DUAL) VIDEO, PVR-1250MCE & PVR-500MCE, 1.3TB HDD's
Reply With Quote
  #5  
Old 06-09-2004, 01:18 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally posted by broderp
OK, how do I get 64K cluster sizes, how dies it benifit over the NTFS file system?
You use 64K cluster with NTFS, you just use the format utility and select 65536 as the alocation unit size (this will format the drive so don't do it if there's something important there).

Quote:
Can I add a partision to my HD or must I use some utility to do it? (I've done this many times with win98SE PC's and a boot disk.
You can do it when you install windows, but to do it without reinstalling you need to use something like Acronis Partition Expert to resize the OS partition and create a new one after it.

Quote:
How will MPEG2 recorded on a 64K cluster partition play with/ interact with a different PC that is NTFS? (I will be transfering files to put on DVD, onto a different PC, and the software I use is PICKY)
Cluster size is transparent to the user, it makes no difference either on the local PC or to any other networked PC. You're still using NTFS, just NTFS with 64K clusters instead of NTFS with the default 4K clusters.
Reply With Quote
  #6  
Old 06-09-2004, 01:23 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Like stanger89 said, you can use 3rd party utilites to partition/format/resize clusters & they can do it w/o destroying the existing data. (OK, you can't reformat w/o destroying data, but you can resize the partitions or clusters.) In addition to the Acronis utility he mentioned, I have never had a problem using Partition Magic for such tasks.

- 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
  #7  
Old 06-09-2004, 02:02 PM
cmaffia's Avatar
cmaffia cmaffia is offline
Sage Expert
 
Join Date: May 2004
Posts: 612
Send a message via Yahoo to cmaffia
I partitioned my 160GB hard drive after I had tweaked and installed my OS. Preferably partioning a drive prior to OS installation and configuration is recommended. I used Partion Magic 7.0 on my Windows XP SP1 without any problems.
__________________
Server: Dual Tuner: PVR-150MCE/PVR-250MCE/SageTV v5.02/Asus Pundit-R 2.4GHZ/512MB DDR RAM/250 GB Maxtor HD (8MB Buffer) External Seagate 400GB HD via USB 2.0/Onboard ATI 9100 using SVIDEO TV-Out/Nvidia DVD decoder/Actisys 200L IR Blaster (Dish receiver) USBUIRT (DirectTV receiver)/Lite-On 4X DVD-R/RW/Windows XP Pro SP2/Adesso Mini IR Keyboard w/integrated mouse/Tivo "Peanut" Remote via USBUIRT/Dish Network Model 301/DirectTV subscriber/Webserver Plugin v2.8
Reply With Quote
  #8  
Old 06-09-2004, 02:09 PM
Lester Jacobs Lester Jacobs is offline
Sage Aficionado
 
Join Date: Mar 2003
Location: Mississauga, Canada
Posts: 498
Quote:
Originally posted by stanger89
I've never defragged my Sage drive, it's not neccessary, especially if you have the drive formatted with 64k clusters. ...
Actually, I have somewhat of a different experience. I have a 120GB drive dedicated to SageTV and formatted with 64k clusters. It's been running fine for about a year.

Recently, I noticed that Sage was taking longer and longer to change channels, sometimes up to 1 minute or even 2 minutes. During these periods, the hard drive light would come on solid. I surmised that the hard drive might be fragmented and did a check. My files were 99% fragmented. More importantly, my free space was also 99% fragmented. In fact it was so fragmented that instead of having blocks of red and white in the defragmenter analysis like it usually shows, my drive showed as a solid pink block. This was obviously simply alternating red and white lines.

I copied all of the recordings from my Sage drive to another drive, reformatted it, then copied the files back. Since then channel change performance in Sage has vastly improved. In fact it's back to the level where it was when I first installed Sage a year ago.

So while I agree that 64k clusters do help tremendously with the fragmentation issue, I believe that performance will deteriorate at some point and a defragmentation will be required.

Incidentally, my drive was so fragmented that even the defragger wouldn't touch it (assumedly it needed a certain amount of free space to work which it didn't have) so I have to use the copy off - reformat - copy back technique.

Cheers
Lester
__________________
Lester Jacobs
Web: http://www.digicasa.com
"The shortest answer is doing."
English Proverb. Collected in: George Herbert, Jacula Prudentum (1651).
Reply With Quote
  #9  
Old 06-09-2004, 04:14 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
But still, I'd only recommend running defrag manually, without sage running, and only if there is something you are trying to fix (like the situation Lester mentioned).
Reply With Quote
  #10  
Old 05-15-2006, 01:06 AM
korki korki is offline
New Member
 
Join Date: May 2006
Posts: 1
defrag 64 k aloc. unit ??

Hello.

Running defrag isn't possible for 64k aloc.unit in win xp sp2. What is the alternative ? Only move and copy back all stuf ?

Thank's
Reply With Quote
  #11  
Old 05-15-2006, 05:32 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Don't bother, I never do.
Reply With Quote
  #12  
Old 05-15-2006, 06:00 AM
dooferlad's Avatar
dooferlad dooferlad is offline
Sage Advanced User
 
Join Date: Aug 2004
Posts: 165
If you have unfragmented free space you can easily defrag a file by making a copy of it and deleting the original. When Sage writes a file it doesn't tell the OS what size it is going to be, so Windows won't know to start writing at the start of a huge chunk of free space. When the file is complete and you make a copy of the file, Windows will know how big the file is and will write it in as large a chunks as it can.

You probably benefit from using a partition dedicated to video because when a large file is deleted it leaved a large hunk of free space behind, which is hopefully continuous. If you only have one tuner and only Sage writing to that partition you can expect very little fragmentation. As soon as you have more than one tuner you will run into problems.

There are a couple of things that the Sage guys could do to get around the problems of disk fragmentation:

1. Read ahead more
2. Create large empty files before a recording is due to start and write into them - hopefully if you ask the OS for 3Gb of disk space it will give you a 3Gb continuous chunk (if it has one). I would guess that most recordings are CBR, so you shouldn't waste too much disk space doing this.

Clearly 1 is the best option. I would happily give up 32Mb of RAM or so to ensure my disk was never holding back playback.
Reply With Quote
  #13  
Old 05-15-2006, 06:20 AM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
Quote:
Originally Posted by stanger89
Don't bother, I never do.
Neither do I. Been running Sage for almost a year and a half and never defrag.
Reply With Quote
  #14  
Old 05-15-2006, 07:11 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by blade
Neither do I. Been running Sage for almost a year and a half and never defrag.
Same machine, same drives, same config (2 x 160 GB SATA drives in RAID 0) and 64K blocks for over 3 years and never defragged.

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
  #15  
Old 05-15-2006, 06:51 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Just under 1TB - 6 tuners - never been defraged in 1 and 1/2 years.

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


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


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