From owner-freebsd-current Mon Mar 17 11:26:42 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EEF537B401 for ; Mon, 17 Mar 2003 11:26:41 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8002043F93 for ; Mon, 17 Mar 2003 11:26:40 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h2HJQaYl030787; Mon, 17 Mar 2003 20:26:36 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: "John Stockdale" Cc: freebsd-current@FreeBSD.ORG Subject: Re: mdconfig/mdmfs problems -> kernel panic From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 17 Mar 2003 10:57:50 PST." <000b01c2ecb7$1c089510$3d2c0c80@quenya> Date: Mon, 17 Mar 2003 20:26:36 +0100 Message-ID: <30786.1047929196@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <000b01c2ecb7$1c089510$3d2c0c80@quenya>, "John Stockdale" writes: >OS: FreeBSD 5.0-CURRENT, JPSNAP20030314 > >I'm running a Dual Xeon system with 1GB DDRRAM, and trying to create a >ram disk to compile under, specifically to compile the kernel. > >I've tried several methods, involving either creating one 512MB disk >with mdconfig or mdmfs. No matter what options I specify, the mounted >mfs works fine until I start filling it up more. For instance, I can >usually copy the entire /usr/src/sys to /mnt and make depend, but a >while after I make the kernel panics as a result of the ram disk. >(specifically citing malloc errors, one time it speicifically spat out a >number in the order of 251XXXXXX and indicated a malloc bucket limit >exceeded or something like that) quote from md(4): malloc Backing store is allocated using malloc(9). Only one malloc- bucket is used, which means that all md devices with malloc backing must share the malloc-per-bucket-quota. The exact size of this quota varies, in particular with the amount of RAM in the system. The exact value can be determined with vmstat(8). -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message