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 09-09-2004, 02:48 PM
jptaz's Avatar
jptaz jptaz is offline
Sage Fanatic
 
Join Date: May 2003
Location: Detroit Michigan
Posts: 991
Andy,

My experience has shown the same behavior. It is not every cluster, but it is usually 1024KB or greater chunks (16 Clusters at a time).

If Sage where to modify there Async Read/ Write Filter such that when a New File was created for a recording it could preset the file Size to the approximate recording length. This should be fairly easy since they know both the duration of every recording and the recording rate. If they under estimated the size you would end up with some light fragmentation at the end of the file, if they over estimated - perferable, they would just have to reset the length of the file. This is speculation on my part since I do not have detailed knowledge of the Frey Async File Read/Write Filter, but from my investigations into this on the standard dump filter it would work.

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
  #22  
Old 09-09-2004, 02:54 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
I'm guessing it has more to do with multiple tuner simultaneously writing than free space. For example I've always set Sage to Use All, and my worst file is only 75 fragments. I've never had any trouble with pauses/fragmentation.

However I can imagine that with multiple tuners it would be possible to encounter circumstances where essenially every other cluster is written to by a different tuner/file resulting in huge fragmentation.

edit - I see that idea was alread brought up -/edit

FWIW, I was trying to see if IOMeter would be helpful in diagnosing problems. It may be but I can't tell from my setup. I created 4 workers, 1 reader and 3 writters, with a 1023MB alignment and 64k Transfer Request Size. My thought was that this should simulate to a degree a setup similar to John's. The result was that each worker averaged pretty close to 8MB/sec, more than enough for our purposes. And Random or Sequential IO made little/no difference for me.

I attached the config if anyone is interested.
Attached Files
File Type: txt 3w1r.icf.txt (7.9 KB, 186 views)

Last edited by stanger89; 09-09-2004 at 03:24 PM.
Reply With Quote
  #23  
Old 09-09-2004, 10:23 PM
jptaz's Avatar
jptaz jptaz is offline
Sage Fanatic
 
Join Date: May 2003
Location: Detroit Michigan
Posts: 991
Stanger,

I downloaded IOMeter and I don't think it is a very valid test to simulate my situation. Correct me if I am wrong, but IOMeter creates one file on the disk and performs all the operations within that file. By doing this it bypasses the major problem, i.e. the filesystem over head of updating the MFT for the video file with a random cluster location then updating it. I suspect it is also bypassing the filesystem APIs which SageTV is no doubt using. This test suite does not really simulate writing 3 unique files that are being written and growing the file size. Every File write that happens to a file that is not preallocated needs to update a whole lot of information at once. From a raw performance stand point I do not think any of my disks have an issue as is evident from the HD Tach Test.

I think I ran the same test as you and I got a similar result of 7.95 MB read rate on one of my 80GB Drives. The file system overhead of dynamically growing files can not be underestimated.

I am not sure what causes a fragmented disk to cause this problem, but I doubt that the raw disk performance is an issue. Something else must cause the delay in reads while other writing several other files.

Hopefully some one will come up with a reason why a drive that performs so well can not handle writing at 1MB/Sec to 2 to 4 files randomly growing the files, while reading from 1 other file at the same rate.

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
  #24  
Old 09-10-2004, 10:09 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
See that's what I'm not sure about. Yes IOMeter creates one file, but there's more to it than that. First it can create multiple "workers" which should simulate (reasonably accurately) multiple file or multiple user access. Then you can adjust the amount of randomness (100% Sequential to 100% Random access). So considering you can create a test with one or multiple readers and multiple writters, with anywhere up to 100% random access, it would seem that would be similar to what Sage is doing.

However like I said, when I tried it Sequential or Random didn't make a difference, so maybe it just won't work, or maybe I just don't know how to set it up....


I did a little reading about IO Meter and I may have made a better test. I changed the "burstiness" to 32 I/Os figuring Sage wouldn't be requresting 1 cluster at a time. I checked the reg and it looks like Sage uses 32 64k buffers.
Attached Files
File Type: txt iometer.icf.txt (7.5 KB, 169 views)
Reply With Quote
  #25  
Old 09-10-2004, 10:19 AM
jptaz's Avatar
jptaz jptaz is offline
Sage Fanatic
 
Join Date: May 2003
Location: Detroit Michigan
Posts: 991
Very Strange...I got a pause last night briefly while watching a show. It was very brief, and only happened once.

What was interested was that my scheduled defrag only did two of the five drives. The drive the file I was playing back on was defragged, while the only active recording was on a completely seperate drive that was badly fragmented, but oddly enough the file that was being recorded only had 132 Fragments.

It also appears that I was wrong about SageTV putting many files on one disk. Last night all the recordings were going to different disks.

On a side note I dug up my WinTVCap Code and modified the File Write Filter and I was able to get it to preallocate a 4GB file and record to it. I then went into Defrag and Analyzed the disk the file I created on and it was one big contiguos file.

I am beginning to wonder if the performance characteristics change because I do have multiple drives. I am using every available IDE slot in my machine. So maybe a better simulation with IOMeter would to do your test, except with the write workers all accessing different drives. Since Accessing Two Drives on the Same IDE channel may be what is causing the problem. I would think the problem even with essentially 2 random Writes and 1 Random read on the same IDE channel would not cause this kind of pausing, but maybe there is something else going on that slows it down with that many different reads and writes on a shared IDE channel.
__________________
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

Last edited by jptaz; 09-10-2004 at 10:22 AM.
Reply With Quote
  #26  
Old 09-10-2004, 10:34 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally posted by jptaz
I am beginning to wonder if the performance characteristics change because I do have multiple drives. I am using every available IDE slot in my machine. So maybe a better simulation with IOMeter would to do your test, except with the write workers all accessing different drives. Since Accessing Two Drives on the Same IDE channel may be what is causing the problem. I would think the problem even with essentially 2 random Writes and 1 Random read on the same IDE channel would not cause this kind of pausing, but maybe there is something else going on that slows it down with that many different reads and writes on a shared IDE channel.
That should be easy to try, just open my test and set each worker to a different disk. I'd try but I've only got 2 disks, and both are on their own channel.

Maybe what you need is one of these:
http://cgi.ebay.com/ws/eBayISAPI.dll...116711343&rd=1

Cheapest 8-port IDE controller I know of. Then each of your drives would have it's own channel.
Reply With Quote
  #27  
Old 09-10-2004, 10:34 AM
salsbst's Avatar
salsbst salsbst is offline
SageTVaholic
 
Join Date: Jun 2003
Posts: 2,592
Is it possible that you're saturating the IDE channel and that fragmentation is a red herring?
Reply With Quote
  #28  
Old 09-10-2004, 10:52 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Hate to say it, but you're also running on a VIA chipset motherboard, and VIA Chipsets are known for poor PCI performance, sometimes very poor.
Reply With Quote
  #29  
Old 09-10-2004, 11:36 AM
jptaz's Avatar
jptaz jptaz is offline
Sage Fanatic
 
Join Date: May 2003
Location: Detroit Michigan
Posts: 991
PCI Performance could be an issue. Defrag simply reduces the amount of traffic on the bus, by reducing the Over head.

It seems odd that PCI performance could play a part in this since searching on PCI Performance Issues with Via it appears to only come into play when pushing the performance limits with RAID or other high throughput. With 4 PVR 250 Cards, 4 IDE Channels (7 Drives), 10/100 NIC. It does not seem like this would be the same as a RAID type issue.

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
  #30  
Old 09-10-2004, 12:04 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Well with older VIA boards had trouble with all kinds of stuff. I remember comments about pops playing audio while accessing the HDD, HDD corruption etc. Not saying things haven't improved, but after my last VIA board, I'm rather biased.
Reply With Quote
  #31  
Old 09-10-2004, 12:50 PM
rrussell's Avatar
rrussell rrussell is offline
Sage Aficionado
 
Join Date: May 2003
Posts: 290
Somewhat off-topic: If I did get a newer IDE controller card, say ATA100 or 133, and put it in an older PC, will that PC then be able to see the more modern larger hard drives?

Like 160 and 200gb?
Reply With Quote
  #32  
Old 09-10-2004, 12:55 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally posted by rrussell
If I did get a newer IDE controller card, say ATA100 or 133, and put it in an older PC, will that PC then be able to see the more modern larger hard drives?

Like 160 and 200gb?
Yes. But, you may need to get some updates for Windows, depending on which version you are running.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #33  
Old 09-10-2004, 08:01 PM
kny3twalker kny3twalker is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,074
since I was no help earlier I can at least suggest the Promise Card I am using

it works great there are versions with 2 serial ATA and 2 IDE as well as mine which is 4 IDE
Reply With Quote
  #34  
Old 09-10-2004, 10:07 PM
jptaz's Avatar
jptaz jptaz is offline
Sage Fanatic
 
Join Date: May 2003
Location: Detroit Michigan
Posts: 991
What is the Model Number of the promise card Kmy3tWalker?

I have a feeling it is my older 80 GB drives that are causing the problem not the Controller. My mainboard has a Integrated promise raid chip that they are all running at a good speed on, but the random access speed on the 80GB drive under bad random access conditons is ugly. Considering the worst the pausing got was once in an hour program, thats not bad for 3 year old 80 GB drives.

Also just an update. I forced things to start pausing again...this time it is definitely because of fragmentation...well at least it aggrivated what ever the cause of slow random access on my 80GB drives. I have doubts as to it being related to PCI or IDE congestion as all access was only on 1 hard drive.

I decided to do an experiment. I went in and deleted several shows from my e: that have been on the system for varying periods of time. I then started defrag and stopped part way through which left the disk horribly fragmented...actually more so than before. I then set 4 shows to record at the same time and since the e: drive had by far the most free space all 4 shows are recording to the one drive and it is at the 1 fragment per megabyte rate. In fact two of the recordings could not get stable ( they had 40+ different files and growing and was pausing horribly). I stopped them and started them again and this time this got a bit better since Sage Did not have a chance to clean up the partials before starting again.

This is an extreme example of what happens, normal levels of fragmentation created by SageTV does not immediately cause pausing it does take time, but I do think SageTV needs to get smarter about preallocating files or spec a min drive performance for multiple tuner cards.

Since it only took me 10 minutes to modify WinTVCap to preallocate files. Of Course it always preallocated them at 4GB a piece I am sure it will take a bit more time for Frey to add the intelligence to the write filter, but I am more than happy to just have it smart enough to restrict writing to one disk, especially when I had 28GB+ free only 3 other hard drives.

I definitely would prefer preallocation as it makes editing MPGs for making a DVD goes much faster. When I have edited commcerials on a fragmented file it takes for ever to skip through the file and it makes the disk sound like a popcorn maker.

Just my late night rants...maybe I will break down and buy a 250GB Drive and dump 3 of the 80GB Drives. If this doesn't solve the problem this I am looking at a new MB without a VIA chipset...who knows.

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
  #35  
Old 09-10-2004, 10:33 PM
kny3twalker kny3twalker is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,074
Quote:
I definitely would prefer preallocation as it makes editing MPGs for making a DVD goes much faster. When I have edited commcerials on a fragmented file it takes for ever to skip through the file and it makes the disk sound like a popcorn maker.
my 80 GB maxtor sounds like that before I added more RAM to the system

when it was still 256MB

and even then it did not quit completely but rather not near as much

the 250 GB drive I am using have the 8MB of cache

they seem to never do this at all
and since the 80 GB is not used as much
I rarely hear anything from it at all

maybe that helps
cause I feel your pain
about making popcorn

model number
does this mean I got to open my case?
it is in a cabinet

I can tell you it is not a RAID card
http://www.promise.com/product/produ...=87&familyId=3
Reply With Quote
  #36  
Old 09-10-2004, 10:40 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
I don't know what the general impression of SIIG is, but I haven't had any problems with my ATA/133 card from them nor with my USB2/1394/NIC combo card. See SIIG's Ultra ATA & Serial ATA Products. Of course, I haven't benchmarked anything either.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #37  
Old 09-10-2004, 11:20 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Seriously, if you need a card, take a look at an old 3ware 5800 off ebay, they're really cheap, and even though it is a RAID card, you could just use it JBOD if you want. Each drive get's it's own channel so no master/slave issues.
Reply With Quote
  #38  
Old 09-10-2004, 11:38 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
My problem with those 3WARE 5800 cards is that they appear to be ATA/66 only, plus you get a 5 year warranty with those SIIG cards, for less than the ebay buy-it-now price (SIIG prices at CompUSA).

However, the SIIG cards don't have 8 connectors, of course.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #39  
Old 09-11-2004, 04:45 AM
jptaz's Avatar
jptaz jptaz is offline
Sage Fanatic
 
Join Date: May 2003
Location: Detroit Michigan
Posts: 991
Quote:
Originally posted by kny3twalker
my 80 GB maxtor sounds like that before I added more RAM to the system

when it was still 256MB

and even then it did not quit completely but rather not near as much

the 250 GB drive I am using have the 8MB of cache

Maybe more memory would help, I have been back and forth on this. I guess one possibility is that the MFT on all my drives is not cached since I only have 512MB of memory. Maybe I will borrow 512MB from another machine and do some testing.

In the middle of a major home improvement project so money is tight at the moment for none essential items.

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
  #40  
Old 09-14-2004, 10:23 AM
lonndoggie's Avatar
lonndoggie lonndoggie is offline
Sage User
 
Join Date: May 2004
Location: Encinitas, CA
Posts: 42
Disk fragmentation is a worry here. I've got two Seagate Barracuda SATA drives, one partitoned into C: and D:; the D: drive is -mostly- dedicated to Sage, but I also put all downloads there.

I have one PVR-250, and one MIT MyHD-120 HD tuner. The MyHD does it's capture thing to the F: drive, the other SATA Barracuda (not partitioned).

Looking at the drive Sage uses, I see it's 81% free space (which is typical), or 84GB. It also shows 31% total fragmentation, and 62% file fragmentation. Looking thru the file list, most (but not all) of the Sage recordings are fragmented (but not much--2 o 5 fragments). However, even small downloaded files are fragmented!

The F: drive is heavily fragmented, too; I do video file editing/transcoding there, and some files that are output of those processes have thousands of fragments (this confirming the theory of multiple threads writing different files increases fragmentation, where I'm doing a demux to create separate audio and video files).

And no, I haven't changed the cluster size to 64K. In this case, that might help a bunch.

I've been generally unhappy with disk performance. If, for example, I try to copy two large files from one drive the other simultaneously, instead of approximately halving the speed at which the transfers happen, as I'd expect if things are workiing well, it actually multiplies the time by a factor of 5 or so, and you can hear the drives buzzing as the heads do a cha-cha-cha getting and writing the files.

I have an ASUS P4P8X MB that has builtin SATA support.

Besides changing cluster size, any ideas of what I can look at to fine-tune my disk performance?

(btw, I had been having problems with Sage occasionally lagging, then catching up--defragging didn't fix that, but ReClock did).
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 10:55 AM.


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