* Where is maxdsiz in 5.1?
@ 2001-11-30 18:15 andy thomas
2001-11-30 19:54 ` Joel Gallun
0 siblings, 1 reply; 5+ messages in thread
From: andy thomas @ 2001-11-30 18:15 UTC (permalink / raw)
We recently upgraded the memory in an XP1000 to 2 GB but Tru64 only
appears to see 1 GB of this (typing limit -h in a C shell reports datasize
as being 1048576 kbytes).
In the past on DU 4.0x systems I've altered the maxdsiz keyword in the
/sys/conf/HOSTNAME file and recompiled the kernel. Trying to set maxdsiz
to 2 GB in this file and recompiling on this 5.1 system reports this
parameter as a syntax error. On looking in the documentation, one is
advised against doing kernel tuning with the /sys/conf/HOSTNAME file and
instead to use the dxkerneltuner. But there is no mention of the maxdsiz
keyword in the generic subsystem and on trying the search option to find
this, the kernel tuner abruptly terminates.
So how do I change the maximum memory available for user programs?
Andy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Where is maxdsiz in 5.1?
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 ` malloc and 4.0E & F... (was: where is maxdsiz in 5.1?) Doug Boyd
0 siblings, 2 replies; 5+ messages in thread
From: Joel Gallun @ 2001-11-30 19:54 UTC (permalink / raw)
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.
--
Joel Gallun
Compaq support team @ America Online
http://www.tux.org/~joel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Where is maxdsiz in 5.1?
2001-11-30 19:54 ` Joel Gallun
@ 2001-12-03 12:16 ` andy thomas
2001-12-03 20:48 ` malloc and 4.0E & F... (was: where is maxdsiz in 5.1?) Doug Boyd
1 sibling, 0 replies; 5+ messages in thread
From: andy thomas @ 2001-12-03 12:16 UTC (permalink / raw)
On 30 Nov 2001, Joel Gallun wrote:
> 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.
Many thanks for this information - it has done the trick. I used the
values you quoted above (3221225472) as we also have 1.5 GB of swap in
addition to 2 GB of memory.
Andy
^ permalink raw reply [flat|nested] 5+ messages in thread
* malloc and 4.0E & F... (was: where is maxdsiz in 5.1?)
2001-11-30 19:54 ` Joel Gallun
2001-12-03 12:16 ` andy thomas
@ 2001-12-03 20:48 ` Doug Boyd
2001-12-04 13:13 ` Quarter Horseman
1 sibling, 1 reply; 5+ messages in thread
From: Doug Boyd @ 2001-12-03 20:48 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: malloc and 4.0E & F... (was: where is maxdsiz in 5.1?)
2001-12-03 20:48 ` malloc and 4.0E & F... (was: where is maxdsiz in 5.1?) Doug Boyd
@ 2001-12-04 13:13 ` Quarter Horseman
0 siblings, 0 replies; 5+ messages in thread
From: Quarter Horseman @ 2001-12-04 13:13 UTC (permalink / raw)
Hi Doug,
You may need to raise some or all of the following in proc:
max-per-proc-address-space
max-per-proc-data-size
max-per-proc-stack-size
per-proc-address-space
per-proc-data-size
per-proc-stack-size
And check the following in vm:
vm-maxvas
QH
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-12-04 13:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` malloc and 4.0E & F... (was: where is maxdsiz in 5.1?) Doug Boyd
2001-12-04 13:13 ` Quarter Horseman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox