SageTV Community  

Go Back   SageTV Community > General Discussion > General Discussion
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

General Discussion General discussion about SageTV and related companies, products, and technologies.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-02-2010, 02:05 AM
sdsean's Avatar
sdsean sdsean is offline
Sage Expert
 
Join Date: Jul 2008
Posts: 571
Return of the RAMDrive

(No this isn't an april fool's joke. . .;-) )

I saw some ancient posts about about guy wanting to partition off some ram and make a ram drive for sage to use. . .

not sure he completely understood that recordings are obviously so big that this would be unwieldly to do. .

Or perhaps not . . ? . . .

My machine can take a whopping 24GB of RAM. . .right now i have 6GB installed. . .but even if you had 12GB, I only at max use 3GB, so why not have SageTV record to a RAMdrive as primary and then run an auto archive to back it up to more solid harddisks?

Just a thought. . .
__________________
AMD Ryzen 9 3900XT 12 Core+HT, 64GB DDR5, GeForce 1060, MSI Prestige x570 Creation Mobo, SIIG 4 port Serial PCIe Card, Win10, 1TB M.2 SSD OS HDD, 1 URay HDMI Network Encoder, 3 HD-PVR, 4 DirecTV STB serial tuned


Reply With Quote
  #2  
Old 04-02-2010, 02:49 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
What do you expect to gain from doing this? Keeping random-access files in memory makes sense when any page could be needed at any time. But (a) video files aren't random-access, they're strictly sequential, and (b) the OS does a good job of caching random-access pages in RAM already. By setting aside memory for a RAM drive, you'd actually be reducing the effectiveness of the OS page cache by forcing it to cache pages that may not actually be needed.

Plus there's still the size issue. You'd have room for at most a couple of TV recordings in RAM, so you'd have to dump them to disk right away to make room for the next recording, and set up an alternative disk-based recording directory to handle the case where you don't move them out fast enough. Seems simpler to just cut out the middleman and record them straight to disk in the first place.
__________________
-- Greg
Reply With Quote
  #3  
Old 04-02-2010, 08:18 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
SSDs are cheaper, much cheaper, when you start getting into RAM densities that high. I just looked and I'm guessing you'd have to use 6x4GB to hit 24GB in your motherboard? That would be at least $1200 going by newegg's pricess. You could get about 512GB of SSD for that today.
Reply With Quote
  #4  
Old 04-02-2010, 10:40 AM
sdsean's Avatar
sdsean sdsean is offline
Sage Expert
 
Join Date: Jul 2008
Posts: 571
Yeah not saying i'm going to do it. . . i was just thinking about it. . .

It seems to me that the hard drive access is the one bottleneck that is hard to work around, especially if you have multiple recordings going (although the sequential notes and hdd caching are good points as well). Granted SSD would probably be a better option, but the 3Gb / sec throughput is lame-o. . .

Another reason I was thinking about it is that I'm convinced disk access plays a large role in the slow-ness of channel changing (especially b/c sage has no mode for a cirular buffer). . .There are other reasons too (HD-PVR overhead, building the DirectShow graph, etc), but i'd love to get it faster (i do have it a lot better after tweaking some settings. . . )

The only reason I was thinking about it was the amount of thrash the HDD takes, whereas RAM could obviously handle this thrash much better. . .not sure its a big deal at all, i was just thinking about it. . .

I should note though that I decided to move all my media that I keep to a seperate physical drive than where recordings happen in case of failure. . .
__________________
AMD Ryzen 9 3900XT 12 Core+HT, 64GB DDR5, GeForce 1060, MSI Prestige x570 Creation Mobo, SIIG 4 port Serial PCIe Card, Win10, 1TB M.2 SSD OS HDD, 1 URay HDMI Network Encoder, 3 HD-PVR, 4 DirecTV STB serial tuned


Reply With Quote
  #5  
Old 04-02-2010, 10:54 AM
paulbeers paulbeers is offline
SageTVaholic
 
Join Date: Jun 2005
Posts: 2,550
Honestly, disk throughput is not an issue. Since recordings are mostly sequential (as GKusnick) pointed out and any modern hard drive can do 70 MB/s+ in sequential writes (and a 1080i Mpeg2 recording is only about 2.5MB/s). You can write several streams to a hard drive at any one time before it even breaks a sweat.

As stated, if you really want fast hard drive storage, go with a Fast SSD. They can usually pull down 200MB/s regardless if they are sequential or not writes and then you could write something like 80 shows at once. I myself, I rarely record more than 4 shows at any one time and so I will stick to my large and cheap conventional drives.

Edit: Hard drives are not causing a delay in your channel changing other than maybe 20ms (the amount of time the head to find a free sector on the hard drive).
__________________
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
Reply With Quote
  #6  
Old 04-02-2010, 11:27 AM
sdsean's Avatar
sdsean sdsean is offline
Sage Expert
 
Join Date: Jul 2008
Posts: 571
Yeah you guys are right. .. like I said it was just more of a thought experiment. . .


>>Edit: Hard drives are not causing a delay in your channel changing other than maybe 20ms (the amount of time the head to find a free sector on the hard drive).

Curious why you say this? I know its been said in the past, but I also know that when I've installed faster hdds, channel changing got noticebly faster. . .and of course to me it makes sense since sage doesn't use a live bufffer, it must create a new file, continually append, close file, open new file, start again. . .
__________________
AMD Ryzen 9 3900XT 12 Core+HT, 64GB DDR5, GeForce 1060, MSI Prestige x570 Creation Mobo, SIIG 4 port Serial PCIe Card, Win10, 1TB M.2 SSD OS HDD, 1 URay HDMI Network Encoder, 3 HD-PVR, 4 DirecTV STB serial tuned


Reply With Quote
  #7  
Old 04-02-2010, 11:57 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by sdsean View Post
Yeah not saying i'm going to do it. . . i was just thinking about it. . .

It seems to me that the hard drive access is the one bottleneck that is hard to work around, especially if you have multiple recordings going (although the sequential notes and hdd caching are good points as well). Granted SSD would probably be a better option, but the 3Gb / sec throughput is lame-o. . .
Huh?

Quote:
Another reason I was thinking about it is that I'm convinced disk access plays a large role in the slow-ness of channel changing (especially b/c sage has no mode for a cirular buffer). . .There are other reasons too (HD-PVR overhead, building the DirectShow graph, etc), but i'd love to get it faster (i do have it a lot better after tweaking some settings. . . )
99% of the channel change delay is the time it takes the "tuner" to actually change channels. Maybe 1% of it is the time it takes to rebuffer the new file.

Quote:
The only reason I was thinking about it was the amount of thrash the HDD takes, whereas RAM could obviously handle this thrash much better. . .not sure its a big deal at all, i was just thinking about it. . .
It's not going to do you any good if you can only "buffer" about one show in RAM. You're still going to be thrashing the HDD. Heck it would probably be worse, instead of slowly writing ~20Mbps to the HDD over the course of a show, you'd slam it with 6GB of data as fast as possible as soon as the show was done when it gets dumped back to HDD.
Reply With Quote
  #8  
Old 04-02-2010, 12:55 PM
paulbeers paulbeers is offline
SageTVaholic
 
Join Date: Jun 2005
Posts: 2,550
Quote:
Originally Posted by sdsean View Post
Curious why you say this? I know its been said in the past, but I also know that when I've installed faster hdds, channel changing got noticebly faster. . .and of course to me it makes sense since sage doesn't use a live bufffer, it must create a new file, continually append, close file, open new file, start again. . .
Most likely this is the fault of a failing drive or you went form some very old drive to a very modern drive (but even then I can't see it making more than a second worth of difference).
__________________
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
Reply With Quote
  #9  
Old 04-02-2010, 12:57 PM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
I did some experimenting many years ago, when IBM 386, 20 MHz computers were current technology, and IBM 386, 33 MHz computers were really fast. I had an IBM XT computer, which is very slow and ancient by today's standards. I compared the functional speed of a Chinese word processor program, which was very demanding of the hard drive. The program ran very slow on the IBM XT computer was was fast on the IBM 386, 20 MHz computer. I tried installing a RAM drive on the IBM XT. The program was just as fast on the slower XT computer using the RAM drive verses the IBM 386, 20 MHz which did not have a RAM drive. Back then, the RAM drive wasn't very big, but it did prove a point that programs can run drastically faster with a RAM drive, at least with those vintage computers and software that interacts with the hard drive a lot.

Dave
Reply With Quote
  #10  
Old 04-02-2010, 01:01 PM
paulbeers paulbeers is offline
SageTVaholic
 
Join Date: Jun 2005
Posts: 2,550
Quote:
Originally Posted by davephan View Post
I did some experimenting many years ago, when IBM 386, 20 MHz computers were current technology, and IBM 386, 33 MHz computers were really fast. I had an IBM XT computer, which is very slow and ancient by today's standards. I compared the functional speed of a Chinese word processor program, which was very demanding of the hard drive. The program ran very slow on the IBM XT computer was was fast on the IBM 386, 20 MHz computer. I tried installing a RAM drive on the IBM XT. The program was just as fast on the slower XT computer using the RAM drive verses the IBM 386, 20 MHz which did not have a RAM drive. Back then, the RAM drive wasn't very big, but it did prove a point that programs can run drastically faster with a RAM drive, at least with those vintage computers and software that interacts with the hard drive a lot.

Dave
There is no doubt that RAM drives used to make a difference and theoretically can make a difference for running applications even in today's computers (where hard drives sans SSD's are the limiting factor), but for media storage it isn't practical and doesn't make a lot of sense.
__________________
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
Reply With Quote
  #11  
Old 04-02-2010, 03:04 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by paulbeers View Post
...and theoretically can make a difference for running applications even in today's computers...
Well, yes, but perhaps not the kind of difference you want. RAM drives are a sort of poor man's virtual memory and date from the era before PC operating systems had VM and page caching built in. Now that OSes support those features internally, frequently-used disk pages stay in RAM anyway, without resorting to RAM drive hacks. Using a RAM drive to override that OS disk caching will probably result in worse performance.
__________________
-- Greg
Reply With Quote
  #12  
Old 04-02-2010, 07:41 PM
49studebaker 49studebaker is offline
Sage Advanced User
 
Join Date: Nov 2008
Posts: 103
If you want to create a RAM drive there is free program called "Ramdisk".

http://www.mydigitallife.info/2007/0...d-2003-server/
Reply With Quote
  #13  
Old 04-03-2010, 10:09 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
To use a RAM drive just for a temporary high speed buffer that will eventually move to physical disk, is no different than setting up a massive write through cache. Though the Cache is much more flexible. I'm not sure on how customizable windows current cache mechanisms are, but I'm betting there's ways to tweak the size up considerably and gain everything you would from RAMDisk, wihtout the complications. There are also more advanced drive controllers that implement a large SDRAM based cache in hardware The rocketraid 3450's 256MB cache is more than enough to absorb any sage recording delay's that would be associated with hard drive congestion.

Of course, you could always splurge and buy one of these: http://www.ramsan.com/products/ramsan-300.htm
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #14  
Old 04-05-2010, 06:07 PM
tyke tyke is offline
New Member
 
Join Date: Feb 2010
Location: MN
Posts: 3
I have a i5 machine with 8G Ram, I made a 2G ram drive and moved my Outlook .pst, temp directory, IE and Firefox temp cache to it. Made Outlook crazy fast. Not sure if it really helps IE and Firefox. The free program loads an image to it at startup and does a backup at shutdown, so I don't loose things.
Reply With Quote
  #15  
Old 04-05-2010, 07:04 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Assuming you shut down properly...
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #16  
Old 04-06-2010, 05:40 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Yeah, an SSD will give you the same result too.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Return to playing video thegodfaza SageTV Software 3 07-24-2009 10:41 PM
Return to CurrentFolder? afinemetsfan SageTV Studio 16 01-15-2006 05:58 PM
How to have it return to same show bones71 SageTV Studio 4 11-20-2005 06:32 AM
Audio return delay while using FF or RW Otto SageTV Software 3 06-03-2004 02:59 PM
The return of the two paned view jominor SageTV Beta Test Software 8 04-18-2004 05:27 PM


All times are GMT -6. The time now is 07:57 PM.


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