SageTV Community  

Go Back   SageTV Community > General Discussion > General Discussion
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

General Discussion General discussion about SageTV and related companies, products, and technologies.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-28-2008, 02:59 PM
pat_smith1969 pat_smith1969 is offline
Sage Aficionado
 
Join Date: Jan 2007
Posts: 305
performance increase, via a defrag?

I know some people are looking for way to increase performance of their systems. This is one that is fairly cheap, and may provide great results.

I have been having some issues playing HD recordings lately. My server is up to spec, my client is the HDExtneder and should be able to handle playback of an HD recording. My source is a HDHR which practically EVERYONE uses on this board so that is a proven technology. That left only TWO sources for my poor playback, network congestion, or hard drive bottleneck.

I purchased the product "Disk Keeper" and installed it on my video server. The initial analyze of my recording drive (a single 500 gig drive, 33pct free space) showed it to be 98% fragmented (that is to say the WHOLE drive was chopped up into fragments). I attempted to defrag it but apparently it was so bad neither the NT defrag or the Diskeeper could put all those files back together. Even a reboot and defrag option wouldn't get any better.

Here is how I solved my defrag problem. First of all I stopped the SageTV service (I was running in service mode), then I stopped my Comskip monitor service. I copied all files in my "SageTVRecordings" directory (the subfolder I have designated as my recording directory) over to another server (300 gigs at the time). ONce it was done copying I removed the partition of that drive, recreated the partition and re-formatted the drive. I then copied back the "SageTVRecordings" directory back, restarted the services and was able to watch some TV...

I just finished and my drive is at 0pct fragmented, which HAS to help with performance. I will update this post after a few days and let everyone know if this stopped my HD skipping problem.
Reply With Quote
  #2  
Old 04-28-2008, 06:00 PM
mistergq's Avatar
mistergq mistergq is offline
Sage Expert
 
Join Date: Oct 2007
Posts: 747
I know there are posters who say defrag does not help if the drive is formatted correctly, but I have diskeeper automonitoring the hard drive. My drive does not get that fragmented anymore.
__________________
Media Server: Win 7 Home (32 bit), GIGABYTE GA-EP43-UD3L LGA 775 Intel P43 ATX Intel Motherboard, Intel Core 2 Quad Q9505 Yorkfield 2.83GHz, 4 GB Ram, Geforce 9600 GT PCI-E, 1x HD PVR, HD homerun (2x for OTA, 1x for FIOS QAM), 1 x HD Homerun Prime with cablecard from FIOS.

Client: Windows 10 Pro

Media Extenders: HD-200 x 3, HD-200 x 2
Reply With Quote
  #3  
Old 04-28-2008, 06:13 PM
MattHelm MattHelm is offline
Sage Icon
 
Join Date: Jun 2005
Location: Chicago, IL
Posts: 1,209
Quote:
Originally Posted by pat_smith1969 View Post
.. "Disk Keeper" ...
You could have just downloaded a free copy of JKDefrag. It works fine with very little free space on the drive.
Reply With Quote
  #4  
Old 04-29-2008, 04:36 AM
hemicuda's Avatar
hemicuda hemicuda is offline
Sage Icon
 
Join Date: May 2006
Location: north of Chattanooga, Tennessee
Posts: 1,118
That works well for me now that it's been running (couple of short-duration schedules per day) for about a week. I haven't seen any major artifacts or stuttering since defragging. It's defrag performance, expectedly, does drop the less free space is available. It was really hard (read impossible) for my setup to record a good HD show when watching another when both had fragment counts in the 1000's.
__________________
Server: MS Win7 SP1; FX8350 (H2O cooled); 8GB RAM; Hauppauge HVR-7164 (OTA); HVR-885 (OTA); SageTV 9.1.5.x; 12+TB Sage Storage

Clients: HD300 x2; HD200 x2; Placeshifter

Service: EPB Fiber (1Gb); OTA (we "cut the cord"); Netflix, Hulu, etc.
Reply With Quote
  #5  
Old 04-29-2008, 05:29 AM
wado1971's Avatar
wado1971 wado1971 is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Stamford, CT
Posts: 345
FWIW - I went through the same exact experience. Only difference was I had skipping on SD shows. For me the skipping showed up after installing an additional tuner & upgrading my VidCard. The defrag solved my problems for about 2 wks but came back - another defrag again solved it.

Since then I've removed the 3rd tuner and downgraded the vidcard and haven't needed to defrag for about 5 wks. I think my system simply became unstable with the additional hardware and it effected the recording/playback performance. I'm in the process of rebuilding the machine (for the HD-pvr) which hopefully resolves this issue for good. I've read the defrag debates and often wonder if system stability effects whether some users need to defrag while others are fine without??

wado
Reply With Quote
  #6  
Old 04-29-2008, 06:01 AM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
Quote:
Originally Posted by wado1971 View Post
FWIW - I went through the same exact experience. Only difference was I had skipping on SD shows. For me the skipping showed up after installing an additional tuner & upgrading my VidCard. The defrag solved my problems for about 2 wks but came back - another defrag again solved it.

Since then I've removed the 3rd tuner and downgraded the vidcard and haven't needed to defrag for about 5 wks.
If you have found this to be effective, why would you not scheule it to run automatically.

JKDefrag actually suggests daily.
Reply With Quote
  #7  
Old 04-29-2008, 06:46 AM
wado1971's Avatar
wado1971 wado1971 is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Stamford, CT
Posts: 345
Quote:
Originally Posted by kevine View Post
If you have found this to be effective, why would you not scheule it to run automatically
I had that scheduled for a few wks but the whole situation still bugged me. I've run the same 2 drives (200+300GB) for almost 3 yrs without a glitch... add some hardware and the system starts to fall apart!! It nerved me enough to reinstall the OS & all aps. on this dedicated HTPC without any improvement. I started to consider the PSU as a culprit - does this make any sense?

I stopped trying to figure it out when the HD-PVR was announced which will reallocate this machine to a client, removing tuners & drives - my new server hardware comes this week going quad!!
Reply With Quote
  #8  
Old 04-29-2008, 07:13 AM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
Quote:
Originally Posted by wado1971 View Post
I started to consider the PSU as a culprit - does this make any sense?
No. This does not make sense to me anyway. I would think that you would have hardware failures if it were a power supply problem.
Reply With Quote
  #9  
Old 04-29-2008, 01:55 PM
Humanzee's Avatar
Humanzee Humanzee is offline
Sage Fanatic
 
Join Date: Sep 2004
Location: North Idaho
Posts: 752
I've been de-fragging on a schedule for years. Take note though that you don't want to schedule a defrag when you expect to make a recording. I use to defrag nightly but because of the above only do so now once a week in the wee early morning hours.

I am building a new server and dropping from 7 hard drive down to probably 3 bigger disks. I'm not sure what will be better for performance, multiple tuners trying to write to the same drive, or multiple drives trying to share the same system bus. Either way I'll end up with more storage and use less power in the new machine.
Reply With Quote
  #10  
Old 04-29-2008, 07:03 PM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
Quote:
Originally Posted by wado1971 View Post
I had that scheduled for a few wks but the whole situation still bugged me. I've run the same 2 drives (200+300GB) for almost 3 yrs without a glitch... add some hardware and the system starts to fall apart!! It nerved me enough to reinstall the OS & all aps. on this dedicated HTPC without any improvement. I started to consider the PSU as a culprit - does this make any sense?

I stopped trying to figure it out when the HD-PVR was announced which will reallocate this machine to a client, removing tuners & drives - my new server hardware comes this week going quad!!
Some people swear a regular defrag is necessary and others of us never defrag.

I ran Sage for over 2 years without any problems then the stuttering began. I tried defragging and it seemed to help. Eventually my system began to randomly reboot and I tracked the problem down to a dying cpu. It would run prime95 for hours on end, but was still bad. RMA'd it and haven't had any stuttering problems since and I haven't defragged in almost a year. So stuttering can be caused by all sorts of odd problems.
Reply With Quote
  #11  
Old 04-30-2008, 06:09 PM
rfutscher rfutscher is offline
Sage Advanced User
 
Join Date: Apr 2003
Posts: 141
I suspect that a few people find performance gains when they defrag the video store. I also suspect that those people have other problems.

When a defrag helped me I looked a little deeper and found other problems. When I fixed the other problem defrag no longer helped. I had to updated old drivers, update Java and reformat using the largest block size. I suggest that when a defrag helps, you should look a little deeper.

Quote:
Originally Posted by blade View Post
Some people swear a regular defrag is necessary and others of us never defrag.

I ran Sage for over 2 years without any problems then the stuttering began. I tried defragging and it seemed to help. Eventually my system began to randomly reboot and I tracked the problem down to a dying cpu. It would run prime95 for hours on end, but was still bad. RMA'd it and haven't had any stuttering problems since and I haven't defragged in almost a year. So stuttering can be caused by all sorts of odd problems.
Reply With Quote
  #12  
Old 05-01-2008, 02:20 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Quote:
Originally Posted by rfutscher View Post
I had to updated old drivers, update Java and reformat using the largest block size. I suggest that when a defrag helps, you should look a little deeper.
Not all people will be able to reformat using larger block size. For them running defrag may be a good option
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #13  
Old 05-01-2008, 03:56 AM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
I got a question. We are all dealing with large file sizes and it is always said to format with 64K blocks. Would 128K be better/worse? Are there even larger options?
Reply With Quote
  #14  
Old 05-04-2008, 02:08 PM
rfutscher rfutscher is offline
Sage Advanced User
 
Join Date: Apr 2003
Posts: 141
I believe that 64K blocks is the largest option when formatting with windows.

Quote:
Originally Posted by kevine View Post
I got a question. We are all dealing with large file sizes and it is always said to format with 64K blocks. Would 128K be better/worse? Are there even larger options?
Reply With Quote
  #15  
Old 05-04-2008, 05:06 PM
wado1971's Avatar
wado1971 wado1971 is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Stamford, CT
Posts: 345
I see a lot of post about HDD performance/clusters/degrag and how to best handle video storage read/write. It would be great to find a nice write-up about how to best handle large file read/writes from multiple clients etc. I found this great 'Reference Guide' on storagereview.com but it's a bit outdated and for general use. A great read to understand all the HDD specs. http://www.storagereview.com/guide/index.html

Anyone know of a comprehensive HDD guide targeted specifically for htpc use??
Reply With Quote
  #16  
Old 05-04-2008, 07:54 PM
rfutscher rfutscher is offline
Sage Advanced User
 
Join Date: Apr 2003
Posts: 141
Quote:
Originally Posted by erik View Post
Not all people will be able to reformat using larger block size. For them running defrag may be a good option
If you use smart recording Sage will keep your drive full. Files will become fragmented. If you depend on a defrag to make the files playable you will not be able to watch any live recordings. I would not call that a "good" option.

Below is a quote from another thread.


Quote:
Originally Posted by Opus4 View Post
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
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
Sage & Client Performance Increase - NIC! coldtoes SageTV Software 10 05-20-2008 03:20 AM
SAGE Disk Performance Testing msmith8228 Hardware Support 3 06-23-2006 08:05 AM
Extender Performance in 4.1 pvrpenguin SageTV Media Extender 6 12-19-2005 05:32 AM
VMR9 performance increase using Nvidia decoder 1.02-150 mkanet General Discussion 2 07-02-2005 10:47 AM
Easy Performance Increase for Hauppauge Users Narflex General Discussion 85 03-20-2005 02:59 PM


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


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