From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,29f41790a6ddcf0f,start X-Google-Attributes: gid1164f8,public From: Jim West Subject: Help me use all my RAM Date: 1999/02/01 Message-ID: <794aqd$dib@news3.newsguy.com>#1/1 X-Deja-AN: 439370570 Organization: http://extra.newsguy.com User-Agent: tin/pre-1.4-981002 ("Phobia") (UNIX) (OSF1/V4.0 (alpha)) Newsgroups: comp.sys.dec I posted this last Friday but my news server never seemed to release it. I'll try again from Newsguy. My apologies if it appears twice. I apparently don't understand how to use all the memory on my Alpha workstations. All are running Digital Unix 4.0d, one has 512 Mb physical memory, the others have 1024 Mb (1 Gb) physical memory as shown by uerf. Running ulimit -a says that the maximum memory size on the smaller memory machine is 508,736 Kb (496.8 Mb) and 1,025,392 Kb (1,001 Mb) on the larger memory machine, and the virtual memory is 1,048,576 Kb (1,024 Mb) on all. getrlimit inside a process says that the current memory limit on the process (rlim_cur in the struct rlimit variable) is 1,073,741,824 b = 1,024 Mb on both machines. Despite this, running malloc((size_t)msize) returns a null pointer if msize equals about 128 Mb or greater on any machine. (The exact value depends on whether I compiled using cc or Gnu g++, but the same binary gave exactly the same results on the different memory-size machines). There were no other user processes running when I ran these tests. Apparently there is some other limit set somewhere that I don't know about, or I am simply mis-using malloc. Could someone please help me access the other 70 to 85 % of my RAM on these machines? Thanks for any help you can provide. -- James C. West (Jim) jwest@emag.ecen.okstate.edu Associate Professor jwest@master.ceat.okstate.edu Electrical and Computer Engineering Oklahoma State University