I've some software that wants access to a very fast disk. I could buy an SSD, but my server has approx 64GB of ram spare. Is it possible to use a portion of that unused RAM to create and mount a virtual disk?
I'm using either Ubuntu or CentOS.
|
feedback
|
|
Tmpfs might help:
You'll lose whatever is there if you reboot, though. It may be okay for temporary files, but it is not a replacement for an SSD. | |||
|
feedback
|
|
Any unused RAM will be automatically allocated for caching reads / buffering writes - and you get the added advantage that its automatically flushed to disk. Certainly there will be times (e.g. after a reboot) when the cache might benefit from being primed - but that's just a matter of reading all the files. | |||
|
feedback
|
|
You could probably use Alternatively you can create a custom ramdisk this way:
As | |||
|
feedback
|