Related
Quick Links
Have you ever heard of tmpfs in Linux?
It is that small temporary file system residing within memory and installed by default on Linux distributions.
Ultra-fast but usually limited in size.
Can one grow it easily?
Find out & more!
What Istmpfs?
Everything inside of a computer has a certain native speed of operation.
As you might see, it’s about cost versus size versus speed.
There are, however, some technical limitations with this.
Once you shut down your machine, your files will be gone.
An unrecoverable tool crash could be enough to make you have to reset your gear and lose your files.
Then, when you resume your system, you will be able to continue where you left off.
But shutting down while maintaining memory contents is generally not used with computers.
This is whattmpfsis and does: It’s a temporary file system inside your memory.
This is done transparently (without user interaction being necessary).
You might think of thetmpfssystem like a virtual, temporary, volatile drive.
like do not try and modify these.
On this particular system, thetmpfsspace is 32GB, and almost all of that is unused.
The size of thetmpfsis, by default, half of the system memory for given operating systems.
Experience with all of these things helps here.
Doing so is quite easy.
Do not copy the first remarked (#prefixed) line, as that will already be there.
Also, change the2G(2GB) size to your calculated/estimated requirement for tmpfs size.
and that of the typetmpfs, mounted at/dev/shm.
We also set a number of options.
Also, leave (and change/specify the size) thesize=xGparameter.
to find out what went amiss.
For Ubuntu users, there is, however, a possiblenofail bugto be aware of.