From owner-freebsd-stable@FreeBSD.ORG Wed Jan 7 20:28:19 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE1FF16A4CE; Wed, 7 Jan 2004 20:28:19 -0800 (PST) Received: from VARK.homeunix.com (adsl-68-121-150-113.dsl.pltn13.pacbell.net [68.121.150.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 955BF43D2D; Wed, 7 Jan 2004 20:28:18 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.10/8.12.10) with ESMTP id i084SHHh002037; Wed, 7 Jan 2004 20:28:17 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.10/8.12.10/Submit) id i084SGBD002036; Wed, 7 Jan 2004 20:28:16 -0800 (PST) (envelope-from das@FreeBSD.ORG) X-Authentication-Warning: VARK.homeunix.com: das set sender to das@FreeBSD.ORG using -f Date: Wed, 7 Jan 2004 20:28:16 -0800 From: David Schultz To: Poul-Henning Kamp Message-ID: <20040108042816.GA1813@VARK.homeunix.com> Mail-Followup-To: Poul-Henning Kamp , Alexander Leidinger , Peter Jeremy , stable@FreeBSD.ORG, current@FreeBSD.ORG References: <20040107133930.47eb851b@Magellan.Leidinger.net> <31178.1073481069@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31178.1073481069@critter.freebsd.dk> cc: Alexander Leidinger cc: stable@FreeBSD.ORG cc: current@FreeBSD.ORG cc: Peter Jeremy Subject: Re: perl malloc slow? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 04:28:20 -0000 On Wed, Jan 07, 2004, Poul-Henning Kamp wrote: > One of the assumptions I made ten years ago, was that we would expose > more of the possible VM gymnastics to userland and in particular it > was my expectation that it would be cheap for a process to do some > sort of page-flipping or page-exchange. > > This has not materialized in the meantime, and VMwizards have > generally been a lot less than enthusiastic about it when I have > tried to coax them into providing this sort of thing. > > The result is that applications which use realloc() a lot suffer. FWIW, you can do the required gymnastics with mmap() as long as the mapped region is backed by a file. There were some discussions about a year ago about how to extend that idea to swap-backed storage. As I recall, both dillon and wollman wanted it to happen but disagreed about the API, so one nasty bikeshed later, it all evaporated.