* Poul-Henning Kamp <[EMAIL PROTECTED]> [020314 01:53] wrote:
> In message <[EMAIL PROTECTED]>, Alfred Perlstein writes:
> >
> >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.
> It would be much more valuable to add a 
>       mremap(void *from, void *to, size_t length);
> since that can _solve_ the problem in _all_ cases, rather than
> add more or less byzantine workarounds for silly benchmarks.

You're right that it would be a better optimization, however it's
much more code to write than simply passing a flag down to the code
responsible for the allocation especially when you _know_ you'll
need it.

I may be wrong about MADV_WILLNEED making any difference anyhow. :)

-Alfred Perlstein [[EMAIL PROTECTED]]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to