Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Doug Boyd" <d.d.boyd@larc.nasa.gov>
Subject: malloc and 4.0E & F... (was: where is maxdsiz in 5.1?)
Date: Mon, 3 Dec 2001 15:48:02 -0500	[thread overview]
Message-ID: <9ugnsr$4m1$1@reznor.larc.nasa.gov> (raw)
In-Reply-To: ygabshkvxto.fsf@severn.office.aol.com

"Joel Gallun" <snake@severn.office.aol.com> wrote in message
news:ygabshkvxto.fsf@severn.office.aol.com...
> andy thomas <andy@ic.ac.uk> writes:
>
> > So how do I change the maximum memory available for user programs?
>
> vi /etc/sysconfigtab and add something like this to it:
>
> proc:
>     max-per-proc-address-space = 3221225472
>     max-per-proc-data-size = 3221225472
>     per-proc-data-size = 3221225472
>
> then reboot.

In a related question....
I have two XP1000 machines here. One is running Digital Unix 4.0E, the other
is running 4.0F... I am trying to run a program that is requesting about
1.4Gb memory (using a call to malloc). On both machines, I have increased
maxdsiz, maxssiz, maxvas in the /usr/sys/conf/HOSTNAME file, rebuilt the
kernel, moved it to /vunix, and rebooted. I have also changed the variables
listed in the above message in the /etc/sysconfigtab file. This procedure
works on the machine running 4.0E. But, the one running 4.0F always dies on
the call to malloc, regardless of the values in the /usr/sys/conf/HOSTNAME
or /etc/sysconfigtab files...

A colleage of mine wrote a small C program to test this further. The program
cycles through larger and larger memory requests with malloc until the
request fails. The memory request works right up to the hard limits set in
the kernel build on the machine running 4.0E. The memory request on the one
running 4.0F dies around 1 Gb, seemingly regardless of the hard limit
settings... This is a problem because the machine running 4.0F has 2Gb of
RAM and the 4.0E machine only has 512Mb RAM...  Any suggestions on what to
try next to raise the limits on the 4.0F machine? Or, could this be an OS
bug?

Thanks,
Doug
d.d.boyd@larc.nasa.gov






  parent reply	other threads:[~2001-12-03 20:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-30 18:15 Where is maxdsiz in 5.1? andy thomas
2001-11-30 19:54 ` Joel Gallun
2001-12-03 12:16   ` andy thomas
2001-12-03 20:48   ` Doug Boyd [this message]
2001-12-04 13:13     ` malloc and 4.0E & F... (was: where is maxdsiz in 5.1?) Quarter Horseman
read-only archive

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