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!linus!philabs!prls!amdimage!amdcad!amd!vecpyr!lll-crg!gymble!umcp-cs!seismo!brl-tgr!tgr!jon@cit-vax From: jon@cit-vax (Jonathan P. Leech) Newsgroups: net.lang.c Subject: Re: malloc(), virtual memory Message-ID: <1285@brl-tgr.ARPA> Date: Fri, 6-Sep-85 11:07:20 EDT Article-I.D.: brl-tgr.1285 Posted: Fri Sep 6 11:07:20 1985 Date-Received: Tue, 10-Sep-85 20:13:24 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) __@/