|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Quote:
Thanks for that very clear explanation.........makes perfect sense. Now wouldn't that be cool if you can buffer up the whole show or movie! Greg |
#22
|
||||
|
||||
Quote:
Maybe, but it also dramatically reduces the number required to read/write a given amount of data since more is read/written with each I/O. |
#23
|
|||
|
|||
I think what we're really talking about here is an insufficient read-ahead (or write) buffer in SageTV. The bit rate of 720p/1080i mpeg2 isn't to the point where a modern hard disk with any block size should have an issue. A sufficient buffer should be able to compensate for any fragmentation or other hiccup that that may occur during playback/recording.
That said, with SageTV and higher bit-rate material, a 64k block size does seem to help -- it's just another "feature" of SageTV that bothers me. |
#24
|
||||
|
||||
Quote:
__________________
-- Greg |
#25
|
||||
|
||||
Exactly, even a Velociraptor (10k drive) drops to only 1.5MB/sec when you get to 4k random writes:
http://www.anandtech.com/storage/sho...spx?i=3667&p=6 |
#27
|
|||
|
|||
Quote:
__________________
Sage Server: AMD Athlon II 630, Asrock 785G motherboard, 3GB of RAM, 500GB OS HD in RAID 1 and 2 - 750GB Recording Drives, HDHomerun, Avermedia HD Duet & 2-HDPVRs, and 9.0TB storage in RAID 5 via Dell Perc 5i for DVD storage Source: Clear QAM and OTA for locals, 2-DishNetwork VIP211's Clients: 2 Sage HD300's, 2 Sage HD200's, 2 Sage HD100's, 1 MediaMVP, and 1 Placeshifter |
#28
|
||||
|
||||
Quote:
In fact I'd argue that fragmentation is what you want when recording multiple streams to the same disk at the same time. You don't want the head seeking all over the disk trying to keep each file nice and tidy, because seeking kills throughput. You want each block written as quickly as possible to the next sequential free cluster, regardless of which file it belongs to, in order to maximize throughput and minimize buffer overruns and damaged recordings. Any "intelligent" process that interferes with that is likely to limit the number of simultaneous recordings you can make.
__________________
-- Greg |
#29
|
|||
|
|||
I have been using Diskeeper for the past 12 years and have found that it does what it is designed to do very well -- all my systems that are running Diskeeper are generally much more responsive.
Windows NT, Windows 2000, Windows XP Pro, Windows Vista and Windows 7 are all pre-emptive multi-tasking operating systems --- applications that are properly written to take advantage of that capability will work much more efficiently especially if more than one processor is involved -- Diskeeper is one such application. I do not know if SageTV is one such application. I am very new to SageTV so I currently have no idea if SageTV and Diskeeper will produce a Superior outcome from a performance perspective -- I suspect that it will but only experience will determine that. In my post I stated that perhaps Diskeeper is a better solution -- its free to try. Diskeeper features that may be of interest. |
#30
|
||||
|
||||
Diskeeper is a great product. The problem with running Diskeeper on your recording drives is to could cause them to fail sooner because of extra heat and IO created when moving such big files around a nearly full drive.
The best solution is resize the drives to 64k blocks, run Diskeeper periodically (not activly) and leave extra space on you recording drive so there is contigious space for new files / defragging. |
#31
|
|||
|
|||
IMO using a large cluster size [64k blocks] will decreases the amount of fragmentation as fewer locations are needed to write the data which will in turn also increases write performance and eventually read times -- so it does make sense to have SageTV write/read its media files on hard disks dedicated to large media files and Keep the OS on its own dedicated drive.
Diskeeper effectively solves the issue of file fragmentation -- Windows unfortunately does not do a good job keeping file fragmentation to a minimum -- for those that do not want to fool around with cluster sizes -- usually after the fact -- I suspect that Diskeeper may be a good solution. |
#32
|
||||
|
||||
When I first started using Sage in 2005 I used 4k blocks and after 8 months disk fragmentation started to cause skipping on play back. I then ordered a 500GB disk, formatted to 64k blocks, and have never had an issue and never defraged it.
The issue really comes down to can the hard drive seek and read faster than the data stream required to smoothly play the content. If you have a 10GB/hr recording then that file is 2.778 KB/ms (assuming the stream is evenly distributed). On my Seagate 7200.11 drive, the spec sheets lists the random read seek time as <8.5ms. If I take 8.5ms as the worst case (total fragmentation with clusters in the worst spots on the disk, which is very unlikely) then the hard drive can roughly keep up if the minimum block size is larger than 23.613KB (2.778*8.5). So for this drive if I format to 32KB blocks (the next available cluster size above 23.613KB) the disk can be totally fragmented and still not be a bottle neck. You can factor in miss reads or any other small additional issues that will increase the minimum block size if you want. It's a simplified example, but I think it illustrates the point that 4KB blocks won't cut it unless you maintain very little fragmentation on the disk. BTW I used 1GB=1000MB instead of 1024MB, the assumptions above have more variation then the 2.5% error from being lazy.
__________________
Phil K. |
#33
|
|||
|
|||
Quote:
How MCE is able to apparently avoid severe fragmentation using a single disk with 4k clusters, and SageTV is not, I'm not sure. Perhaps SageTV doesn't follow some of these recommendations? Last edited by brainbone; 01-02-2010 at 12:40 PM. |
#34
|
||||
|
||||
Quote:
Quote:
I'm not an MCE user and don't know how it handles the case of four or five simultaneous HD recordings (assuming it can handle that many at all), but my guess is that it probably relaxes its no-fragmentation rule under heavy recording loads.
__________________
-- Greg |
#35
|
||||
|
||||
That paper also mentiones that the NTFS caching/allocation scheme is not documented. However being that MS created both NTFS and WMC, it's not a big leap to think that maybe WMC was made with non-public proprietary knowledge of NTFS and/or with undocumented hooks to avoid problems.
Of course there's another thing to consider, Sage doesn't place limits on clients or tuners, so you can end up with massive SageTV systems that would be impossible in WMC. WMC on the other hand is (or at least has been) more focused on the single user dual tuner environment where you can get by with less optomization than you can in a larger system. |
#36
|
|||
|
|||
Quote:
Windows 7 ultimate supports up to 4 digital tuners. I tested with 2 digital (HD streams) and 2 analog, without issue. SageTV did have issues without 64k clusters using the same 4 tuners. Quote:
Last edited by brainbone; 01-02-2010 at 07:32 PM. |
#37
|
||||
|
||||
Quote:
First big problem with that is Sage doesn't really know how big the file is going to be when it starts a recording. Quote:
Quote:
Quote:
|
#38
|
|||
|
|||
Also, SageTV will run on 98SE with FAT. Will MC? I haven't looked at the spec for that.
__________________
Server #1= AMD A10-5800, 8G RAM, F2A85-M PRO, 12TB, HDHomerun Prime, HDHR, Colossus (Playback - HD-200) Server #2= AMD X2 3800+, 2G RAM, M2NPV-VM, 2TB, 3x HDHR OTA (Playback - HD-200) |
#39
|
|||
|
|||
It's pretty damn important, it's up there with balancing multiple drives by available space if you have them mapped individually.
|
#40
|
|||||
|
|||||
Quote:
"One possible solution would be to issue a single 400kb write. This would mean the application needs to deal with data records that size or do its own buffering." Many of the other suggestions in the document don't seem to fit SageTV well. Quote:
Quote:
The NTFS driver needs to allocate the blocks it is going to write regardless. What is a lager performance hit, waiting to commit 4096KB once, or committing 4KB 1024 times? With the buffering method, your only performance hit is exactly the latency of how long it took to receive the first 4096KB (assuming you use a 4MB buffer). Quote:
Quote:
Here is another thread about a similar problem (skip past the pre-allocation talk and get to the meat): http://lists.samba.org/archive/rsync...er/016836.html Last edited by brainbone; 01-02-2010 at 10:42 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|