Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DU 4.0D/Fortran "failed to set heap start"
@ 1998-08-23  4:00 srlnrow
  1998-08-23  4:00 ` Stefan Schwarzer
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: srlnrow @ 1998-08-23  4:00 UTC (permalink / raw)


I could use some help with an explanation for the following error message

  /sbin/loader: Fatal Error: set_program_attributes failed to set heap start

This is from a Fortran program compiled and linked on a DPWS 600au with 1 GB of
physical memory - but not requiring anywhere near that amount. The program runs
fine if array sizes are kept small (to about 75 MB total VM requirement).
Increasing the array dimensions by about 30% and recompiling produces the crash
above.

We using Digital Fortran (f77 -what says DIGITAL Fortran 77 Driver V5.1-8 and
DIGITAL Fortran 77 V5.1-156-3882K). The machine is configured with the
"deferred" mode of swap space allocation, so there's no reservation of swap
going on.

It's our first DU box (we have mostly Suns) and we just accepted the default
factory installation. I've trolled the documentation CD and various man pages
looking for clues - but am really out of my depth. The manuals say that the
maximum amount of virtual address space available to a process is 1 GB,
so what's the problem?

-- 
Roger Williams, Institute of Geological & Nuclear Sciences, New Zealand
R.Williams
@gns.cri.nz : DEC 3000/300 AXP - OpenVMS v6.2



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: DU 4.0D/Fortran "failed to set heap start"
  1998-08-23  4:00 DU 4.0D/Fortran "failed to set heap start" srlnrow
@ 1998-08-23  4:00 ` Stefan Schwarzer
  1998-08-24  4:00 ` Richard M. Alderson III
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Stefan Schwarzer @ 1998-08-23  4:00 UTC (permalink / raw)


In comp.sys.dec srlnrow@alpha.gns.cri.nz.nospam wrote:
> I could use some help with an explanation for the following error message

>   /sbin/loader: Fatal Error: set_program_attributes failed to set heap start

> This is from a Fortran program compiled and linked on a DPWS 600au with 1 GB of
> physical memory - but not requiring anywhere near that amount. The program runs
> fine if array sizes are kept small (to about 75 MB total VM requirement).
> Increasing the array dimensions by about 30% and recompiling produces the crash
> above.

You might want to check whether your shell imposes per process limits,
which can be removed by 'unlimit'. In our case (tcsh, but csh should
be the same or at least similar) we have

23:19 jaguar_sts:~/test> limit
cputime         unlimited
filesize        unlimited
datasize        131072 kbytes
stacksize       2048 kbytes
coredumpsize    512 kbytes
memoryuse       119712 kbytes
vmemoryuse      1048576 kbytes
descriptors     4096 
23:20 jaguar_sts:~/test> unlimit
23:21 jaguar_sts:~/test> limit
cputime         unlimited
filesize        unlimited
datasize        1048576 kbytes
stacksize       32768 kbytes
coredumpsize    unlimited
memoryuse       119688 kbytes
vmemoryuse      1048576 kbytes
descriptors     4096 

vmemoryuse and datasize might be the culprits.  Another land, another
time, I saw somebody pointing to 'dxkerneltuner' in a similar context,
but I did not check into that.

Hope that helps, 

Stefan.

-- 
Stefan Schwarzer                office:  +49-(0)711-685-7606   fax: x-3658 
Uni Stuttgart, ICA 1            e-mail:          sts@ica1.uni-stuttgart.de
Pfaffenwaldring 27              pgp public key available on request/finger 
70569 Stuttgart, Germany             http://www.ica1.uni-stuttgart.de/~sts



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: DU 4.0D/Fortran "failed to set heap start"
  1998-08-23  4:00 DU 4.0D/Fortran "failed to set heap start" srlnrow
  1998-08-23  4:00 ` Stefan Schwarzer
  1998-08-24  4:00 ` Richard M. Alderson III
@ 1998-08-24  4:00 ` Jeffrey J. Potoff
  1998-09-01  4:00 ` Matt Phelps
  3 siblings, 0 replies; 7+ messages in thread
From: Jeffrey J. Potoff @ 1998-08-24  4:00 UTC (permalink / raw)


srlnrow@alpha.gns.cri.nz.nospam wrote:
> 
> I could use some help with an explanation for the following error message
> 
>   /sbin/loader: Fatal Error: set_program_attributes failed to set heap start

This means you're trying to allocate too much memory. 
 
> 
> This is from a Fortran program compiled and linked on a DPWS 600au with 1 GB of
> physical memory - but not requiring anywhere near that amount. The program runs
> fine if array sizes are kept small (to about 75 MB total VM requirement).
> Increasing the array dimensions by about 30% and recompiling produces the crash
> above.

Check your array size carefully and check to make sure there is no user 
defined limit for the maximum amount of memory you can use.  Also, was th
machine free, or were other people running jobs on it that needed lots 
of memory ?

Jeff



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: DU 4.0D/Fortran "failed to set heap start"
  1998-08-23  4:00 DU 4.0D/Fortran "failed to set heap start" srlnrow
  1998-08-23  4:00 ` Stefan Schwarzer
@ 1998-08-24  4:00 ` Richard M. Alderson III
  1998-08-24  4:00 ` Jeffrey J. Potoff
  1998-09-01  4:00 ` Matt Phelps
  3 siblings, 0 replies; 7+ messages in thread
From: Richard M. Alderson III @ 1998-08-24  4:00 UTC (permalink / raw)


We had exactly the same problem with a very array in a Fortran program.  The
issue is the default values for datasize limits in the kernel.  I increased it
to the 1GB maximum by inserting the line

	ulimit -d 1048576

into /etc/profile, and the line

	limit datasize 1048576 kbytes

into /etc/csh.login.  This ensures that each user gets the value set properly.

I'm sure that there is some kernel build parameter that would set the default
appropriately, but I've not got the time to track it down myself, and what I
have works.
-- 
Rich Alderson			Last LOTS Tops-20 Systems Programmer, 1984-1991
				Current maintainer, MIT TECO EMACS (v. 170)
last name @ XKL dot COM		Chief systems administrator, XKL LLC, 1998-now



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: DU 4.0D/Fortran "failed to set heap start"
  1998-08-23  4:00 DU 4.0D/Fortran "failed to set heap start" srlnrow
                   ` (2 preceding siblings ...)
  1998-08-24  4:00 ` Jeffrey J. Potoff
@ 1998-09-01  4:00 ` Matt Phelps
  1998-09-03  4:00   ` Mark & Suzanne (gcs might work)
  3 siblings, 1 reply; 7+ messages in thread
From: Matt Phelps @ 1998-09-01  4:00 UTC (permalink / raw)
  To: srlnrow

srlnrow@alpha.gns.cri.nz.nospam wrote:
> 
> I could use some help with an explanation for the following error message
> 
>   /sbin/loader: Fatal Error: set_program_attributes failed to set heap start
> 
(snippage)

In case you haven't got an answer yet, this is a shell stacksize
limit. Try 'unlimit stacksize' (with the c-shell) and your
programs should run. You can re-build the kernal with a higher
default stacksize by changing the 'dflssiz' parameter in the 
configuration file (usually /sys/conf/SYSTEM-NAME), and doing
a /usr/sbin/doconfig -c (config file name).

-- 
Matt Phelps
System Administrator
Harvard - Smithsonian Center for Astrophysics
mphelps@cfa.harvard.edu
http://cfa-www.harvard.edu



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: DU 4.0D/Fortran "failed to set heap start"
  1998-09-01  4:00 ` Matt Phelps
@ 1998-09-03  4:00   ` Mark & Suzanne (gcs might work)
  1998-09-04  4:00     ` Matt Phelps
  0 siblings, 1 reply; 7+ messages in thread
From: Mark & Suzanne (gcs might work) @ 1998-09-03  4:00 UTC (permalink / raw)


Matt Phelps wrote:
> 
> srlnrow@alpha.gns.cri.nz.nospam wrote:
> >
> > I could use some help with an explanation for the following error message
> >
> >   /sbin/loader: Fatal Error: set_program_attributes failed to set heap start
> >
> (snippage)
> 
> In case you haven't got an answer yet, this is a shell stacksize
> limit. Try 'unlimit stacksize' (with the c-shell) and your
> programs should run. You can re-build the kernal with a higher
> default stacksize by changing the 'dflssiz' parameter in the
> configuration file (usually /sys/conf/SYSTEM-NAME), and doing
> a /usr/sbin/doconfig -c (config file name).

You are still living in the dark ages!

Digital UNIX has not require a kernel build to change such things in 
a very long time. Get you kernel parameters in the ball park by setting
maxusers the first time you build the kernel at install time. From then
on the only thing that should wast your time build kernels for is
patches that constain kernel objects or modules and new device types.
Otherwise  use what ever poison you prefer to update /etc/sysconfigtab.
Digital Support have been swaying people from direcly editing it with
vi though this is certianly valid their primary concern is people
screwing up the format.
	/usr/bin/X11/dxkerneltuner or via CDE if you like that sort of
things or /sbin/sysconfigdb
use sysconfig -q proc to get the correct names eg.
proc:
max-proc-per-user = 2059
max-threads-per-user = 2059
per-proc-stack-size = 33554432
max-per-proc-stack-size = 33554432
per-proc-data-size = 134217728
max-per-proc-data-size = 1073741824
max-per-proc-address-space = 1073741824
per-proc-address-space = 1073741824
autonice = 0
autonice-time = 600
autonice-penalty = 4
open-max-soft = 4096
open-max-hard = 4096
ncallout_alloc_size = 8192
round-robin-switch-rate = 0
round_robin_switch_rate = 0
sched-min-idle = 0
sched_min_idle = 0
give-boost = 1
give_boost = 1
maxusers = 256
task-max = 2069
thread-max = 4136
num-wait-queues = 256
num-timeout-hash-queues = 256
enable_extended_uids = 1
enhanced-core-name = 1
enhanced-core-max-versions = 16

create a file with
proc:
	per-proc-stack-size = 33554432
	max-per-proc-stack-size = 33554432

Obviously setting what ever values you need
then
	sysconfigdb -m -f /tmp/params.db

That will add or merge the values for proc: into /etc/sysconfigtab
Then reboot. Here is a usefull script I write a million times

#!/bin/ksh
#
echo
"#######################################################################"
echo "### Parameters for node $( /bin/uname -n ) on $( /bin/date
+"%Y:%m:%d:%T"
)"
echo
"#######################################################################"
for i in $( sysconfig -s | cut -d: -f1 )
do
echo "##############################"
echo "#"
sysconfig -q $i | awk '{if ( $0 ~ /:/ ) {printf "%s\n", $0 } else  {
printf "\t%s\n", $0} }'
done


	Cheers
		Mark :)



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: DU 4.0D/Fortran "failed to set heap start"
  1998-09-03  4:00   ` Mark & Suzanne (gcs might work)
@ 1998-09-04  4:00     ` Matt Phelps
  0 siblings, 0 replies; 7+ messages in thread
From: Matt Phelps @ 1998-09-04  4:00 UTC (permalink / raw)


Mark & Suzanne (gcs might work) wrote:
> 
> Matt Phelps wrote:
> >
> > srlnrow@alpha.gns.cri.nz.nospam wrote:
> > >
> > > I could use some help with an explanation for the following error message
> > >
> > >   /sbin/loader: Fatal Error: set_program_attributes failed to set heap start
> > >
> > (snippage)
> >
> > In case you haven't got an answer yet, this is a shell stacksize
> > limit. Try 'unlimit stacksize' (with the c-shell) and your
> > programs should run. You can re-build the kernal with a higher
> > default stacksize by changing the 'dflssiz' parameter in the
> > configuration file (usually /sys/conf/SYSTEM-NAME), and doing
> > a /usr/sbin/doconfig -c (config file name).
> 
> You are still living in the dark ages!
> 
> Digital UNIX has not require a kernel build to change such things in
> a very long time. 
(snip)

Mark is, of course, correct. It's a holdover from my VMS days,
when a lot more tweaking of such hard parameters was common. Heck,
I even use 'ed' to edit the config file! ;-) (Where's TECO
when you need it ;-).

-- 
Matt Phelps
System Administrator
Harvard - Smithsonian Center for Astrophysics
mphelps@cfa.harvard.edu
http://cfa-www.harvard.edu



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1998-09-04  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-23  4:00 DU 4.0D/Fortran "failed to set heap start" srlnrow
1998-08-23  4:00 ` Stefan Schwarzer
1998-08-24  4:00 ` Richard M. Alderson III
1998-08-24  4:00 ` Jeffrey J. Potoff
1998-09-01  4:00 ` Matt Phelps
1998-09-03  4:00   ` Mark & Suzanne (gcs might work)
1998-09-04  4:00     ` Matt Phelps

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