From owner-freebsd-stable@FreeBSD.ORG Thu Nov 11 14:33:59 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FD2916A4CE for ; Thu, 11 Nov 2004 14:33:59 +0000 (GMT) Received: from peru.gambit.com.ru (peru.gambit.com.ru [194.190.206.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA98F43D2D for ; Thu, 11 Nov 2004 14:33:58 +0000 (GMT) ls+lists.freebsd.org.mailman.listinfo.freebsd-stable93930659@gambit.com.ru) Received: from zen.intranet (unknown [194.190.206.175]) by peru.gambit.com.ru (Postfix) with ESMTP id 01C4F2C560 for ; Thu, 11 Nov 2004 17:33:56 +0300 (MSK) Received: by zen.intranet (Postfix, from userid 441) id D2C10164E68; Thu, 11 Nov 2004 17:33:56 +0300 (MSK) Date: Thu, 11 Nov 2004 17:33:56 +0300 From: ls+lists.freebsd.org.mailman.listinfo.freebsd-stable93930659@gambit.com.ru To: freebsd-stable@freebsd.org Message-ID: <20041111143356.GA705@gambit.com.ru> Mail-Followup-To: freebsd-stable@freebsd.org References: <20041105110830.GP58031@gambit.com.ru> <20041105215427.GA33096@xor.obsecurity.org> <20041109083810.GJ58031@gambit.com.ru> <20041110084132.GA699@gambit.com.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i Subject: Re: 5.3 mdmfs or mdconfig problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 14:33:59 -0000 --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline >>>> This host has 192 MB of RAM and 512 MB of swap. >>>> /sbin/mdmfs -i 4096 -s $1 md $2 (*) >>> You don't have enough RAM in your system to do that. >> I'm running mdmfs WITHOUT "-M" flag. Ronald Klop wrote: > Maybe I'm missing something, but tmpmfs works malloc-based by default: > /etc/rc.d/initdiskless: mount_md() { /sbin/mdmfs -i 4096 -s $1 -M md $2 } I removed "-M" from the mount_md() function definition in /etc/rc.d/initdiskless file, please see [*]. When I run "mdmfs -i 4096 -s 1m md /mnt" command, mdmfs runs "mdconfig -a -t swap -s 1m", but the /mnt is still malloc-backed: FreeBSD i386 5.3-STABLE Nov 11 07:00:00 UTC 2004 panic: kmem_malloc(4096): kmem_map too small: 63737856 total allocated --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFBk3hU99Q+k88BflcRAjsBAKCCc6O9YSFv2JVN/gPaa2ZzAvIeUgCgl/nr 9jw/VOuUKnq8lSqMYEtsAmc= =56IN -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--