Cleaning /tmp on boot

Lars Kristiansen lars+lister.freebsd at adventuras.no
Thu Feb 24 22:50:00 GMT 2005


Lowell Gilbert skrev:

>"Lars Kristiansen" <lars+lister.freebsd at adventuras.no> writes:
>
>  
>
>>>Alternatively, is there something similar to tmpfs from Linux
>>>available on FreeBSD?  I've heard about mfs but it statically
>>>allocates memory from the VM, I'd prefer if allocation was done only
>>>as needed on demand.
>>>      
>>>
>>Found these:
>>http://docs.freebsd.org/cgi/mid.cgi?41E01905.3040200
>>http://docs.freebsd.org/cgi/mid.cgi?45044.1105365790
>>
>>So swap backed memory disks only swaps to disk when necessary.
>>
>>Wish that could have been mentioned in the handbook or man-pages.
>>Should I try to PR that? Someone more knowledgeable will do it I hope :-)
>>    
>>
>
>--- src/share/man/man4/md.4.ORIG   Thu Feb 24 11:51:37 2005
>+++ src/share/man/man4/md.4        Thu Feb 24 11:51:51 2005
>@@ -50,7 +50,7 @@
> This allows for mounting ISO images without the tedious
> detour over actual physical media.
> .It Cm swap
>-Backing store is allocated from swap space.
>+Backing store is allocated from virtual memory space.
> .El
> .Pp
> For more information, please see
>
>Feel free to PR.
>  
>
Thank you, done. (or tried to)
http://www.freebsd.org/cgi/query-pr.cgi?pr=78041


--
Still dark.
Hilsen Lars



More information about the freebsd-questions mailing list