mdconfig via rc.conf

aurfalien aurfalien at gmail.com
Wed Mar 5 18:15:43 UTC 2014


On Mar 5, 2014, at 4:48 AM, RW <rwmaillists at googlemail.com> wrote:

> On Tue, 4 Mar 2014 14:14:11 -0800
> aurfalien wrote:
> 
>> Hi,
>> 
>> Are there any other parameters I would need to setup a ram disk at
>> boot time?
>> 
>> I have this in my rc.conf;
>> 
>> mdconfig_md100=?-t malloc -s 12G?
> 
> It's unlikely that you really want to be using -t malloc, which uses
> wired kernel memory that's never released, and can cause kernel panics
> if not reserved with the -o option.   -t swap will use
> swap-backed memory which is equivalent to an ordinary userland malloc.
> 
> However mdconfig has largely been obsoleted by tmpfs which has its own
> integrated file-system and so doesn't waste memory on storing deleted
> files.
> 

Thanks for this.  I’ll take this under advisement and adjust my implementation.

- aurf

"Janitorial Services"






More information about the freebsd-questions mailing list