ramfs


Thu Feb 19 17:20:14 PST 2026, jrmu@inter9.org (104.167.242.140)
ramfs

Memory file system

General notes

While ramfs is pretty fast, it's not optimal since it's single threaded. By default it has a maximum size limit of 768MB, if you need more, pass -p flag.

It also can end up filling your memory very quickly. be careful.

using ramfs instead of /tmp by default

To use ramfs by default for /tmp, replace these two lines in $home/lib/profile:

if(! syscall create /tmp/xxx 1 0666 >2/dev/null) ramfs # in case we're running off a cd

With these lines:

ramfs bind /tmp /usr/$user/tmp

a use case would be if you don't want to use disk.



Last modified Thu Feb 19 17:20:14 PST 2026 [ Current version | History | Create a new page ] About the server | Powered by Plan 9