Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2002 01:28:47 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        David Greenman <dg@root.com>, John Indra <maverick@office.naver.co.id>, freebsd-current@FreeBSD.ORG
Subject:   Re: malloc() and the stock Perl in -CURRENT (and -STABLE)
Message-ID:  <20020314092847.GL74829@elvis.mu.org>
In-Reply-To: <41161.1016088004@critter.freebsd.dk>
References:  <20020313222518.J27616@nexus.root.com> <41161.1016088004@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
* Poul-Henning Kamp <phk@critter.freebsd.dk> [020313 22:43] wrote:
> 
> But if somebody wants to try to code this optimization, I'll be more
> than happy to review the result.  I just don't expect it to do much
> in "real-life" as opposed to "silly benchmark" situations.

Have you thought about issuing a madvise(MADV_WILLNEED) after the
brk/mmap call in malloc, at least doing it when it's called via
realloc, this might get rid of the superfolous (sp?) page faults
that David Greenman reported.

-Alfred

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020314092847.GL74829>