malloc(), virtual memory
Jonathan P. Leech
jon at CIT-VAX.ARPA
Sun Sep 8 06:16:44 AEST 1985
> From: Chris Torek
> ... Since as distributed 4.2 has a per-process VM limit of 6M, you
> cannot allocate more than 4M with malloc.
I don't understand how this works. Suppose I allocate two
blocks, one 4M (2^22 bytes) and one 2M (2^21). These are both powers
of two, and I get 6M total. Or does malloc round it up by a
factor of two if you are unlucky enough to request a power of two (not
counting overhead in the free list, of course)?
-- Jon Leech (jon at cit-vax.arpa)
__@/
More information about the Comp.lang.c
mailing list