RAMDrive, RAMDisk, TMPFS, Linux, mount

Remount existing RAM disk and set size to 6 gigs:
mount -o remount,size=6G /dev/shm
Remount existing RAM disk, set size to 6GB and grand all users rw access
mount -o remount,size=6G,mode=0777 /dev/shm
Maka a directory:
mkdir /space
mount 50% of RAM into accesible RAMDisk:
mount /t tmpfs tmpfs /space
Mount 6GB RAM to accesibe memory:
mount -t tmpfs -o size=6G,nr_inodes=6k,mode=0700 tmpfs /space
Test RAMdrive speed:
hdparm -tT /space
Related links:
https://www.cyberciti.biz/tips/what-is-devshm-and-its-practical-usage.html
https://www.cyberciti.biz/faq/howto-create-linux-ram-disk-filesystem/

No comments: