I followed this post to create a ramdisk. After that, when I copy a file to the directory, the file was copied, but memory usage as shown in gnome-system-monitor does not increase. Also, I tried reading the copied file from that directory but the speed is still as slow as reading a disk file. What did I do wrong?
EDIT:
I was wrong and the ramdisk (with either tmpfs or ramfs) had the files in memory. The free -m
command does show this, while the gnome-system-monitor will not show it. Also ramfs popup as a mounted drive in nautilus but tmpfs does not.
However, in my case I need to do chmod on the ramdisk folder before I can copy files in, even if the ramdisk mount folder is in my home directory.
mount -t ramfs -o size=5120M ramfs /media/ramdisk/
but it does not do anything. – shaoyl85 Mar 23 '14 at 03:46free -m
command does show that the file is in ram. – shaoyl85 Mar 23 '14 at 13:07