Create a virtual disk with .NET?

I found a lot of good topics on stack overflow about this, but my question is a bit more specific. Many companies use this software to host the same services that we do ...

http://memory.dataram.com/products-and-services/software/ramdisk

The read / write speed to the virtual disk seems to be insanely faster, and since we are running very intensive I / O software, I would like to write something to do the same. My only need is that it runs the application on a virtual disk (to increase I / O speed) and copies the data to a physical location on the hard disk every X minutes.

Would it be pretty easy to accomplish? What should I use for this?

EDIT

It looks like I can use the following Dokan library, but can the substitute command on Windows increase I / O performance, or is this the best library?

http://dokan-dev.net/en/about/

+8
c # virtualization hard-drive
source share
2 answers

This is really not a C # / issue. NET if you do not want to write your own RAM disk driver. Drivers like the ones you’re connected to have been around for a long time, and they have insane read / write speeds due to the availability of RAM for your application and OS. This may not be a problem in your case if the machine has a lot of RAM.

A programming component is the periodic writing of the contents of a RAM disk to a disk. Since a RAM disk is usually displayed as just another disk, this is an easy way to copy files from it to a physical disk. You can do this in C #, but it will work well in several scripting languages.

If this is a high-end application, look at SATA SSDs. They have read / write speeds significantly higher than hard drives, and data is saved in the event of a power outage, power outage, etc.

+7
source share

If you need a RAM drive, then you really need a block device driver that will do the job in kernel mode. The problem with Dokan is that (a) it is a file system driver, and it requires a lot of extra work for you, (b) it calls your user mode code, and it slows down, (c) it is free stuff that not stable enough for use in production.

0
source share

All Articles