From owner-cvs-all Sun Sep 20 19:40:52 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA05306 for cvs-all-outgoing; Sun, 20 Sep 1998 19:40:52 -0700 (PDT) (envelope-from owner-cvs-all) Received: from word.smith.net.au (castles236.castles.com [208.214.165.236]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA05257; Sun, 20 Sep 1998 19:40:35 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (LOCALHOST [127.0.0.1]) by word.smith.net.au (8.9.1/8.8.8) with ESMTP id TAA02481; Sun, 20 Sep 1998 19:46:01 -0700 (PDT) (envelope-from mike@word.smith.net.au) Message-Id: <199809210246.TAA02481@word.smith.net.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Doug Rabson cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libstand ufs.c In-reply-to: Your message of "Sun, 20 Sep 1998 14:42:21 PDT." <199809202142.OAA15594@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 20 Sep 1998 19:46:00 -0700 From: Mike Smith Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > dfr 1998/09/20 14:42:21 PDT > > Modified files: > lib/libstand ufs.c > Log: > Allocate disk buffers using a custom allocator. The standard allocator > fragments extremely badly if disk buffers are freed back into the main > heap and the alpha bootstrap has a restricted address space which just > ran out :-(. If anyone has a generic malloc implementation that optimises for minimum heap usage, robustness and small code footprint that we can use, I'd love to see it. The Mach-derived allocator we're currently using is snot, and I'd dearly love to kill it. The allocation profile of the bootstrap is moderately messy; there's a lot of small object allocation/freeing (mostly strings containing pathnames, etc.) and some large objects (eg. UFS blocks, ether datagrams, etc.) of disparate sizes. Size is pretty important, eg. comparing with the libc malloc: word:/tmp>size *.o text data bss dec hex 464 16 12 492 1ec alloc.o 6688 32 88 6808 1a98 malloc.o -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com