SageTV Community  

Go Back   SageTV Community > Hardware Support > Hardware Support
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Hardware Support Discussions related to using various hardware setups with SageTV products. Anything relating to capture cards, remotes, infrared receivers/transmitters, system compatibility or other hardware related problems or suggestions should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-07-2009, 12:07 AM
wolfpackmars2's Avatar
wolfpackmars2 wolfpackmars2 is offline
Sage User
 
Join Date: Apr 2005
Posts: 37
Hard Drive Utilization

I have a general question concerning how Sage handles a "busy" hard drive.

This question comes up as I have increased the number of showanalyzer processes from max 2 to max 4 at a time. At the same time, I have begun using VideoRedo again, and didn't have SA set to create the VideoRedo project files - so I deleted the comskip files for several shows to prompt SA to create new comskip and VideoRedo files.

I noticed that CPU utilization on the PC was very low, even with 4 SA processes running at the same time - yet it was taking a long time to get through all the shows. SageTV is currently recording all shows on one hard drive - the largest one, even though 2 hard drives are configured for saving shows. I guess Sage uses the hard drive with the most free space (1TB vs 250GB)? Anyways, there was one episode on the other hard drive that I wanted processed. This episode was processed in a FRACTION of the time it has taken SA to analyze any single episode on the other hard drive. Then it dawned on me that the problem wasn't CPU resources but hard drive resources. Even with a SATA-II hard drive, reading 4GB worth of data across 4 different files on the same hard drive is going to be intense.

My next thought is - if SA is utilizing the hard drive at or near capacity and Sage tries to record a show to this hard drive and finds it busy, how will Sage deal with this?

In general, I don't think it will be an issue - once I get through with this push to add videoredo data for the current episodes, I think that the headroom on the hard drive will easily handle 4 shows while they are recording. I just want to avoid any possibility that sage might start dropping frames when the hard drive can't accept data as fast as Sage can feed it.
Reply With Quote
  #2  
Old 09-07-2009, 12:46 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
If you have only two recording drives, why would you want to analyze more than two shows at once? Seems to me that for best performance, you want to analyze just one recording per drive at a time.

It's like trying to vacuum three or four rooms with just one vacuum cleaner. In theory you could do it in parallel, running back and forth taking a few strokes here and a few strokes there, but in practice it's much more efficient to stay in one place and finish off each room before moving on to the next.

The read head on your drive is like that vacuum cleaner. If disk I/O is the limiting factor, then making it run all over the place from file to file and back again is not going to speed up processing; quite the contrary. Let it finish analyzing one file before asking it to start on another.
__________________
-- Greg
Reply With Quote
  #3  
Old 09-08-2009, 12:15 PM
Beefcake550 Beefcake550 is offline
Sage Expert
 
Join Date: Oct 2004
Posts: 706
This is almost true. non mpeg2 HD commercial skipping is a CPU limited problem. All other commercial skipping is a drive limiting problem. So, if you are skipping through HD-PVR recordings, limit it to 2-4 @ a time. I use 2 on my quad core. If you are not using an HD-PVR, then you should limit it to 1 at a time for best overall performance.

You could also use Sage Job Queue to not start any new processing when a client is connected and watching TV/media.

I have a HDHR and a HD-PVR, so I use SJQ to tell if it's MPEG2 or not. If so, do one at a time, if not, do one at a time.
Reply With Quote
  #4  
Old 09-08-2009, 03:13 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by wolfpackmars2 View Post
My next thought is - if SA is utilizing the hard drive at or near capacity and Sage tries to record a show to this hard drive and finds it busy, how will Sage deal with this?
To answer this question, AFAIK Sage just "writes" to the drive, it doesn't know or care how busy the drive is, it just calls to the system and says to write data and expects it to get there.

This is one thing that intrigued me recently. I've been looking into building/switching to a linux server, and while researching linux filesystems I came across XFS. XFS has a very interesting feature, "Guaranteed Rate I/O". The idea is an app can reserve a certain amount of bandwidth to the file system and that XFS will guarantee it.

It would be really sweet if Sage implemented that sometime, having Sage reserve say 15Mbps read/write to the file system for an HD PVR recording, or 20Mbps for an ATSC recording, and then you could pound the drive with whatever you want beyond that without affecting Sage. Of course it would only work in linux as that's the only place that filesystem is available.

I think showanalyzer can be limited to reading at a certain rate, I haven't found such a setting for comskip yet.
Reply With Quote
  #5  
Old 09-13-2009, 04:44 AM
briands briands is offline
Sage Icon
 
Join Date: Aug 2004
Location: Bloomington, IN
Posts: 1,093
Quote:
Originally Posted by stanger89 View Post
To answer this question, AFAIK Sage just "writes" to the drive, it doesn't know or care how busy the drive is, it just calls to the system and says to write data and expects it to get there.

This is one thing that intrigued me recently. I've been looking into building/switching to a linux server, and while researching linux filesystems I came across XFS. XFS has a very interesting feature, "Guaranteed Rate I/O". The idea is an app can reserve a certain amount of bandwidth to the file system and that XFS will guarantee it.

It would be really sweet if Sage implemented that sometime, having Sage reserve say 15Mbps read/write to the file system for an HD PVR recording, or 20Mbps for an ATSC recording, and then you could pound the drive with whatever you want beyond that without affecting Sage. Of course it would only work in linux as that's the only place that filesystem is available.

I think showanalyzer can be limited to reading at a certain rate, I haven't found such a setting for comskip yet.
Of course, that may be tying up drive "resources" unnecessarily, since Sage is not always recording to each drive. What would be neat would be a priority setting for drive throughput, much the same as processor priority that windows manages. That would likely be a significant change for windows... but it seems like it may be a more common issue as media files become larger and drive speed increases seem to have stagnated.
Reply With Quote
  #6  
Old 09-13-2009, 10:02 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by briands View Post
Of course, that may be tying up drive "resources" unnecessarily, since Sage is not always recording to each drive.
I'm not following, or I think you misunderstand...

Quote:
What would be neat would be a priority setting for drive throughput, much the same as processor priority that windows manages.
This is basically exactly what XFS allows. The program can reserve a certain bandwidth while it needs it (I assume only while it needs it), so in theory with XFS, when Sage is about to record a 15Mbps HD PVR recording, it could call into the XFS file system, and reserve itself 16Mbps worth of bandwidth for that file, thus since XFS has a guaranteed I/O function, comskip or file copies, or anything else would be unable to interrupt Sage's bandwidth. Sage could do the same thing for each record (write) or playback (read) operation, and theoretically we'd never have recording or playback glitches again, at least not due to HDD bandwidth issues caused by other apps.
Reply With Quote
  #7  
Old 09-15-2009, 11:23 PM
briands briands is offline
Sage Icon
 
Join Date: Aug 2004
Location: Bloomington, IN
Posts: 1,093
Quote:
Originally Posted by stanger89 View Post
I'm not following, or I think you misunderstand...



This is basically exactly what XFS allows. The program can reserve a certain bandwidth while it needs it (I assume only while it needs it), so in theory with XFS, when Sage is about to record a 15Mbps HD PVR recording, it could call into the XFS file system, and reserve itself 16Mbps worth of bandwidth for that file, thus since XFS has a guaranteed I/O function, comskip or file copies, or anything else would be unable to interrupt Sage's bandwidth. Sage could do the same thing for each record (write) or playback (read) operation, and theoretically we'd never have recording or playback glitches again, at least not due to HDD bandwidth issues caused by other apps.
Sorry... did not catch the "while it needs it"
Reply With Quote
  #8  
Old 09-16-2009, 08:31 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Well I did just imply it the first time
Reply With Quote
  #9  
Old 09-16-2009, 09:44 AM
Stuntman's Avatar
Stuntman Stuntman is offline
Sage Fanatic
 
Join Date: Dec 2003
Location: Hemet, CA - USA
Posts: 784
Scheduler for drive use?

I wonder why Sage can't or doesn't use it's own scheduler and assign recordings to drives.. Much like it assigns tuners based on availability, I would think it could check all your drives that have recording space available and then check it's schedule and assign different recordings to different drives based on space and number of concurrent recordings. I've often wondered why sage would try to put 3 shows on my drive "G" at the same time when my drives "D,E,F" all have free space! Couple that with SA or Comskip, and perhaps even be watching one or more other items on that same drive and you see that drive "G" quickly gets swamped! While Sage can't control what we watch, it should be able to intelligently schedule it's recordings to use the drives available more effectively.

Perhaps there is something in there already, but from what I see, it doesn't appear to be the case.
__________________
Intel Q6600 Quad Core, 8GB RAM on Windows 7 Professional x64
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
Hard drive recommendation flavius The SageTV Community 20 02-02-2009 02:58 PM
Hard drive clusters DaveWC Hardware Support 6 04-21-2008 02:37 PM
Hard Disk utilization issue kirkb Hardware Support 7 01-23-2008 10:33 PM
Recording drive question (calling all hard drive experts!) Kirby Hardware Support 4 07-17-2006 12:01 PM
Which hard drive to use? cpals Hardware Support 2 06-08-2005 02:21 PM


All times are GMT -6. The time now is 11:05 AM.


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