From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,820f787511078c56,start X-Google-Attributes: gidfee84,public From: ggrevera@gradin.cis.upenn.edu (George Grevera) Subject: swap/malloc problem Date: 1996/06/07 Message-ID: <4p9kis$6sg@netnews.upenn.edu>#1/1 X-Deja-AN: 159022230 organization: University of Pennsylvania newsgroups: comp.unix.osf.osf1 Hi. I seem to have tons of swap space but can't malloc a measly 135M. The particulars are 96M of physical memory on a DEC 3000 running OSF1 V3.0. I don't have a /sbin/swapdefault file. swapon -s reports: Swap partition /dev/rz1b: Allocated space: 49500 pages (386MB) In-use space: 1 pages ( 0%) Free space: 49499 pages ( 99%) Swap partition /dev/rz3b: Allocated space: 20480 pages (160MB) In-use space: 1 pages ( 0%) Free space: 20479 pages ( 99%) Total swap allocation: Allocated space: 69980 pages (546MB) In-use space: 2 pages ( 0%) Available space: 69978 pages ( 99%) The program that bombs is simply: #include #include #include int main ( int argc, char* argv[] ) { char* cp = malloc(135000000); assert(cp != NULL); } I can't understand why this fails. Thanks for your help. George ggrevera@gradient.cis.upenn.edu