From owner-freebsd-arch Mon Apr 8 14:37:35 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 4270137B404 for ; Mon, 8 Apr 2002 14:37:32 -0700 (PDT) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g38LbRsH473066; Mon, 8 Apr 2002 17:37:27 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20020408041726.U53877-100000@mail.chesapeake.net> References: <20020408041726.U53877-100000@mail.chesapeake.net> Date: Mon, 8 Apr 2002 17:37:26 -0400 To: Jeff Roberson , arch@FreeBSD.ORG From: Garance A Drosihn Subject: Re: Removing limits from malloc(9) Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) 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 At 4:25 AM -0400 4/8/02, Jeff Roberson wrote: >The last bit that is missing before we can call malloc/free w/o >Giant is the malloc_type statistics. [...] I have a few options. >The one that I'm leaning towards is only enabling malloc_type >statistics if INVARIANTS is compiled in. Then I could make one >lock per malloc_type. Why would this be tied to INVARIANTS? That option is described as "enable sanity checks". Would it make more sense to have a different kernel option, called MALLOC_STATS or something? Maybe have that as a sysctl, or at least a loader-tunable value? or maybe even an /etc/malloc.conf option... >So, the INVARIANTS only option doesn't work if we want to keep >malloc type limits. I'm wondering how useful this has been in >the past? I have heard from phk that it is useful for md(4) >which could be converted to use a zone. Is there any real need >for these limits other than that? I would like the option of malloc type limits to remain available, although it would be alright if it's only available as some option. I have a feeling that there is something about this that I'm missing, though... -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message