wm: doc

ref: 8409fecf5b74ad0b35b2957e776f2cded239a047
dir: /ramfs.ms/

View raw version
.HTML Memory file system
.TL
Memory file system
.NH
General notes
.LP
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
.CW -p
flag.
It also can end up filling your memory very quickly. be careful.
.NH
using ramfs instead of /tmp by default
.LP
To use ramfs by default for /tmp, 
replace these two lines in $home/lib/profile:
.P1
if(! syscall create /tmp/xxx 1 0666 >[2]/dev/null)
	ramfs	# in case we're running off a cd
.P2
With these lines:
.P1
ramfs
bind /tmp /usr/$user/tmp
.P2
a use case would be if you don't want to use disk.