wm: doc

ref: 409c6fd627638e7d7fbd0e72b33a2ba4f3186b99
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.