Reboots under 6.0 while exercising md device
kris at obsecurity.org
Fri Dec 23 17:21:30 PST 2005
Brooks Davis wrote:
> On Thu, Dec 22, 2005 at 04:11:02PM -0800, James Long wrote:
>>On Wed, Dec 21, 2005 at 08:35:19PM -0800, Brooks Davis wrote:
>>>On Wed, Dec 21, 2005 at 07:50:49PM -0800, James Long wrote:
>>>>What do I need to fix to be able to use a RAM-backed filesystem?
>>> -t type
>>> Select the type of the memory disk.
>>> malloc Storage for this type of memory disk is allocated with
>>> malloc(9). This limits the size to the malloc bucket
>>> limit in the kernel. If the -o reserve option is not
>>> set, creating and filling a large malloc-backed memory
>>> disk is a very easy way to panic a system.
> It allocates kernel address space which is quite scarce on 32-bit
> platforms. I'm not sure if it allocated physical memory. Given the
> panicking behavior, I suspect that is deferred.
Yes, that's why -o reserve is recommended to allocate it all up-front.
> I believe this is mostly accurate. If you're actually out of memory,
> there's a good chance you're going to be swapping anyway so this might
> or might not actually cost you anything. If you have frequent, randomly
> distributed access to the file system it's likely to be expensive. On
> the other hand, if there are hot spots, the swapping may be beneficial
> because it will allow other processes to proceed more efficiently.
Also in the case when you are not swapping, swap-backed md is actually
faster than malloc backed.
Really you need to make sure that whatever you use your system for, you
have enough RAM that you never need to swap. Otherwise you're throwing
away most of your system's performance for no good reason.
More information about the freebsd-questions