From owner-freebsd-current@FreeBSD.ORG Fri Jun 17 23:13:53 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8127516A41C for ; Fri, 17 Jun 2005 23:13:53 +0000 (GMT) (envelope-from peadar.edwards@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DC6043D4C for ; Fri, 17 Jun 2005 23:13:53 +0000 (GMT) (envelope-from peadar.edwards@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so569044nzp for ; Fri, 17 Jun 2005 16:13:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lwfzyhQ4S1UHdUT360LwXb56BvanD5e8r8I0oQcvgB3K6o+GxFXlD700glpkLZ5Je7AvZ5CXIMNjzgsJp8mR5VjG0xabaRRzW+wt1GRBymNMMug3HmqywGuB/32Hco3af5BtIQNbOjT5cnoBuXF13bjASf6AwVeoudP6QR+tv/8= Received: by 10.36.23.9 with SMTP id 9mr1758299nzw; Fri, 17 Jun 2005 16:13:52 -0700 (PDT) Received: by 10.36.68.15 with HTTP; Fri, 17 Jun 2005 16:13:52 -0700 (PDT) Message-ID: <34cb7c8405061716139488699@mail.gmail.com> Date: Sat, 18 Jun 2005 00:13:52 +0100 From: Peter Edwards To: Poul-Henning Kamp In-Reply-To: <58747.1119044361@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050617180232.GA25818@freefall.freebsd.org> <58747.1119044361@critter.freebsd.dk> Cc: Peter Edwards , current@freebsd.org Subject: Re: Towards a working "wine". [long] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter Edwards List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2005 23:13:53 -0000 On 6/17/05, Poul-Henning Kamp wrote: > phkmalloc works just fine with a fragmented heap, but allocates too > much memory for the page-map if all the memory is too far away > from "_end". >=20 > The correct (and portable) fix is to give phkmalloc a treee-structure > instead of a linear array to manage the page table. >=20 Sorry, I didn't mean to imply that it was just never going to work, just the structure of the mapping from addresses to the page table: the god-awful hack was the quickest way to test that things would work better in wine. I'll get some decent patches done RSN, but I'd imagine there'll be a minor amount of overhead involved. (eg, ptr2index would never be as simple as it is now) The change would also affect the behaviour of applications in terms of how MAXDSIZ impacted them (it'd be pretty much meaningless for a non-brk-based malloc, but that's not neccessarily a bad thing)