|
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.) |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
||||
|
||||
I'm amazed that it worked at all! The defrag should have to restart every time something new is written to the disk, you really shouldn't run defrag with ANYTHING running, much less SageTV.
The only way I can think of doing this would be to hack that plugin that shuts down you system in between recordings... But then my memory isn't the best, so that could have just been something someone was talking about doing. Your best bet is to do it manually. I would do it on a slow Saturday afternoon when there wasn't anything worth watching on. Depending on your system, it could take a while. |
#22
|
||||
|
||||
I came up with a manual process that I run very infrequently (sometimes I get the occasional microskip, and I try this). I have two drives, E: and F:. Here are the steps I do, and I have included some of the XCOPY commands in case anyone's interested.
1. Exit sage (and service if necessary) 2. Copy everything from F:\ to E:\backup\ (xcopy /e/v F:\*.* E:\backup\) 3. Delete everything from F:\ 4. Copy everything back from E:\backup\ to F:\ (xcopy /e/v E:\backup\*.* F:\) 5. Delete everything in the E:\backup\ folder 6. Copy everything from E:\ to F:\backup\ 7. Delete everything from E:\ 8. Copy everything back from F:\backup\ to E:\ 9. Delete everything in the F:\backup\ folder After this is done, all my files are unfragmented. And it takes about 1/10th the time of a true defragment. I DO NOT run this using a batch file as I want to makes sure every step completes successfully. Thought this might be of some help... |
#23
|
||||
|
||||
if you have enough free space between two drives to move all files back and forth, would'nt it be faster just to store everything on one drive and leave the other one empty, then you can just do one copy operation (*.*) from one to the other, then go into disk management, and just change swap the letters of the drives. This is faster than doing multiple copy operations back and forth.
__________________
Mayamaniac - SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme. - SageTV HD300 - HDMI 1080p Samsung 75" LED. |
#24
|
|||
|
|||
I had the same problem when I first got Sage setup. It got up to 90+% fragmentation, and was causing heavy stuttering.
I wrote a VBScript than Defrags my drive, and set it as a scheduled task to run every morning at 3AM. Never had a problem since, and it keeps everything fresh.
__________________
Sage TV 5.0.4 AMD Sempron 2000+ 1.5 Gigs DDR333 Ram 1.0 TB of television storage goodness Hauppage PVR-250 + PVR-150 |
#25
|
|||
|
|||
Follow up question: I read that recording two shows at once onto the same drive is a sure way to jack up your fragmentation. If I have two drives set up for Sage to record to when it comes time to record two shows at once will Sage be smart enough to send the two streams to different drives? I suppose I should just try this and see what happens.
Thanks. P.S. In my humble opinion one of the goals the Sage team should consider setting for itself is that of making Sage as reliable and maintenance free as the best set top DVR. Sure Sage does much more than most set top DVRs and I don't expect Sage to do absolutely everything perfectly but one has to realize that end user's (and WAF) expectations are gradually rising. If the stock answer to "stuttering caused by fragmentation" is reformatting with a certain cluster size and running defrag periodically then you've just lost a certain segment of your potential user base (or worse, those uninformed users may give Sage poor marks in public reviews). It would be nice if Sage took care of the fragmentation for me like a set top box does but failing that having hooks that allow the user to do certain things (e.g. defrag) when there's a window of a certain size in the recording schedule would be sufficient. Just my two cents... Not meant to be a dig. |
#26
|
||||
|
||||
Quote:
|
#27
|
|||
|
|||
With a video file systems it is important to use large blocks. With large blocks it doesn't matter if the drive becomes fragmented. By the time you fill or empty the MPEG buffer for a encode or decode it is time to move the heads anyways to service another stream. With a number of tuner cards and clients there is always another stream to service.
|
#28
|
|||
|
|||
Having multiple tunners fragments drive(s) like mad due the fact that those tunners are writting out the data in small chunks and those chunks are written anywhere they fit.
This is why when do you a copy (or xcopy), you get one continous file with no breaks (fragments). So, this seems to be easy to fix. Why not simply have SageTV at the end of a recording copy the file to a temp name, delete the original file, and rename the temp to the origninal? Something like this: After a recording of say "Batman-returns" copy "Batman-returns" to "Batman-returns-temp" delete "Batman-returns" rename "Batman-returns-temp" to "Batman-returns" Anyone knows the location of where I can put script which will be called after a recording is done? Last edited by joe123; 04-02-2006 at 01:53 PM. |
#29
|
||||
|
||||
you can probably setup DirMon2 to run the script or ask JereJones on advice on how to do so or even add it as a features into DirMon2.
__________________
Mayamaniac - SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme. - SageTV HD300 - HDMI 1080p Samsung 75" LED. |
#30
|
|||
|
|||
Anyone REALLY know if video "stuttering" (too-slow I/O) is significantly better/worse with:
a) Ordinary EIDE drives vs. b) USB2 data drives, and the boot drive is EIDE |
#31
|
|||
|
|||
Quote:
My server is an old BX chipset with the front side and memory bus running at 66 mhz. I have (2) 200 gig, 7200 rpm IDE drives with 8mb cache. Both drives are currently 99% fragmented. I was capturing 4 shows last night at 3.2 gb/hr each, all 4 shows were being processed by ShowAnalyzer in "real time" and I was watching another show on the client. There was no stuttering or anything else that would indicate a problem. Are the people having problems using onboard controllers or pci cards? I use an ATA controller card due to the BX not supporting the newer large drives. I'm just wondering if some of the onboard ide controllers are poorly implemented. I've had motherboards that had spikes in cpu usage, seemingly long access times, and other problems. None of which I've had when using a controller card. One of my nforce2 boards is horrible when trying to use the Nvidia IDE driver. |
#32
|
||||
|
||||
I've been trying to get a setup where all recordings go onto a ramdisk then flush out to a hard drive to avoid abuse of the hard drive. The more fragmented the drive the more work it's doing and the more work it's doing the more heat it generates and the more heat the quicker it dies... It doesn't seem like anybody likes that school of thought though!
|
#33
|
|||
|
|||
Quote:
|
#34
|
||||
|
||||
Quote:
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. |
#35
|
||||
|
||||
Quote:
__________________
You can find me at Missing Remote. Or playing FF XIV. For XLobby users: XLobby MC |
#36
|
|||
|
|||
Diskeeper "Set It & Forget It" is what I use on all my drives...I don't defrag my recording drive however.
P |
#37
|
|||
|
|||
In my system, when the camera pans a scene, there are dropped frames until the panning slows or stops. Like every second or so you see skipped frames.
Some may call this stuttering. The prior posts argue that it isn't the disk I/O limitations. So it's either 1. MPEG encoder can't cope - or can't get its stream consumed fast enough (in my case, this is USB2). 2. video card sampler to S-Video. I wonder if (2) is really possible - as this process would have to be sensitive to the busyness of the scene. I doubt it. So that leaves (1). Agree? |
#38
|
|||
|
|||
Quote:
Watch Fox news and look at the ticker. Does it scroll smoothly or does it stutter as it goes across the screen? |
#39
|
||||
|
||||
Easily way to test if stuttering is caused by fragmentation is to play the video with WMP or other players, and possibly while SageTV is running.
__________________
Mayamaniac - SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme. - SageTV HD300 - HDMI 1080p Samsung 75" LED. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|