Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!brl-tgr!tgr!jon@CIT-VAX.ARPA From: jon@CIT-VAX.ARPA (Jonathan P. Leech) Newsgroups: net.lang.c Subject: Re: malloc(), virtual memory Message-ID: <1344@brl-tgr.ARPA> Date: Sat, 7-Sep-85 16:16:44 EDT Article-I.D.: brl-tgr.1344 Posted: Sat Sep 7 16:16:44 1985 Date-Received: Mon, 9-Sep-85 04:29:43 EDT Sender: news@brl-tgr.ARPA Lines: 11 > 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@cit-vax.arpa) __@/