SnapStream Forums

Go Back   SnapStream Forums > SnapStream Product Discussions > Beyond TV and Beyond TV Link
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 12-18-2005, 12:42 PM
Registered User
 
Join Date: Dec 2005
Posts: 42
HOWTO: Keeping Your Shows Defragmented

My first contribution

As you add and delete shows the files on your drive become fragmented. Say you record five half hour long shows and delete shows #2 and #4, then record a two hour long show. Your two hour long show will span across where shows #2 and #4 were, and after show #5. As you can see over time the cumulative effect of this will be shows stored on the hard drive in various places on the drive, making things slower as time passes.

You need to occassionally "defragment" the drive, and here is a HOWTO for setting up a process to do this automatically.



  1. Download Dirms
    1. Go to the Dirms homepage
    2. Choose Downloads link
    3. Choose Dirms downloads
    4. Use "Download Dirms v1.2.20 Here" link - the command line version







  2. Install Dirms


    1. Open the zip file
    2. Copy dirms.exe to your computer
    3. I usually put it in C:\{windows install dir}\system32\ so I can run it easily from the command prompt
  3. Test it


    1. Open a command prompt and type "dirms [show drive letter] -q"
  4. Create Batch File


    1. Since I have multiple drives I create a batch file
    2. Open Notepad
    3. Insert lines like the following, noting not to put "1. " and "2. " on the lines:
      1. dirms c -q
      2. dirms s -q
    4. Save this file as a name such as "defrag.bat"
  5. Create a Schedule task


    1. Control Panel -> Scheduled Tasks -> Add Scheduled Task
    2. Select the defrag.bat file you created above
    3. Click next, choose daily/weekly
    4. Pick time and days accordingly
    5. Click next, enter appropriate password for admin to run task as
    6. Click finish
You can test the defrag.bat command by double clicking it and watching output. Once you have set up the scheduled task, you should be able to look in the scheduled tasks section of control panel as time goes on to be sure it is running successfully.

You may want to observe and note periods of time (hours) where you are not recording shows, and schedule your defrag to run at times when you are not recording/watching shows!

Hope this helps someone,

W




defragment defragmenter defrag fragmented defragmentor




Last edited by wizzy; 12-18-2005 at 02:52 PM.
Reply With Quote
  #2 (permalink)  
Old 12-18-2005, 02:57 PM
Registered User
 
Join Date: Oct 2004
Posts: 406
Re: HOWTO: Keeping Your Shows Defragmented

I'm using 64k cluster size on the partition with the shows and have never had any problems. I never defragment the drive. I'll sometimes delete or archive most of the shows which should keep the drive fairly defragmented in itself.
Reply With Quote
  #3 (permalink)  
Old 12-18-2005, 03:34 PM
Registered User
 
Join Date: Dec 2005
Posts: 42
Re: HOWTO: Keeping Your Shows Defragmented

Quote:
Originally Posted by gsinpei
I'm using 64k cluster size on the partition with the shows and have never had any problems. I never defragment the drive. I'll sometimes delete or archive most of the shows which should keep the drive fairly defragmented in itself.
Yes, if you delete/archive most of the shows in a single sitting it will keep it defragmented as you are basically wiping everything off the drive.

I'm more of the type to record record record, delete a three or four shows as needed, and repeat cycle.

W
Reply With Quote
  #4 (permalink)  
Old 12-19-2005, 02:03 PM
Registered User
 
Join Date: May 2004
Posts: 52
Re: HOWTO: Keeping Your Shows Defragmented

has anyone tried this program. sound intriguing, but i don't know if i trust it with my files just yet. Why not just schedule Window's Disk Defrag to do it instead?
Reply With Quote
  #5 (permalink)  
Old 12-19-2005, 02:20 PM
Registered User
 
Join Date: Dec 2005
Posts: 42
Re: HOWTO: Keeping Your Shows Defragmented

I have used this program extensively for years, including running it on servers handling e-mail for 9000+ users with 2+ million files on the file system

W
Reply With Quote
  #6 (permalink)  
Old 12-19-2005, 04:07 PM
Registered User
 
Join Date: Oct 2004
Posts: 795
Re: HOWTO: Keeping Your Shows Defragmented

there's no need. Even a 9Mbps recording is, yup, 9Mps, heh. That's just over 1MB/s. I don't care how fragmented your drive is, it isn't going to make a lick of difference.
Reply With Quote
  #7 (permalink)  
Old 12-19-2005, 04:26 PM
Registered User
 
Join Date: Dec 2005
Location: Waco, TX
Posts: 216
Re: HOWTO: Keeping Your Shows Defragmented

Well I will look into this. I have a P4 3.2GHz proc with a Hauppauge PVR-500 and 512MB ram and I record a lot and watch it days later and I saw delay happening when I was watching shows. You know, as you watch the sync of audio and video progressively gets worse. Well I defraged my drive and that fixed my issues.
Reply With Quote
  #8 (permalink)  
Old 12-19-2005, 04:42 PM
Registered User
 
Join Date: Oct 2004
Posts: 795
Re: HOWTO: Keeping Your Shows Defragmented

defragmenting your drive or a badly fragmented state will never have anything to do with sync issues, it's absolutely impossible. Something else was occuring.
Reply With Quote
  #9 (permalink)  
Old 12-19-2005, 04:53 PM
NickHark's Avatar
Registered User
 
Join Date: Nov 2003
Location: San Jose
Posts: 463
Re: HOWTO: Keeping Your Shows Defragmented

One thing I have noticed about fragmented drives is that they can cause problems with a dvd burned from a highly fragmented file. So I defrag everyday with PerfectDisk.

Some files have had 10,000 fragments. Not good.
__________________
Thx, Nick

ASUS P6T 1366 X58 MOBO
Intel QUAD Core i7 920 2.66GHz
3g DDR3 (XP Pro max)
ATI HD 4650 PCIe graphics
HVR 1600 (ATSC & QAM/Analog)
HVR 1600 (ATSC & QAM/Analog)
HVR 1950 (USB QAM/Analog)
HVR 2250 (QAM/Analog)
1t SATA and 750g SATA in addition to 160g PATA system drive
BTV 4.9.2
BTVNegociator
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.

BTVLink/BM on two Dell Optiplex GX620 USFF
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Reply With Quote
  #10 (permalink)  
Old 12-20-2005, 03:37 PM
Registered User
 
Join Date: Dec 2005
Location: Waco, TX
Posts: 216
Re: HOWTO: Keeping Your Shows Defragmented

Well fragmentation might not be the direct cause of my problem but defragmenting my hard drive fixes the issues on the already recorded shows.

I have reloaded the system twice, changed hard drives both times, swapped motherboards with same one, and even changed processors. I don’t easily have the ability to change motherboards to different chipsets since I am running this on an Shuttle XPC but I know I don’t have anything running on the system outside of BTV and Snapstream’s knowledgebase isn’t too much help except that that I should defrag, check for viruses and make sure no other programs are running.

I have a feeling it is a combination of my hardware but like I said before I can’t change much about that right now.
Reply With Quote
  #11 (permalink)  
Old 12-22-2005, 09:23 AM
Terminal's Avatar
Registered User
 
Join Date: Apr 2002
Location: GA
Posts: 3,104
Re: HOWTO: Keeping Your Shows Defragmented

Quote:
Originally Posted by ketchup_gsr
has anyone tried this program. sound intriguing, but i don't know if i trust it with my files just yet. Why not just schedule Window's Disk Defrag to do it instead?
I have been using this for a over year now. I have my drive defragmented every morning at 7:00am. Don't know if it helps, but it doesn't hurt.
__________________

PVS setup:
Processor: Intel 2.4 Ghz Quad Core | MB: Asus P5N-D| RAM: 4GB DDR2 | Tuner: HD-PVR driver 1.0.5.3 and both tuners of my HDHomerun using OTA | Graphics card: EVGA GeForce 8800GT - Nvidia Force ware 180.48| Sound Card: On board| Display: Sony 40" BRAVIA HDTV | OS: Windows XP Home SP3 | BTC 9019URF wireless keyboard| Remote: Harmony 550 with Firefly mini receiver | Tuning: USB-UIRT on Dish VIP222 STB
Reply With Quote
  #12 (permalink)  
Old 12-22-2005, 10:31 AM
Rich A's Avatar
Registered User
 
Join Date: Aug 2003
Location: About 2 feet in front of the monitor. (otherwise CT)
Posts: 3,711
Re: HOWTO: Keeping Your Shows Defragmented

As others have mentioned, in "some" cases defragging is a waste of time. I have now had my PVR on line 24/7 for three years. And have never defragged the storage disk. BUT .. I am using a separate disk array for all show storage. Nothing is written to that drive other than mpeg show files. They are rather large and I too have the drive set for 64K.

There no indexing, scanning, swap file space or other things going on for that drive.

Now if you are using your storage drive for other purposes and are writing many smaller files to it then you may need to occasionally defragment. Ergo it's just a good thing to have your storage drive set up as a dedicated storage only drive.

And we are talking about a physical hard drive, not one with multiple partitions.
__________________
Rich A

BTV Beta Tester. 4.x.x
XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 x2 5600, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3 x 250 GB show storage drives. Samsung DVD burner. VGA video out to projector. TV-out to A/V whole house distribution. HDHR, PVR350, HVR1600, HVR1250, HVR-950, Harmony Remote.
Reply With Quote
  #13 (permalink)  
Old 01-16-2006, 05:00 PM
Registered User
 
Join Date: Aug 2004
Posts: 9
Re: HOWTO: Keeping Your Shows Defragmented

I understand the skeptics about defragging. However, when I do a defrag check on a drive that is 99% full and it's 99% fragmented, with almost every single TV show with 2k fragments, it's hard not to believe that is part of the problem with gradual freezing/skipping.

It's not a problem with bandwidth, it's access time. When I'm recording two shows and trying to watch a 3rd, and everything is fragmented, the harddrive never gets to just stream data, instead it's accessing things all over the platforms.
Reply With Quote
  #14 (permalink)  
Old 01-16-2006, 06:43 PM
Registered User
 
Join Date: Oct 2004
Posts: 795
Re: HOWTO: Keeping Your Shows Defragmented

the point is, if you've got an hour show with 2000 fragments, that's an average of one head movement every 0.56 seconds. I seriously doubt your drive has trouble keeping up with that. And if it does, it's time to throw away the 1992 hardware.
Reply With Quote
  #15 (permalink)  
Old 01-16-2006, 07:06 PM
Rich A's Avatar
Registered User
 
Join Date: Aug 2003
Location: About 2 feet in front of the monitor. (otherwise CT)
Posts: 3,711
Re: HOWTO: Keeping Your Shows Defragmented

Quote:
Originally Posted by iceparrot
I understand the skeptics about defragging. However, when I do a defrag check on a drive that is 99% full and it's 99% fragmented, with almost every single TV show with 2k fragments, it's hard not to believe that is part of the problem with gradual freezing/skipping.

It's not a problem with bandwidth, it's access time. When I'm recording two shows and trying to watch a 3rd, and everything is fragmented, the harddrive never gets to just stream data, instead it's accessing things all over the platforms.
No wonder everything is running wrong. Heck you shouldn't even be ABLE to defrag a 99 percent filled drive. Defrag will tell you that you need to delete some files and make space.

There's too much emphasis put on defrag. Look at hardware devices like TIVO and ReplayTV. How often do they defrag?

You need to defrag if you have a LOT of smaller files being written to the same drive as your show storage. And if you are using a dedicated drive where only the shows are being written to, it's not going to be fragmentted badly IF you keep at least 25 percent of the drive empty. And the smart chapter files (also stored on the show storage drive) don't make much of an impact.

Generally people see a slow down when they start using up too much of the drive. THAT is the biggest problem. I never let any of my drives become more than 75 percent full. And I don't defrag .. ever. And I often have the thing recording THREE shows at once while I'm playing back a 4th pre-recorded. That's one 1080 digital high def, and two analog .. all being written at the same time.

Now if you have drive indexing turned on for that drive, have that same drive also handling swap files, and other windows things, AND only have 10 percent of it available to write to .. well then the "defragging" issue comes into play.

Of course if a drive is badly fragmented and you only have 10 percent free space you are going to have trouble. Then defragging might free up more continuous free space. But only for a short time, thus forcing another defrag. If your 200 GB drive has over 50 GB free at all times, you shouldn't have to defrag at all.

With today's 7200 rpm drives, large buffers and very low access times, even a heavily fragmented drive shouldn't see too much of a performance hit. As long as you give that drive some empty space to work with.
__________________
Rich A

BTV Beta Tester. 4.x.x
XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 x2 5600, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3 x 250 GB show storage drives. Samsung DVD burner. VGA video out to projector. TV-out to A/V whole house distribution. HDHR, PVR350, HVR1600, HVR1250, HVR-950, Harmony Remote.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping history when reloading FatalException Beyond TV and Beyond TV Link 5 10-29-2007 12:45 PM
VFD keeping HTPC from sleep... swanie2000 Home Theater PC Discussion 8 02-11-2007 04:13 PM
Keeping accurate time... drfish Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 3 12-13-2004 09:40 AM
keeping track of episodes recorded? craighackl Beyond TV and Beyond TV Link 3 06-01-2004 08:32 PM
Keeping setting & shows after upgrade from demo to full maameyer Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 0 03-23-2001 11:18 AM


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


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0 RC1
©2004-2006 Snapstream Media
You Rated this Thread: