The memory file system that comes with the CentOS system. This tmpfs is the meaning of the temporary file system.
One
Use the command df-h to see if TMPFS is running.
Filesystem Size used Avail use% mountedon/dev/mapper/volgroup-LogVol01 96G 20G 71G %/tmpfs 3. 8G 4. 0K 3. 8G 1%/dev/shm/dev/vda1 194M 27M 157M %/boot 192.168. 3.75:/opt/NFS 50G 3. 8G 43G 9%/opt/nfs
The line that appears TMPFS indicates that the system has been switched on. The default is to use the/DEV/SHM directory
The general default storage space is the general memory of the whole system. You can set the TMPFS memory size yourself
At this time can go to the/DEV/SHM directory and on the other disk to try the same operation of the IO speed (recommended large files, the effect is obvious), the speed looks like an order of magnitude ah.
Two
If you want to define your own directory and bind it to TMPFS, it's easy
Using the Mount command is OK. Time is urgent. Next, fill in the detailed commands
Linux Memory File System TMPFS