As you know, the access speed of a memory is very important. The bottlenecks generated in the past between magnetic memories and processors meant that a faster buffer memory had to be included, RAM. Later, with the advancement of microprocessors came the cache, even faster to offer a buffer between the RAM and the CPU registers. More recently SSD hard drives have appeared, which are faster than magnetic-mechanical HDDs as they are based on flash memory.
Gigabyte thought a few years ago to create a hard drive with RAM (a RAMDisk called i-RAM), a very fast memory compared to hard drives, but something similar happened to what happened to Ageia with its PhysX card. They didn't really gel and ended up disappearing from the market, and now with SSDs (and RAM-based SSDs) it makes even less sense. What is it about? Well, it is basically using RAM memory to store data as if it were a hard disk, so access is much faster.
Well, you don't need an i-RAM or an SSD, or anything like that to speed up transfers and access to the directories, files or programs you want. For that you can create a RAMDisk on your Linux distro. The only requirement is to have enough RAM,> 4GB recommended, to reserve a bit of it to use as an ultra-fast "hard disk". Something like what some GPUs for laptops did with Share Memory, but in this case for your data.
To create this memory, you must calculate the memory you have, since if you exhaust all or a large part of it you will run out of RAM for the purposes for which it was created and it will be stupid. For example, if you have 8GB of RAM, you could take 2GB for the RAMDisk. I repeat, his thing is that you have more RAM, if you have 2GB or 4GB it may not be worth it ... (remember in "size =" specify the size, in my example I have opted for 1024MB, that is, 1GB, or you can also use "G" instead of "M" to specify it in GB) Once you know this, we get to work with the following steps from your terminal:
mkdir /tmp/ramdisk mount -t tmpfs none /tmp/randisk -o size=1024M
Now you have 1GB reserved in your RAM so you can add whatever you want to the ramdisk directory that we have created. Do performance tests and you will see how it is faster everything you have in it ... If you want, you can create the partition in your RAM with another file system other than tmpfs, such as ext4 or ramfs.
And if you want the montage input to remain… Be careful !! The data that you save here if you turn off the PC or restart will be lost, but the input will remain pso that you don't have to create the partition with every startup with the following trick to add it to the partition table (fstab) so that it is created automatically (use your favorite text editor to edit the input: vi, nano, gedit ...):
gedit /etc/fstab Y en el fichero de texto que se abre crea la siguiente entrada sin comillas "tmpfs /mnt/ramdisk tmpfs nodev, nosuid, noexec, nodiratime, size=1024M 0 0"
IMPORTANT: Remember that your data will disappear when you restart or shut down computer, since RAM is volatile memory. So whatever you want to keep, make a copy of it on a partition on your hard drive.