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
  #21  
Old 12-04-2006, 07:25 AM
doc's Avatar
doc doc is offline
Sage Fanatic
 
Join Date: Jun 2006
Location: Leicester, England
Posts: 918
Just incase anyone looked at the defrag.jpg file I put up, I must stress that the Baywatch recording was a test I made when seeing if both the tuners were working

I would never intensionally record Baywatch....... honest......
Reply With Quote
  #22  
Old 12-04-2006, 07:52 AM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
Everyone should be using 64K clusters so the absolute smallest fragments are going to be 16 times larger than the smallest possible fragments found in other environments that use the typical 4K clusters.

Also we're dealing with very large files that are being read relatively slowly. Isn't a typical SD stream well under 1MB/sec? The drives aren't being pushed to their limits and thrashing about in an attempt to transfer or read data as quickly as possible. It just seems to me the larger cluster size and low throughput requirements just aren't going to be taxing the drives all that much.

Last edited by blade; 12-04-2006 at 07:56 AM.
Reply With Quote
  #23  
Old 12-04-2006, 08:19 AM
Pumpkinhead's Avatar
Pumpkinhead Pumpkinhead is offline
Sage User
 
Join Date: Nov 2004
Location: Illinois
Posts: 71
Quote:
Originally Posted by blade
Also we're dealing with very large files that are being read relatively slowly. Isn't a typical SD stream well under 1MB/sec? The drives aren't being pushed to their limits and thrashing about in an attempt to transfer or read data as quickly as possible. It just seems to me the larger cluster size and low throughput requirements just aren't going to be taxing the drives all that much.
Yes, less than 1MB/sec. Although if you have multiple tuners recording, plus watching back another stream, it will push things a little harder. I never did get my video drive converted to 64k clusters and never defrag it, but I only have 1 tuner, so I'm never pushing things too hard. The only issue I've had regarding drive performance was when the system suddenly and quietly switches to PIO mode due to 6 cumulative timeout errors in Win2k, although very easily resolved.
Reply With Quote
  #24  
Old 12-04-2006, 01:50 PM
FidgetyRat's Avatar
FidgetyRat FidgetyRat is offline
Sage Aficionado
 
Join Date: Jan 2006
Posts: 492
I use 64k cluster Raid0 with 2 drives.

The most I have done was record 2 shows, watch one natively on the server and stream 1 to the MVP. SO i guess to writes and 2 reads. Never had a problem and have never defragged the video drives.
__________________
Server: 2.6Ghz Pentium Dual Core, 2GB RAM. 3x PVR-150, 1.5TB HDD. Geforce 7300GS, Sage 7.0.15
Client: Jetway ION-Top - Dual core ATOM 1.6 & NVIDIA ION
NAS: QNAP TS-419P 3.7TB Raid-5

Special thanks to tmiranda for making my 24h time format dream a reality. See here for more details.
Reply With Quote
  #25  
Old 12-04-2006, 10:32 PM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
Quote:
Originally Posted by Pumpkinhead
Yes, less than 1MB/sec.
Megabytes/sec, right?

I see SD streams on my network using about 6 megabits/sec. That's less than 1 megabyte/sec. I measured the I/O speeds of my EIDE vs. USB2 external drives. Quite a difference: 30MBbytes/sec vs. about 6MBytes/sec on USB2. CPU = AMD1800 for those tests.
Reply With Quote
  #26  
Old 12-05-2006, 11:55 PM
flavius flavius is offline
Sage Icon
 
Join Date: May 2004
Location: New Hampshire
Posts: 1,257
I got myself a defragmentation report of all the hd's - just for the fun of it. That must have been the second one in about 4 years or so.

I have a lot of fragments and fragmented files, quite a lot. But I have yet to see any performance impact. And none of my servers is or has been a killer box, believe me. I didn't adjust the cluster size on any of those partitions either.
Reply With Quote
  #27  
Old 12-06-2006, 02:46 PM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
Quote:
Originally Posted by flavius
I got myself a defragmentation report of all the hd's - just for the fun of it. That must have been the second one in about 4 years or so.

I have a lot of fragments and fragmented files, quite a lot. But I have yet to see any performance impact. And none of my servers is or has been a killer box, believe me. I didn't adjust the cluster size on any of those partitions either.
Is the partition using 64K blocks?
Reply With Quote
  #28  
Old 12-06-2006, 02:49 PM
flavius flavius is offline
Sage Icon
 
Join Date: May 2004
Location: New Hampshire
Posts: 1,257
No. 4k.
Reply With Quote
  #29  
Old 12-06-2006, 02:57 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Just thinking out loud, but would it help fragmentation if all the video metadata files (I have 5 per video right now) were stored on a separate folder on a separate drive? They're small files, but when you have 600+ of them thrown around the drive I'd imagine they get in the way of contiguous large file creation.
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma
Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire
SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT


Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink)

Last edited by evilpenguin; 12-06-2006 at 03:00 PM.
Reply With Quote
  #30  
Old 12-06-2006, 03:22 PM
AngelofDeth AngelofDeth is offline
Sage Aficionado
 
Join Date: Jul 2005
Posts: 359
Quote:
Originally Posted by stevech
Is the partition using 64K blocks?
Windows defragmentor shows 98% file fragmentation on my recording drive, though it is using 64k clusters. Never had a performance issue, although its SD only, two encoders, with only one client.
Reply With Quote
  #31  
Old 12-06-2006, 04:24 PM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
Quote:
Originally Posted by flavius
No. 4k.
Personally I'd switch to 64K if I got the chance and I'd definetly format any new drives I added to 64K before putting them into use.

You do understand why 64K is better than 4K for a recording drive? BTW I don't mean that to sound condescending. Some people really don't know what the difference is so I just wanted to check.
Reply With Quote
  #32  
Old 12-06-2006, 05:23 PM
flavius flavius is offline
Sage Icon
 
Join Date: May 2004
Location: New Hampshire
Posts: 1,257
The last time I messed with the cluster size of a partition was some ext2fs based installation, probably in 1993.

I know it's a little easier today - but I'd rather play with my three sons than with my Sage system.
Reply With Quote
  #33  
Old 12-06-2006, 06:18 PM
Mark SS Mark SS is offline
Sage Expert
 
Join Date: Dec 2005
Location: London, UK
Posts: 608
I suspect lots of people are missing the point with this and/or have no idea what the point actually is
Reply With Quote
  #34  
Old 12-06-2006, 07:39 PM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
Quote:
Originally Posted by flavius
The last time I messed with the cluster size of a partition was some ext2fs based installation, probably in 1993.

I know it's a little easier today - but I'd rather play with my three sons than with my Sage system.
Formatting to 64K requires no more effort than 4K. When you install a new drive you just select 64K clusters instead of 4K when you format the drive.
Reply With Quote
  #35  
Old 12-06-2006, 07:39 PM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
Quote:
Originally Posted by Mark SS
I suspect lots of people are missing the point with this and/or have no idea what the point actually is
You're probably right.
Reply With Quote
  #36  
Old 12-07-2006, 01:19 AM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
Isn't the whole idea of 64K clusters to significantly reduce the number of disk I/Os and seeks per gigabyte read or written?
I did it using Windows' XP's disk management tools. Easy. I presume that these large blocks reduce CPU use and lessen the occurrence of "stuttering" aka dropped frames.
Reply With Quote
  #37  
Old 12-14-2006, 09:14 PM
jptaz's Avatar
jptaz jptaz is offline
Sage Fanatic
 
Join Date: May 2003
Location: Detroit Michigan
Posts: 991
Just thought I would repport back...it took 2 weeks of no defragging, but now I am getting stuttering in some of my HD recordings. I think people who have no stuttering are either not recording 6 shows simultaneously (3 SD + 3 HD ) or they are not using RAID 5 with 75%+ used disk space, or there RAID 5 System is faster than mine. When my drive gets fuller not defragging causes the problems that are creeping in again. I am enabling my nightly defragger and accepting that in my case it helps and Raxco Perfect Disk 8.0 keeps my system working well and was well worth the money I spent on it.

John
__________________
SageTV 6.6, 100Mb LAN
Living Room: WinXP Pro SP2, AMD XP3200+, 1GB, 1.3TB 3ware 9500S12 RAID5, GigaByte GA7N400Pro2, 2xVBOX USB2 HD Tuner<-Antennna, 1xHDHR<-Antennna , HD100 to HDMI Splitter 1080i->32" 4:3 HDTV or 1080i->92" 1080P LCD Projector
Kitchen: WinXP Home SP2, Celeron 2.0Ghz, 512MB, 40GB, Saphire ATI MB, ATI9200->19"LCD
2 BedRooms: MediaMVP
Reply With Quote
  #38  
Old 12-14-2006, 09:28 PM
jptaz's Avatar
jptaz jptaz is offline
Sage Fanatic
 
Join Date: May 2003
Location: Detroit Michigan
Posts: 991
Also more importantly so those of you doing the math:
My SD recordings average 3.25 GB an Hour
My HD recordings average 8.83 GB an Hour
Doing the math that works out to requiring 10.3 MB a second RANDOM write performance.

Key word here is RANDOM. Lots of drives and arrays can do many times that in sequential IO performance...my array for example can sustain sequential writes of 85 MB a second, but on but has problems go much over 12 MB a second on heavy random writes...now add in random reads streaming more than one HD recording and it gets a little tight...so add in additional seek time for a fragmented file...or more important a severely fragmented file....I probably should go to a secondary drive subsystem for the reordings I don't plan on keeping, but defragging works for now.

John
__________________
SageTV 6.6, 100Mb LAN
Living Room: WinXP Pro SP2, AMD XP3200+, 1GB, 1.3TB 3ware 9500S12 RAID5, GigaByte GA7N400Pro2, 2xVBOX USB2 HD Tuner<-Antennna, 1xHDHR<-Antennna , HD100 to HDMI Splitter 1080i->32" 4:3 HDTV or 1080i->92" 1080P LCD Projector
Kitchen: WinXP Home SP2, Celeron 2.0Ghz, 512MB, 40GB, Saphire ATI MB, ATI9200->19"LCD
2 BedRooms: MediaMVP
Reply With Quote
  #39  
Old 12-16-2006, 01:33 PM
Pretzelboy Pretzelboy is offline
Sage User
 
Join Date: Nov 2006
Posts: 42
Quote:
Originally Posted by Polypro
Until recently I used Diskeeper 10's "Set it and forget it" to defrag all my drives. It did a good job and never interfered with anything. With Diskeeper 2007's "Intellisense", the CPU is constantly used for defragging...I didn't like it. I switched to Raxco Perfect Disk 8.x and like it better. With 64k clusters I guess you don't need to defrag, but I do anyway. I also use Sprinrite 6 every few months as preventative maintenance.

P
I started using Diskeeper 2007 about a month ago and I'd have to disagree. I really like the Intellisense aspect of the software. I've kept an eye on it when Comskip activated to process a show and Diskeeper was smart enough to shut down completely and wait for the process to finish. Their claims seem to be true. I've watched their process monitoring graph and and any time there's an increase of activity in processes Diskeeper sits and waits until it's safe to continue. I can't even do a manual drive Analyze when there are intensive processes running.

I don't have a 64k block drive because I already had things stored on it when I started using Sage. I would get some noticable stutters from really fragmented recordings. I haven't seen a stutter in weeks. I actually hadn't even thought about it running in the background until about a half hour ago. I recalled what the drive analysis looked like when I started. There were an average of 30+ fragments per file and now I'm down to 1. What had been a shotgun mess of defragmentation now shows as optimized for performance and I only have two large files left on the hard drive that are heavily fragmented.

I can say that I believe their claims regarding performance. It has done a great job on my media drive (300GB PATA).
Reply With Quote
  #40  
Old 12-16-2006, 03:47 PM
rfutscher rfutscher is offline
Sage Advanced User
 
Join Date: Apr 2003
Posts: 141
I don't see where a fragmented file would have anything to do with performance, that is if you follow the advice from Sage for block size. The block size is matched to the buffer size. As the buffer for the tuner fills up one block will empty the buffer. Then the heads move to service a playback buffer. As the playback buffer approaches empty one block will fill it up. The heads have to move between record and playback. It doesn't matter if the file is fragmented or not, the heads have to move.

Quote:
Originally Posted by jptaz
Also more importantly so those of you doing the math:
My SD recordings average 3.25 GB an Hour
My HD recordings average 8.83 GB an Hour
Doing the math that works out to requiring 10.3 MB a second RANDOM write performance.

Key word here is RANDOM. Lots of drives and arrays can do many times that in sequential IO performance...my array for example can sustain sequential writes of 85 MB a second, but on but has problems go much over 12 MB a second on heavy random writes...now add in random reads streaming more than one HD recording and it gets a little tight...so add in additional seek time for a fragmented file...or more important a severely fragmented file....I probably should go to a secondary drive subsystem for the reordings I don't plan on keeping, but defragging works for now.

John
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 07:22 AM.


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