RAM Disk "Write-Through"??

Discussion in 'Trading Software' started by Scataphagos, Dec 23, 2015.

  1. Anyone know of RAM Disk software which will allow data to be written to storage "real-time"... through the RAM Disk, so to speak... and not just written at shut down? That is, where the user can select folders to be "written to disk" as well as "written to RAM disk" all through the session.
     
    Last edited: Dec 23, 2015
  2. 2rosy

    2rosy

    not sure what you mean by written to storage "realtime" but here

    echo "hello" > /path/to/storage.txt
     
  3. Baron

    Baron Administrator

    With MySQL, you can use the HEAP storage engine for that, which writes all submitted data to RAM memory instead of the hard disk itself. You could easily write to a HEAP table and a traditional table at the same time if you wanted the data accessible super fast from the HEAP table while having a persistent copy of that same data stored on disk in the event of a system failure of some sort.
     
  4. I don't want to create any file or folder. I'm looking for RAM Disk that will allow the user to select a folder(s) such that when the software writes to the RAM Disk data files, it also "writes through" the virtual drive and writes that data to SSD storage.... like in 5-min or 1-hr intervals. That way, if there is a power interruption, only the data which has been collected since the last "write through" would be lost. (Which would be similar to how it works now. If power is lost, data since the prior interval write is still held in RAM and would be lost.)
     
  5. Turveyd

    Turveyd

    Write you something in Vb which would hourly or whatever, copy the files to the ssd.

    If youve got SSD, loads of ram for caching why do you need Ram disk speeds ?
     
  6. I don't but would want the "write through" feature if ever to use a RAM Disk. Same issue, I think, for using a sandbox.
     
  7. Turveyd

    Turveyd

    Not used RAM disk to speed up database functions in a good 15years.
     
  8. I use Dataram's RAM Disk because it is blazing fast. The current prices and some trading signals are stored in RAM Disk, allowing different programs to access it. Because RAM Disk writing is so fast, I rarely get any "file used by other program" errors.

    I have also written a program that captures real time prices of SP500 component stocks continuously but write to hard disk once a minute. It was my experience that both hard disk and SSD drive won't last more three years, with SSD having shortest life span. You have two ways to extend the life of that drive You can either save your data into a database engine like mysql (heap or not) and the engine will take care of the frequent writes for you. Or you can use the RAM Disk.

    I understand you are worrying about losing data to system crashes. In practice, my machine has rarely crahsed. In fact, my computer loses more data due to dropped connections with iqfeed than anything else.
     
  9. Did you find what you are looking for?

    I found something with Google in 10th minutes. Primo ramdisk from Romex software should do what you're asking.
     
  10. No, never did find. Will check into. Thanks.
     
    #10     Jan 31, 2016