![]() Considering this, a size of 512MB might be far too less nowadays, since much more ram is in existence in modern machines and it has become much cheaper. In this case your computer will start to swap from ram to disk, which will make your system crawl to a halt, given you've got a swap partition to begin with, of course. While rebooting (and thus emptying the cache) will fix this, you may run into trouble when a single operation consumes more space to begin with than there's space on tmpfs. The according fstab entry would look like this: tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=512M 0 0 Please note: As tmpfs gets filled up, it will behave as any physical hard drive by giving an 'not enough space' error. If this is the correct solution, how can I transform that mount command into a line in /etc/fstab? You are absolutely right. How To Make A Ram Disk Easily With Tmpdisk For Mac Os If I need it to be permanent, it has to be added to the /etc/fstab configuration file. I have read a solution which states: mkdir -p /tmp/ram sudo mount -t tmpfs -o size=512M tmpfs /tmp/ram/ But in my understanding, this won't be a permanent solution. My question is: Can I set a maximum value for RAM Usage for /tmp? And in that case, what would happen if the maximum amount got exceeded, would it write into the hard-disk drive? I did put tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 in /etc/fstab. My temporary files never get written to the disk.
0 Comments
Leave a Reply. |