From owner-freebsd-arch Tue Oct 15 13:18:55 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D112137B401 for ; Tue, 15 Oct 2002 13:18:54 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9A6C43E6E for ; Tue, 15 Oct 2002 13:18:53 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id g9FKIjIw039166; Tue, 15 Oct 2002 22:18:46 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Andrew Gallatin Cc: freebsd-arch@FreeBSD.ORG Subject: Re: when will malloc(9) be giant-free? In-Reply-To: Your message of "Tue, 15 Oct 2002 14:45:13 EDT." <15788.25145.767671.511786@grasshopper.cs.duke.edu> Date: Tue, 15 Oct 2002 22:18:45 +0200 Message-ID: <39165.1034713125@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <15788.25145.767671.511786@grasshopper.cs.duke.edu>, Andrew Gallatin writes: > >I'm trying to call malloc from a mostly giant-free driver, and dying >like this: > >panic(c0346b0e,c0346c57,c03584e6,138,c037caa0) at panic+0x11f >_mtx_assert(c037cc60,1,c03584e6,138,158) at _mtx_assert+0xbc >kmem_malloc(c0832078,21000,1,d8e287ec,c02db8ea) at kmem_malloc+0x2d >page_alloc(0,21000,d8e287df,1,23459e4) at page_alloc+0x27 >uma_large_malloc(21000,1,c02db064,6,c4435cfc) at uma_large_malloc+0x5a >malloc(20fff,c037af20,1,d8e2883c,c4741873) at malloc+0xcd >__gm_arch_kernel_malloc(20fff,0,d8e2884c,c47435d1,20fff) at __gm_arch_kernel_malloc+0x12 >[...] >Yes, I whined about this a few months ago in relation to mbuf allocation >at interrupt time (I was porting the ethernet emulation side of our >driver to -current). /me clears his throat and puts a bass-voice on the choir. -- 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-arch" in the body of the message