From owner-freebsd-alpha Sun May 27 19:25:25 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from newsguy.com (smtp.newsguy.com [209.155.56.71]) by hub.freebsd.org (Postfix) with ESMTP id 0FD1537B423 for ; Sun, 27 May 2001 19:25:23 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (ppp180-bsace7001.telebrasilia.net.br [200.181.80.180]) by newsguy.com (8.11.0/8.9.1) with ESMTP id f4S2NvF02429; Sun, 27 May 2001 19:23:59 -0700 (PDT) Message-ID: <3B11B706.E8032F96@newsguy.com> Date: Sun, 27 May 2001 23:25:10 -0300 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: en,pt-BR,pt,en-GB,en-US,ja MIME-Version: 1.0 To: mjacob@feral.com Cc: alpha@FreeBSD.ORG Subject: Re: Latest on ' HEADS UP: loader broken' References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Matthew Jacob wrote: > > Your surmise about loader.4th is correct, I believe. > > The alpha's boot1/loader from after your commits seems to boot my PC164 just > fine with the older loader.4th, but chokes on the new one. > > The relevant diffs in loader.4th are: > -------- > 49a50,52 > > > > 256 dictthreshold ! \ 256 cells minimum free space > > 2048 dictincrease ! \ 2048 additional cells each time > -------- Oh... This is *NOT* what I expected! > Can you say what additional memory load for this, and in whay area, this > should be? If it's stack, then we're probably screwed at the moment. If it's > heap storage, that's probably fairly easy to fix (although I'm kind of > *appalled* that we'd be using > 512KB of heap for the loader). It's allocated from heap. It's a malloc call. I'm not sure what the hell is taking so much space on loader.4th stuff. The initial dictionary size is about 10000*sizeof(void*) (and I note there is a comment to be fixed...). That above increases it by 2048*sizeof(void*) whenever the available space is below 256*sizeof(void*) at the beginning of a new definition. This space does not include the memory used to store the settings read from the loader.conf files. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.secret.bsdconspiracy.net wow regex humor... I'm a geek To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message