From owner-freebsd-stable Mon Jan 7 12:26: 0 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mass.dis.org (dhcp45-21.dis.org [216.240.45.21]) by hub.freebsd.org (Postfix) with ESMTP id 6AA0E37B404; Mon, 7 Jan 2002 12:25:52 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.6/8.11.6) with ESMTP id g07KQUX01267; Mon, 7 Jan 2002 12:26:31 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200201072026.g07KQUX01267@mass.dis.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Poul-Henning Kamp Cc: Dan Moschuk , stable@freebsd.org Subject: Re: Hang in md driver In-reply-to: Your message of "Mon, 07 Jan 2002 20:22:36 +0100." <99902.1010431356@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 07 Jan 2002 12:26:30 -0800 From: Michael Smith Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This doesn't seem to address the problem; md(4) shouldn't hang when it runs out of memory. > >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). > > > In message <20020107141157.A1759@spirit.jaded.net>, Dan Moschuk writes: > > > >I can reproduce a hang in the md driver reliably. > > > >Setup: > > > >dd if=/dev/zero of=image bs=32k count=8k > >vnconfig -s labels -c vn0 image > >diskabel -r -w vn0 auto > >newfs vn0c > > > >dd if=image of=/dev/md0 bs=32k count=8k > >mount /dev/md0c /mnt > > > >This works as expected. > > > >If I run bonnie against /mnt with a 64M filesize, everything is fine. > >However, once I up that size to 128M it will hang half way through. > > > >Using an mfs partition instead yields no problems. > > > >I've tested this against a 4.3 (512M ram) and a 4.4 (1.5GB ram) boxes > >respectively and both are affected. top says the bonnie process is in the > >"MD sec" state. > > > >Cheers, > >-Dan > > > > -- > 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-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message