SnapStream Forums

Go Back   SnapStream Forums > SnapStream Product Discussions > Beyond TV and Beyond TV Link
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-23-2009, 10:09 AM
scooterspal's Avatar
scooterspal scooterspal is offline
Senior Member
 
Join Date: Dec 2008
Posts: 167
Reading and writing on the same HD

Does it do the HD any damage to be reading and writing at the same time?

Recording 4 TV channels into a single HD... I still cannot wrap my head around how that can even work.

These so-called Green Drives... they seem to only run at 5400rpm. Is that fast enough for a 4 channel recording system running Mpeg2 at 6Mbps?
__________________
Dell XPS-410, 2GB, 250G "C" drive & two 1 TB Video Files drives, Windows XP-Pro-SP2, BTV 4.9.2
Running two Hauppauge PVR-500 cards
Driver Version 2.0.48.25037
Reply With Quote
  #2  
Old 01-23-2009, 12:50 PM
Rich A's Avatar
Rich A Rich A is offline
l33t Member
 
Join Date: Aug 2003
Location: About 2 feet in front of the monitor. (otherwise CT)
Posts: 3,906
Re: Reading and .. warning long read

A lot of people don't realize exactly how a hard drive works. Today's SATA 7200 RPM drives are fast enough to be able to write (and/or) read several data streams at once. But the only reason they can do that is because they are FAST.
By the way, I just purchased a couple of those "green" drives myself. The way they work is that during times of no activity they slow down to 5400 rpm. When the activity starts up they also speed up (to 7200 RPM) Speed equates to power drawn and heat produced. So if you can slow down a drive speed when it isn't really doing much, you'll save on electricity and theoretically the drive won't be producing as much heat, therefore increasing it's reliability and longevity.

Here is how your typical drive works. This is just for an example.

Let's take a drive that has 4 platters. Each platter might be capable of storing say 20 GB. So the entire drive can hold 80 GB. And this drive has 4 read/write heads. One for each platter.

The thing that puts a damper on data throughput is the fact that all the heads move in unison. They are all controlled by the same motor. Soooo, if this drive has been in use for some time, the data you will be reading from it could exist across one, two, three, or even four of the platters. And because the controller has to move ALL the heads to read just the data on the any one given platter, it can't get the remaining data until the first accessed platter has been read. So let's say your data is spread across three different platters. And the order to read it is maybe Platter 2, then platter 3, then platter 4. So all the heads have to move at the same time to read data from the platter 2, then they all have to move to read next bunch of data from # 3. And so on. And of course with a file that is somewhat fragmented, the head(s) will have to move thousands if not hundreds of thousands time to fully read the complete file. While this sounds impossible, it is not .. up to a point. The speed those heads move and the rate that the data is read is VERY fast. So much so that the modern drive today can easily handle multiple files fragmented across both individual drives and across several different platters of that drive.
This is why it is best to split up the drive reading and writing duties among separate drives. Like putting your OS and programs on one drive and your show storage on another. You are splitting up the read/write requests to two separate drives, which means any activity on the OS drive will not impact the storage drive at all.

But even if you have a second dedicated hard drive for your storage, things can still be improved. If you have several data streams being written to that one drive you still are limited to the fact that the data may be spread out over several places on several platters and and those heads are going to be banging around at incredible numbers. There are several ways to reduce the pain and strain on the storage drive. One way is to set up more than one recording drive into a RAID 0 array. Let's take a 2-drive RAID 0 array for example. Data streams can now be read/written simultainiously between the two drives. That's because you are splitting up the "geometry" of the process. Sure all the heads on drive one still have to move in unison. But now you've got another drive with it's own set of heads that can read/write at the same time. So the RAID controller splits up the writing to the two separate drive. The result can be a 40 to 50 percent increase in through-put. Add a third drive and the through put becomes even higher. I've found with my tests that the best bang for your buck is a two-drive RAID. Although adding a third drive does make a difference the biggest jump in performance will be going from a single drive to a two drive RAID 0 array. Add a fourth drive and the change from the three drive array is even less noticeable.

Another reason to keep your recording drive separate from your OS drive is that you will have less problems with fragmentation. My own HTPC (with my current 2-drive RAID array) has only been defragmented once in the last 3 or so years. It's been running 24/7 for five years and six months by the way. About 4 years ago I upgraded the Raid drives to larger sizes. And for kicks I did a defrag about a year after that. And fragmentation before the defrag was was something like 2 or 3 percent. I check it often and it never goes much above that.

Why? Well since that drive is dedicated where nothing other than large video files are being stored. as they are written and removed, there are always very large segments available for the drive to write to. There are some very small BTV files for SmartSkip and other BTV maintenance that are also written there. But the bulk of the file are (at the smallest) about 1.5 GB in size. (a 1/2 hour analog show on my system). And what helps in my case is that I really don't leave shows on my recording drive and IF I want to archive them I either dump them to a removable drive or burn them to a DVD. A typical one hour HD show (If I remember correctly) is about 7 GB. And I always have (well almost always) a free continuous space at least double that size. So the file is usually spit in two and written in one pass across the two RAID drives. One tip is to keep your recording drive at least 25 to 30 percent empty. My calculations based on my available viewing time and the need to store the shows for perhaps a few days, ended up with my being able to work quite nicely with a pair of 250 GB SATA II drives in a RAID 0 array for storage. And I very seldom have more than 300 GB used at any given time.

Lastly, my on-going tests suggest that running say 2 each 250 gb drives in a RAID 0 as opposed to say one 500 GB drive will result in 1/2 the stress being put on each of the two RAID drives as opposed to one single drive. Don't forget that one 500 gb drive has to write all it's data in sequence using only one head at a time and that willl really be putting a load on the drive geometry. Whereas the dual drive system can actually put almost twice the data down in the save given amount of time .. dividing the writing between the two drives simultaneously as each drive has full use of it's own multiple head geometry.
Okay .. if you have stuck with me so far, you should understand now, how using multiple digital tuners writing a lot of data to one hard drive works. With only one drive all those tuners' data streams will have to be written sequentially by the multiple heads .. one head at a time. The reason you CAN do it, is just because these new modern hard drives are VERY fast.
There are arguments against and for using a Raid zero array and I won't go into that. The old (lame in my way of thinking) theory that you have twice as much chance to loose all your data if just one drive in the raid fails, is silly. You have not increased your chance of a drive failure by just adding a second drive. In fact in a RAID 0 array you actually reduce the stress imposed on both the drives by virtue of the data being split up and written to both of them. (the heads of each drive move far less than one drive with one set of heads)

Things that ARE a negative when dealing with a dual drive vs single are heat build up in the case, noise, and the extra amount of power needed to now run two instead of one drive. This is why my recording drives, DVD Burner, and removable hard drive are all housed in a separate case designed for maximum cooling etc.

Hope this helps explain things a little.
__________________
Rich A

Retired BTV Beta Tester. 4.x.x
BTV Server: XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 Quad Core 3.2 gHz, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3x500 GB show storage drives. Hot swap removable HDs with archived DVDs. VGA video out to projector. HDHR, PVR350, HVR1600, HVR1250, HVR-950, NextPVR Server: HDHR PRIME Cable card (3 tuners)
Reply With Quote
  #3  
Old 01-23-2009, 06:21 PM
lsrracer lsrracer is offline
Member
 
Join Date: Sep 2006
Posts: 78
Re: Reading and writing on the same HD

In general, wear and tear on a hard disk drive is not a function of how often you read & write it. The majority of failures have to do with contamination in the head-disk assembly (commonly called HDA in the business).

Putting your OS on one drive and media files on another doesn't really split reading and writing operations between the two drives. Plenty of reads and writes occur on both drives.

Green Power drives do not dynamically change spin speed, this is a myth. The 5400-7200 rpm spin speed spec they publish is just to tell people that it's between those two points. It's marketingspeak to try to keep people from judging it's performance based on spin speed. Spin speed is not always a reliable indicator of performance.

Finally, a 4 platter drive generally has 8 heads.

You are correct in your assertions that the heads have to move in unison. Logical block mapping to the physical location on the media is a complex subject though, that takes into account a whole bunch of things. Generally, embedded servo drives like these try to minimize head switch operations, because they're actually more expensive from a time point of view than an adjacent track switch. So they tend to stay on a given surface as long as possible on sequential operations. However, designers generally do this on a per-zone basis, so that the earliest LBA's have the highest performance. Defect management, however, may require the drive to seek off to a spare pool area at any time.

You're also correct that Raid-0 will essentially double the sequential performance of a drive.

I've been designing disk drives for 30 years.
Reply With Quote
  #4  
Old 01-24-2009, 12:09 AM
Asmordean Asmordean is offline
Registered User
 
Join Date: Feb 2004
Location: Canada
Posts: 162
Re: Reading and writing on the same HD

A typical 7200RPM can write at about 35MB/s give or take 5MB/s and read at about 40MB/s.

A standard def MPEG2 stream recorded at a fairly high quality of 6Mb/s works out to 0.75MB/s. As you can see 4, or even 8 at the same time won't be taxing a HDD. Even a 5400RPM drive has more than enough spare capacity.

Even if you cut the speed into a quarter you still are okay.
Reply With Quote
  #5  
Old 01-24-2009, 02:36 PM
scooterspal's Avatar
scooterspal scooterspal is offline
Senior Member
 
Join Date: Dec 2008
Posts: 167
Re: Reading and writing on the same HD

Quote:
Originally Posted by Asmordean View Post
A typical 7200RPM can write at about 35MB/s give or take 5MB/s and read at about 40MB/s. A standard def MPEG2 stream recorded at a fairly high quality of 6Mb/s works out to 0.75MB/s.
Does this assume the HD is connected directly to the MB via an ATA cable?

That is, if I use external USB or Firewire enclosures for my drives can I still safely get these #'s or at least safely record 4 to 8 channels at the same time?

It would seem, then, that SATA drives are not required to make multichannel SD video recording a reality. Regular ATA drives can do the job easy enough. Is this correct?
__________________
Dell XPS-410, 2GB, 250G "C" drive & two 1 TB Video Files drives, Windows XP-Pro-SP2, BTV 4.9.2
Running two Hauppauge PVR-500 cards
Driver Version 2.0.48.25037
Reply With Quote
  #6  
Old 01-24-2009, 09:47 PM
Asmordean Asmordean is offline
Registered User
 
Join Date: Feb 2004
Location: Canada
Posts: 162
Re: Reading and writing on the same HD

Well that's a different story. Firewire should be fine for that, USB may or may not be.

I've two external USB drives. One I can sustain about 20MB/s but the other coughs and sputters and only does about 5MB/s.

If you are building something, I would look for a drive enclosure with eSATA only (not eSATA + USB)
Reply With Quote
  #7  
Old 01-24-2009, 09:49 PM
Jakesty Jakesty is offline
l33t Member
 
Join Date: Jan 2006
Location: West Chicago, Illinois
Posts: 1,434
Re: Reading and writing on the same HD

Quote:
Originally Posted by scooterspal View Post
Does this assume the HD is connected directly to the MB via an ATA cable?

That is, if I use external USB or Firewire enclosures for my drives can I still safely get these #'s or at least safely record 4 to 8 channels at the same time?

It would seem, then, that SATA drives are not required to make multichannel SD video recording a reality. Regular ATA drives can do the job easy enough. Is this correct?
Most people have had mixed results with USB. The drive isn't the problem, it's the bus through-put of the USB.
Sata drives aren't really any faster than PATA, but unless PATA drives are your only choice, you're buying technology that won't be as easily supported in the future. (I'll preface the speed comparison with drives of equal size. The new 1.5tb drives are supposed to be much faster, well over 100mb/s.)
Like what was said earlier, speed of the drive isn't everything. Some of the data is closer together. Drives today are recording perpendicularly, making it faster to read as well.
My older 500gb Seagates, 7200rpms, I recorded 6 shows, 3sd 3hd, while watching a program all at the same time. OS separated from the DATA drives. Like what Rich says, I have had the same experiences as well. 2 drives effectively doubles the speed, but it may not be necessary given my results. But that speed is so nice when you try to do anything at all and need something done NOW.
__________________
BTV Server : 4.9.2
Gigabyte eg45m-ds2h q8400, 9500 GT, 8gb, Win 2k3 Ent w/mxd Raid 0/1 2x500, Raid 5 3x1.5T, 2xHDHR, HDPRIME
BTV Server : 4.9.2
Intel D945PVS, 3.0ghz XPMCE, MCE 500, HVR1600, 2gb, 500gb, EVGA 7600gt, Antec 430 TPT PSU, Firefly RF, SVid to AOC 32" LCD
BTV Link : 4.9.2
Dell uSFF 3.0ghz, 1gb, Samsung Led 8000, Onkyo 1008, Polk 70 Mon


Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BM not reading tags? The_Emperor Beyond Media User-to-User Troubleshooting & Support Forum 3 08-01-2005 01:08 PM
Reading mixed reviews on the PVR-250 fiveirondraw Beyond TV and Beyond TV Link 6 09-02-2004 09:03 AM
Bug Reading Files Over Network BMB Johnny Utah Firefly PC Remote 0 05-29-2004 09:30 AM
How 'bout reading this? Scott Anderson SnapStream Discussion 1 06-03-2003 12:39 PM
ssw stuck when reading jobs.dat osvenbla Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 1 01-11-2002 10:22 AM


All times are GMT -6. The time now is 09:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
©2004-2009 Snapstream Media