Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Help me use all my RAM
@ 1999-02-01  5:00 Jim West
  0 siblings, 0 replies; only message in thread
From: Jim West @ 1999-02-01  5:00 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-01  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-01  5:00 Help me use all my RAM Jim West

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox