|
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 |
#1
|
|||
|
|||
External USB drive and no. of streams
I think I have seen this info around before, but I can't find it. How many streams could I record over USB 2.0 to an external drive?
How many HD streams? How many SD streams? In other words, when would I hit the 480Mbps cap? |
#2
|
||||
|
||||
Do the math. SD runs about 2-3 GB/hr, depending on quality. HD is about 6-8 GB/hr. 480 Mbps = 216 GB/hr. So even figuring only about half of that as useful bandwidth, that's still enough for upwards of 12 HD streams or 30 SD streams.
Of course the performance of the drive itself may be less than that. But even cutting it in half again, there's still a lot of headroom for multiple streams.
__________________
-- Greg |
#3
|
|||
|
|||
For quite a while, my Sage server was a 1.6GHz laptop with 3 USB2 drives on one hub. And an 80GB partition on the laptop's 2.5in. drive. All formatted at 64KB block sizes. The large block size helps reduce the I/O calls per second a LOT. With one tuner, also USB2, on a separate hub, I never had hosed up recordings.
my measurements show that one standard def stream is about all you should try on a USB2 drive. Not sure it could do HD at all, reliably, nor record and playback on same drive. Also this would apply to the capacity of a given hub (non-daisy-chained), so a second stream on the same hub may not work well. I see a dramatic difference in speed of 64K block formatted partitions on USB2 vs. PCI and SATA-II. ALso, CPU speed and loading seems to affect USB2 speed quite a bit. No doubt, someone will disagree. Last edited by stevech; 10-16-2007 at 10:18 PM. |
#4
|
|||
|
|||
Wow, so one person says only 1 SD stream, while another says 12 HD streams! Quite the difference! Can anyone confirm with actual experience?
|
#5
|
|||
|
|||
As a practical example, I regularly record 4 SD streams and 1 HD stream , and play back a stream (HD or SD) from a JBOD array (4 X 500G WD HD on a single USB interface) without any issues... no stuttering, no recording errors...
|
#6
|
||||
|
||||
As I write, I have two HD streams playing back from the same USB drive without issues. (I'm using WMP for this test, because the drive in question isn't hooked up to my Sage machine at the moment.) Perfmon shows disk activity in the 3 MB/s range. A few minutes ago I ran a throughput benchmark on this drive and got figures in the range of 20 MB/s. So that seems consistent with the idea of 10-12 simultaneous HD streams.
Again, a lot will depend on what's at the end of the USB bus. The bus itself will not likely be the bottleneck. But with a reasonably fast drive, I don't see why you shouldn't be able to support several simultaneous streams.
__________________
-- Greg |
#7
|
||||
|
||||
Quote:
How many licks does it take to get to the center of a Tootsie Roll pop? The world may never know. |
#8
|
||||
|
||||
theoretical maximums vs. actual use
i've ditched all the usb drives i had for internal SATA - i really couldn't get more than 2 HD streams (i don't view any SD) on the USB drives. same drives on firewire were able to handle 3+ with no problems, SATA the same. i still try to have at least one unique drive for each of my tuners (i have 3 tuners, and 4 drives right now).
__________________
MacBook Core2Duo 2 ghz nVidia 9400M GPU 46" Sammy HLP4663 720p DLP 2x HDHR, all OTA QNAP TS-809: 12.5 TB for Recordings/Imports/TimeMachine/Music HD200 via 802.11n in Living Room 802.11n client in bedroom |
#9
|
||||
|
||||
Sure; there are lots of factors that can affect overall throughput. But the original question (at least as I read it) was about bus bandwidth:
Quote:
__________________
-- Greg |
#10
|
||||
|
||||
Quote:
|
#11
|
|||
|
|||
Quote:
|
#12
|
|||
|
|||
Quote:
This AMD X2 server has super low CPU usage, running Sage (no HD) plus two other 24/7 applications related to home automation and web browsing via an S-Video link to the TV set. The AMD X2 3800 was chosen due to low power consumption, runs very cool, and is low cost and uses an ASUS microATX motherboard - same one I have in an office PC that's an AMD X2 4200. Very reliable. I think USB2 uses a lot of CPU to do data moves related to packetizing USB2 data streams, and vice-versa. I recall that USB2 in this mode also has a CRC check for the CPU to do. In SATA and Ethernet, this is done in the controllers. Isn't HD with mpeg2 up to 12Mbps per stream? Perhaps it's related to interlaced or not, but Standard Def seems to be about one fourth that rate. Last edited by stevech; 10-17-2007 at 02:24 PM. |
#13
|
||||
|
||||
Quote:
Since HD recording is very processor intensive (I think I read on these boards around 40% CPU utilization per stream?)-that could mean that if you have an external USB drive and you are recording HD, you may run into CPU bottlenecks if you try to record more than 2 HD streams to an external USB drive. Throw in transcoding to a MVP and you may run into glitching. Personally, I avoid USB if I am going to copy any large files (greater than 200MB) since my computers always seem to default to USB1.1 speeds and the only way I can get any acceptable file transfer times is to use firewire HDs. Last edited by Menehune; 10-17-2007 at 04:24 PM. |
#14
|
||||
|
||||
Quote:
This is with an Athlon 64 X2 3800+ 2.0 GHz, not a super-high-end CPU when I bought it last year, even less so today. Quote:
Putting it together, I figure a total of around 6% CPU per HD stream recording to USB. (I didn't actually do this experiment; I'm just adding up the numbers from the previous two experiments.) That scales to 60% CPU for 10 simultaneous streams. Bottom line is that in these real-world tests I'm just not seeing the high CPU demand that some posters are predicting, nor any other obvious barriers to recording several HD streams at once to USB.
__________________
-- Greg |
#15
|
||||
|
||||
USB2 implementations can vary quite a bit -- people who have had problems with even 1 Hauppauge PVR-USB2 had no problems after switching to a different USB2 card, for example. Anyone who has very poor USB2 performance should consider buying a new USB2 card.
- 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. |
#16
|
||||
|
||||
Quote:
You may still be correct; what little research I did indicated that as USB standards have matured, this CPU utilization has improved with each iteration. In other words 2 > 1.1 > 1; 2.1 (has it been released yet?) is supposed to be equivelent to firewire. |
#17
|
||||
|
||||
Yes, I was aware of that, but there's a limit to how much reconfiguration of my Sage server I'm willing to do for this.
However if someone else wants to do the experiment and post the results, I'd be interested to see them. I'm not really looking to get into a fight here either. It just seemed to me that the thread could use a bit more hard data to counterbalance some of the guesswork.
__________________
-- Greg |
#18
|
||||
|
||||
Quote:
recording HD is NOT processor intensive at all. There is nothing involved in recording HD but writing an MPEG stream to disk. At the moment i am recording 2 HD (ATSC) streams and using 2 % CPU. HD is fairly disk intensive, as each stream will be needing a steady 2.3 MB/s or so (max 19 mbps) - so while 3 streams is less than 9 MB/s, it is the concurrent writes that ATA has always had more of a problem with than say SCSI - thus the reason native command queueing is such a big deal on SATA (hurrah!)
__________________
MacBook Core2Duo 2 ghz nVidia 9400M GPU 46" Sammy HLP4663 720p DLP 2x HDHR, all OTA QNAP TS-809: 12.5 TB for Recordings/Imports/TimeMachine/Music HD200 via 802.11n in Living Room 802.11n client in bedroom |
#19
|
||||
|
||||
Quote:
-back to lurking. |
#20
|
||||
|
||||
Quote:
__________________
MacBook Core2Duo 2 ghz nVidia 9400M GPU 46" Sammy HLP4663 720p DLP 2x HDHR, all OTA QNAP TS-809: 12.5 TB for Recordings/Imports/TimeMachine/Music HD200 via 802.11n in Living Room 802.11n client in bedroom |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|