Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* 4.0G: Insufficient virtual memory to continue compilation?
@ 2002-08-01 18:24 Sylvain Robitaille
  2002-08-01 18:52 ` SUMMARY: " Sylvain Robitaille
  2002-08-02  7:56 ` Emmanuel Choquet
  0 siblings, 2 replies; 3+ messages in thread
From: Sylvain Robitaille @ 2002-08-01 18:24 UTC (permalink / raw)
  To: tru64-unix-managers


[PLEASE NOTE: This message sent to both the Tru64-Unix managers mailing
list, and to the comp.unix.tru64 newsgroup.  I apologize in advance to
those who will see it twice...]

Wow!  I've *never* seen this before...

The system is a DS10, with 512MB of physical memory, and > 1GB swap (2
swap partitions: 521 MB + 512 MB).  I'm trying to compile OpenSSL-0.9.6e
on it and I'm getting this error when it tries to compile
crypto/sha/sha_dgst.c:

  Fatal:  Insufficient virtual memory to continue compilation.

I don't know what to make of it.  I've tried unlimitting all my process
resources, I've checked with both vmstat and monitor and neither are
showing anything that I would consider unusual (sample vmstat output
appended below my signature).

Have any others seen this happen?
Can somebody help me figure out where I should look for at least more
information about this, and preferably some sort of resolution?

(I currently have OpenSSL-0.9.3 on this system, and I've successfully
 compiled OpenSSL-0.9.6e on other Tru64-Unix-4.0[efg] systems without
 problems...)

Thanks in advance...

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca

Systems analyst                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------

(compilation of the file was started after the third line from vmstat
below.  It terminates when runnable processes goes back to 2)
Sorry about the long lines...

: athena[root] /local/pkg/openssl/openssl-0.9.6e; vmstat 1
Virtual Memory Statistics: (pagesize = 8192)
procs    memory         pages                          intr        cpu
r   w  u  act  free wire fault cow zero react pin pout  in  sy  cs  us  sy  id
2 120 28   35K  16K  11K 1235M 104M 415M   3M 434M 559K  54  1K 239   6   4  90
2 120 28   35K  16K  11K  166    5  145    0   15    0  21 704 123   0   2  98
2 120 28   35K  16K  11K  118    0  118    0    0    0  39 218 157   2   2  96
3 121 28   35K  15K  11K  121    0  118    0    2    0  39 617 141  28   5  67
3 121 28   36K  15K  11K  818   41  730    0   49    0  14  97  94  98   2   0
3 121 28   41K  10K  11K  808    4  803    0    5    0  16 703 581  76  24   0
3 121 28   46K 5164  11K 6031    0 6030    0    0    0  25 853 812  62  38   0
3 121 28   51K  514  11K 5323    0 5323    0    0    0  12 650 639  58  42   0
3 119 28   35K  16K  11K 4000    0 3977    0    0    0  14 209 173   6   9  85
2 120 28   35K  16K  11K  128    0  118    0    0    0  13  80  58   1   2  97
2 120 28   35K  16K  11K  119    0  118    0    0    0  11 661  76   0   2  98




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

* SUMMARY: 4.0G: Insufficient virtual memory to continue compilation?
  2002-08-01 18:24 4.0G: Insufficient virtual memory to continue compilation? Sylvain Robitaille
@ 2002-08-01 18:52 ` Sylvain Robitaille
  2002-08-02  7:56 ` Emmanuel Choquet
  1 sibling, 0 replies; 3+ messages in thread
From: Sylvain Robitaille @ 2002-08-01 18:52 UTC (permalink / raw)
  To: tru64-unix-managers

On Thu, 1 Aug 2002, I wrote:

> I'm trying to compile OpenSSL-0.9.6e ... and I'm getting this error
> when it tries to compile crypto/sha/sha_dgst.c:
>
>   Fatal:  Insufficient virtual memory to continue compilation.

Thanks to David J. DeWolfe who pointed me to two archived messages that
discussed similar problems, and to Elizabeth Harvey-Forsythe who helped
others solve this problem before for sending me the answer.

Elizabeth's message to me nicely summarizes the two summaries that David
pointed me at, so I'll repeat it here:

  This is an optimization bug and it's fairly easy to work around.
  When compilation stops, issue the failing command again with -O flag
  replaced with -O0 and it will work.  Return to the top-level directory
  and type "make" again and it will pick up where it left off.

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca

Systems analyst                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------



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

* Re: 4.0G: Insufficient virtual memory to continue compilation?
  2002-08-01 18:24 4.0G: Insufficient virtual memory to continue compilation? Sylvain Robitaille
  2002-08-01 18:52 ` SUMMARY: " Sylvain Robitaille
@ 2002-08-02  7:56 ` Emmanuel Choquet
  1 sibling, 0 replies; 3+ messages in thread
From: Emmanuel Choquet @ 2002-08-02  7:56 UTC (permalink / raw)


Sylvain Robitaille 
it tries to compile
> crypto/sha/sha_dgst.c:
> 
>   Fatal:  Insufficient virtual memory to continue compilation.
> 
> I don't know what to make of it.  I've tried unlimitting all my process
It is probably vm address space needed by the compiler (memory leak
somewhere ?)

Check your own limits :
csh> limit
or
ksh>ulimit -a
default and max values are in proc: subsystem in /etc/sysconfigtab,
and in vm: maxvas parameter as well in version 4.

# sysconfig -q vm | grep -i vas
# sysconfig -q proc | grep -i size

If max values are enough, adjust the your shell values (inherited by
all child processes)
csh> limit datasize unlimited
csh> limit addresspace unlimited
and possibly
csh> limit stacksize unlimited

or

ksh> ulimit -a
will tell you default
ksh> ulimit -aH
will tell you max values
ksh> ulimit -d <maxvalue> -s <maxvalue> -v <maxvalue>

check result
ksh> ulimit -a

if max values are not enough, patch proc and vm ( in V4 ) subsystem -
/etc/sysconfigtab- and reboot

In both shells, do not care with memory (real memory) it is not
enforced at all in version 4, and not inforce by default in V5.
man csh / man ksh for limit / ulimit description
man sys_attrs_vm / man sysattrs_proc for sysconfigtab parameters desc.

Cheers,

Emmanuel


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

end of thread, other threads:[~2002-08-02  7:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-01 18:24 4.0G: Insufficient virtual memory to continue compilation? Sylvain Robitaille
2002-08-01 18:52 ` SUMMARY: " Sylvain Robitaille
2002-08-02  7:56 ` Emmanuel Choquet

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