FreeBSD RamDisk. How?

Hello all!
Trying to organize FFMPEG streaming on RamDisk. There are a lot of small files and a lot of reading of this files. What need to be done in case of using RamDisk for this purpose. Need to improve stability and avoid any troubles when memory is about to be full. Already been reading this https://man.freebsd.org/cgi/man.cgi?mdconfig What need to be done beside configuring MFS. Is there necessity to change something in kernel? Is there need to change any parameters more? Or something else?
 
If this is readonly use then it would be more straightforward to lock the files into memory.

But if you are at risk of running out of memory then as SirDice says tmpfs is your friend.
 
Back
Top