Re: perl malloc slow?

From: David Schultz <das_at_FreeBSD.ORG>
Date: Wed, 7 Jan 2004 20:28:16 -0800
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.
Received on Wed Jan 07 2004 - 19:28:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:36 UTC