Re: [patch 2/3] MAP_NOZERO - implement sys_brk2()

From: Ulrich Drepper
Date: Wed Jun 27 2007 - 01:02:56 EST


On 6/26/07, Davide Libenzi <davidel@xxxxxxxxxxxxxxx> wrote:
I acutally have the code for it, but I never posted it since it did not
receive a too warm review (and the only user was the fdmap thingy).

Only user of sys_indirect? There will be quite a few right away.
Every syscall that returns a file descriptor needs O_CLOEXEC support
(socket, pipe, epoll_create, ...)


OTOH glibc could implement __morecore using mmap(MAP_NOZERO), and hence
brk2() would not be needed, no?

No. mmap calls create individual VMAs which gets expensive. There
are also some hardware drivers which get more expensive the more VMAs
there are. I want to go away as much as possible from mmap for
malloc.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/