From owner-freebsd-questions@FreeBSD.ORG Wed Mar 5 12:48:43 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 603A3CBF for ; Wed, 5 Mar 2014 12:48:43 +0000 (UTC) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EDC02395 for ; Wed, 5 Mar 2014 12:48:42 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id q58so1125748wes.26 for ; Wed, 05 Mar 2014 04:48:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=99WAGcAoLelXKAqSMm+ZuhUOnI7/B60kCGisc49IAVI=; b=inC4AEY2HB+QHcZCQidMxZvLVoqDUVF7RFQJ91AspzgKTPSLj6hyXCV38a/yzhHiXL pmXjW+FlReSbpcWeygIHl5zzY6VPUvxOY1Zgv2NLa2C8EaChuQ727nhyCulx8egWQkdm X/GG1rYcppmZ/bR94EDVumy8Ayf+OwQzqFW1YcpsqWJVMFAWYY3A6KH0QGoqYdwhApRp nZu2T7jca3oS7O10WibN/DxRNUBRRCJaSiXFYxeWmwd465DseKiVfbOOSBAOsgUvDVy9 UbXnQ9z36vAuta/+Sb9Lmx+UiBXo9QlycxvDSzbflIpa+Vpaj+D8UtpV/U8yG0jof670 te3g== X-Received: by 10.194.59.210 with SMTP id b18mr645856wjr.60.1394023721077; Wed, 05 Mar 2014 04:48:41 -0800 (PST) Received: from gumby.homeunix.com (4e567009.skybroadband.com. [78.86.112.9]) by mx.google.com with ESMTPSA id ux5sm11431526wjc.6.2014.03.05.04.48.39 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 05 Mar 2014 04:48:40 -0800 (PST) Date: Wed, 5 Mar 2014 12:48:37 +0000 From: RW To: freebsd-questions@freebsd.org Subject: Re: mdconfig via rc.conf Message-ID: <20140305124837.426af1bb@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 12:48:43 -0000 On Tue, 4 Mar 2014 14:14:11 -0800 aurfalien wrote: > Hi, >=20 > Are there any other parameters I would need to setup a ram disk at > boot time? >=20 > I have this in my rc.conf; >=20 > mdconfig_md100=3D?-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.