tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Insufficient virtual memory to continue compilation
@ 2001-02-07 14:43 Eiler, James A.
  0 siblings, 0 replies; 2+ messages in thread
From: Eiler, James A. @ 2001-02-07 14:43 UTC (permalink / raw)
  To: tru64-unix-managers

Original question at the bottom.

Many thanks to those who responded:

Elizabeth Harvey-Forsythe
Rasal Kumarage
John Tan
Ric Moore
alan@nabeth.cxo.dec.com
Ram Rao
Danny Petterson
Colin Walters
Paul Roetman
Dr J Pelan

Solution came from Peter Webb at Mathworks:

"Try compiling without using the optimizer, ie. build a debug version by
adding the -g switch to your mcc command. If this works, then the problem
is probably in the interaction between the compiler's generated code and
the Alpha's optimizer."

Next best try came from Colin Walters.  He's drafting a new section to the
Admin Guide and it follows:

Correcting an Apparent Lack of Swap Space

There limits on the amount of virtual memory that an individual
process can use. These limits are not related to the total amount
of available swap space. Consequently, you might see error messages
stating that a process has run out of virtual memory even though
a swap monitor (such as the dxsysinfo utility), does not display a
swap shortage. In some cases, a process might be automatically
killed when it exceeds its allotted virtual memory.

If there is an actual shortage of swap space, you will see one of
the following messages:

 o The following message is displayed whatever swap mode you are
   using:

   swap space below 10 percent free

 o If you are using lazy swap mode, you might see a message similar
   to the following:

   process (pid = 818) killed because of no swap space

  o If you are using eager swap mode, you might see a message
    similar to the following:

   Unable to obtain requested swap space

Use the following command to verify that your swap space is
adequate:

#  swapon -s

The data field titled "In-use space:" informs you if you are using
most of your available swap space.

If you are not using all your available swap space but you are
observing problems running large processes, you might need to
assign more resources to the process. There are several kernel
attributes in the proc subsystem that you can use to control the
per-process virtual memory resources:

  o Stack limit

    The per-proc-stack-size and max-per-proc-stack-size attributes. 

  o Data limit

    The per-proc-data-size and max-per-proc-data-size attributes.	

  o Address space

    The max-per-proc-address-space and per-proc-address-space
    attributes.

If you encounter problems that appear to be due to a lack of memory,
consider the following options:

  o  Refer to the reference page that describes your command shell,
     such as ksh1. Command shells have a limit or ulimit option that
     enables you to modify the virtual memory resources for a process.

  o  Use the sysconfigdb command or the dxkerneltuner GUI to modify
     the value of the per-process resource limits in the
     /etc/sysconfigtab file. Instructions for modifying kernel
     attributes are provided in The System Administration Guide,
     Chapter 4.

  o  See the System Configuration and Tuning guide for information on
     tuning virtual memory (vm) subsystem attributes, such as vm-maxvas.
     All subsystem attributes are documented in sys_attrs(5) and related
     reference pages.

Thanks again to all!

Jim

-----Original Message-----
From: Eiler, James A. [mailto:James.Eiler@alcoa.com]
Sent: Monday, January 29, 2001 5:14 PM
To: tru64-unix-managers@ornl. gov (E-mail)
Subject: Insufficient virtual memory to continue compilation


Hello,

I've got a user running Matlab Version 6 on a DS10 running Tru64 UNIX v5.1,
Patch Kit 2.

When he tries to compile his C applicaiton, he gets the error:

Fatal: Insufficient virtual memory to continue compilation.

I've tried compiling this program as root, thinking root has no virtual
memory limitations... but I get the same results.

Any suggestions?

BTW - I looked at the Kernel Tuner and the parameters for "vm" look askew.
Any ideas why?  Or is this a feature with 5.1?

Thanks!

Jim

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

* SUMMARY: Insufficient virtual memory to continue compilation
@ 2001-04-11 21:11 A. Mahendra Rajah
  0 siblings, 0 replies; 2+ messages in thread
From: A. Mahendra Rajah @ 2001-04-11 21:11 UTC (permalink / raw)
  To: tru64-unix-managers


   I asked the following in this list:

.............................................................
   A user here is attempting to compile some programs but always
   end up with the error message

        Insufficient virtual memory to continue compilation.

   The machine is an ES40 with 1G memory running Tru64 v5.1.

   What parameters affect virutal memory allocation to processes?
   What could I change in sysconfig to allow sufficient virtual
   memory for his compilation?

.............................................................
   I received several replies with useful hints. My sincere
   thanks go to

        Aaron Siebert <aaron.siebert@nagrastar.com>
        John P Speno <speno@isc.upenn.edu>
        Elizabeth Harvey-Forsythe <ehf@media.mit.edu>
        "David J. DeWolfe" <sxdjd@java.sois.alaska.edu>
        "North, Walter" <wnorth@state.mt.us>
        "Thomas M. Payerle" <payerle@physics.umd.edu>
        alan@nabeth.cxo.dec.com
        Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>
        Udo de Boer <Udo.de.boer@ubero.nl>
        "Rao, Ram" <Ram.Rao@COMPAQ.com>
   and  "McCulloch, Alan" <alan.mcculloch@agresearch.co.nz>

   I have included their replies at the end. What worked for this
   user was Elizabeth's and Nikola's suggestion of turning off 
   optimization. 

   ulimit -v revealed 4G virtual memory!

   The swapfile on the system is 3G of which only 5% was reserved
   for use. So, I haven't tried adding another swapfile.  

   Thanks everybody.

   -- mahendra

   All the replies I got:   
.............................................................
From: Aaron Siebert <aaron.siebert@nagrastar.com>

     We have had similiar issues in our environment. We used the
     following settings to solve the problems.

     per-proc-data-size = 10000000000 

     max-per-proc-data-size = 10000000000 

     max-per-proc-address-space = 10000000000 

     per-proc-address-space = 10000000000 

.............................................................
From: John P Speno <speno@isc.upenn.edu>

     You need to get an updated C compiler.

     You can try looking in the 5.1 patch kits, or get the DTK
     version from:

        http://www.tru64unix.compaq.com/dtk/

.............................................................
From: Elizabeth Harvey-Forsythe <ehf@media.mit.edu>

     Turning off optimization will probably resolve the error. 
     ALso you can increase the available meory with the ulimit
     command.

.............................................................
From: "David J. DeWolfe" <sxdjd@java.sois.alaska.edu>

     Obviously a Banner shop, so here's a compile of fgpbody that
     I did on a  2100 with 2G of memory using Oracle 7.3.4:


proc iname=`basename fgpbody .o`.pc ireclen=132 oreclen=132 lines=y 
select_error=no hold_cursor=no  release_cursor=no maxopencursors=255 
maxliteral=160 ltype=none  include=/t05/BANSEED/general/c/ 
include=/t05/BANSEED/general/c/ dbms=v6 sqlcheck=limited

Pro*C/C++: Release 2.2.4.0.0 - Production on Tue Feb 15 18:16:52 2000

Copyright (c) Oracle Corporation 1979, 1996.  All rights reserved.

System default option values taken from: 
/t02/home/oracle/product/rel73440/precomp/admin/pcscfg.h

cc -migrate -I. -I/t05/BANSEED/general/c -I/t05/BANSEED/general/c -O -std1 
-s  -DOPSYS_UNIX -DPLAT_ALPHA -c `basename fgpbody .o`.c
  mv `basename fgpbody .o`.o /t05/BANSEED/general/exe/`basename fgpbody .o`.o
  rm -f fgpbody.c
chmod 644 /t05/BANSEED/general/exe/`basename fgpbody .o`.o


     Don't know if it will help but thought I'd send it along. I
     notice that  we're using the "-migrate" option and you are
     not. It is in the makefile  that we get from SCT.

.............................................................
From: "North, Walter" <wnorth@state.mt.us>

     I had this problem compiling openssl.  I took 4.0G to patch
     kit 2 and the problem went away.

.............................................................
From: "Thomas M. Payerle" <payerle@physics.umd.edu>

     You may wish to look at limits imposed by the ulimit
     command.  (In csh and derivatives, limit builtin command). 
     In particular, see if ulimit -dvm may give a clue.

.............................................................
From: alan@nabeth.cxo.dec.com

	The most common two limits on virtual memory are:

	o  Insufficient per-process virtual memory limits.

	o  Insufficient page/swap space.

	Per-process virtual memory limits come in two values;
	a default and a maximum.  V4 had three pairs of limits;
	stack, data and address space.  I think V5 only has stack
	and data.  These limits will be documented in the sys_attrs_proc
	manual page.  Look for names like max-per-proc... and per-proc...
	Most shells impose an initial limit of the default value (per-
	proc-...), but have built-in commands that raising the value
	to the maximum.  Have the user consult the manual page for
	whatever he is using.

	If raising the value to the maximum doesn't solve the problem,
	then look at page/swap space.  Nearly every page of virtual
	memory that gets created needs a page of page/swap space
	reserved for it.  There is a reservation mode that allows
	not doing this, but it has its own risks.  The two reservation
	modes are documented.  Look for words like "eager" and "lazy".

	If there is sufficient page/swap space for maximum virtual
	memory desired, then you may need to raise the limit.

   Thank you Alan for the explanation. I was not aware of
   sys_attrs_proc manual page. (AMR)  

.............................................................
From: Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>

     Try with/without optimization - it was known to cause this, 
     which is a bug, BTW.

.............................................................
From: Udo de Boer <Udo.de.boer@ubero.nl>

     Take a look at the process limits with "ulimit".

.............................................................
From: "Rao, Ram" <Ram.Rao@COMPAQ.com>

     Add more swap space.  That will fix the problem.

.............................................................
From: "McCulloch, Alan" <alan.mcculloch@agresearch.co.nz>

     have you tried "unlimit" (C-shell only - see ulimit for
     other shells like Bourne) before running the compilation ?

     If that doesn't work then check out sysconfigdb

.............................................................

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

end of thread, other threads:[~2001-04-11 21:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-07 14:43 SUMMARY: Insufficient virtual memory to continue compilation Eiler, James A.
  -- strict thread matches above, loose matches on Subject: below --
2001-04-11 21:11 A. Mahendra Rajah

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