Subject: Re: port-hp700/35237: Intensive compiles (e.g. kernels) result in resource limit
To: None <port-hp700-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: David H. Gutteridge <dhgutteridge@sympatico.ca>
List: netbsd-bugs
Date: 04/28/2007 06:05:03
The following reply was made to PR port-hp700/35237; it has been noted by GNATS.

From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-hp700/35237: Intensive compiles (e.g. kernels) result in resource limit
Date: Sat, 28 Apr 2007 02:04:00 -0400

 Hi,
 
 I noticed this went in recently:
 
 Module Name:	src
 Committed By:	skrll
 Date:		Wed Apr 18 13:39:38 UTC 2007
 
 Modified Files:
 	src/sys/arch/hppa/include: vmparam.h
 
 Log Message:
 Bump the initial stack size limit to bring in line with other ports.
 
 newfs_lfs doesn't core by default now.
 
 So I did a fresh install of 4.99.17 and retested, I've some comments.
 I still see these sorts of problems, but they're not as pronounced now.
 Perl still has errors, for instance, e.g.
 
 ext/threads/t/join........................ok
 ext/threads/t/libc........................Can't call method "join" on an 
 undefined value at ../e
 xt/threads/t/libc.t line 58.
 FAILED--expected 11 tests, saw 7
 ext/threads/t/list........................ok
 ext/threads/t/problems....................ok
 ext/threads/t/stress_cv...................Can't call method "join" on an 
 undefined value at ../e
 xt/threads/t/stress_cv.t line 45.
 FAILED--expected 64 tests, saw 40
 ext/threads/t/stress_re...................Can't call method "join" on an 
 undefined value at ../e
 xt/threads/t/stress_re.t line 50.
 FAILED--expected 64 tests, saw 40
 ext/threads/t/stress_string...............Can't call method "join" on an 
 undefined value at ../e
 xt/threads/t/stress_string.t line 48.
 FAILED--expected 64 tests, saw 40
 ext/threads/t/thread......................# Failed at 
 ../ext/threads/t/thread.t line 153
 FAILED at test 25
 
 (These aren't the same errors I saw from before the newlock2 branch was
 merged.)  Significantly, I now see no "out of memory" errors when I run
 Perl's test suite after invoking "unlimit" in csh.  (I still get seven
 of them if I leave the shell with more restricted resources.  Note by
 comparison on 3.1/i386 I don't get any errors for these tests, without
 recourse to "unlimit".)
 
 I can now successfully build teTeX3, so those errors I reported have
 all vanished.  I do see new errors during installs, where it looks like
 it can't allocate enough memory to process documents.
 
 fmtutil: running `tex -ini   -jobname=tex -progname=tex 
 -translate-file=cp227.tcx tex.ini' ...
 This is TeX, Version 3.141592 (Web2C 7.5.4) (INITEX)
 (/usr/pkg/share/texmf-dist/web2c/cp227.tcx)
 fatal: memory exhausted (xmalloc of 262001 bytes).
 Error: `tex -ini  -jobname=tex -progname=tex -translate-file=cp227.tcx 
 tex.ini' failed
 
 
 fmtutil: running `pdfetex -ini   -jobname=latex -progname=latex 
 -translate-file=cp227.tcx *latex
 .ini' ...
 fatal: memory exhausted (xmalloc of 528440 bytes).
 Error: `pdfetex -ini  -jobname=latex -progname=latex 
 -translate-file=cp227.tcx *latex.ini' faile
 d
 
 
 fmtutil: running `pdfetex -ini   -jobname=etex -progname=etex 
 -translate-file=cp227.tcx *etex.in
 i' ...
 fatal: memory exhausted (xmalloc of 528440 bytes).
 Error: `pdfetex -ini  -jobname=etex -progname=etex -translate-file=cp227.tcx 
 *etex.ini' failed
 
 
 fmtutil: running `pdfetex -ini   -jobname=pdftex -progname=pdftex 
 -translate-file=cp227.tcx *pdf
 tex.ini' ...
 fatal: memory exhausted (xmalloc of 528440 bytes).
 Error: `pdfetex -ini  -jobname=pdftex -progname=pdftex 
 -translate-file=cp227.tcx *pdftex.ini' fa
 iled
 
 
 fmtutil: running `pdfetex -ini   -jobname=pdflatex -progname=pdflatex 
 -translate-file=cp227.tcx
 *pdflatex.ini' ...
 fatal: memory exhausted (xmalloc of 528440 bytes).
 Error: `pdfetex -ini  -jobname=pdflatex -progname=pdflatex 
 -translate-file=cp227.tcx *pdflatex.i
 ni' failed
 
 
 fmtutil: running `pdfetex -ini   -jobname=pdfetex -progname=pdfetex 
 -translate-file=cp227.tcx *p
 dfetex.ini' ...
 fatal: memory exhausted (xmalloc of 528440 bytes).
 Error: `pdfetex -ini  -jobname=pdfetex -progname=pdfetex 
 -translate-file=cp227.tcx *pdfetex.ini'
 failed
 
 
 fmtutil: running `omega -ini   -jobname=omega -progname=omega omega.ini' ...
 fatal: memory exhausted (xmalloc of 16000008 bytes).
 Error: `omega -ini  -jobname=omega -progname=omega omega.ini' failed
 
 
 fmtutil: running `omega -ini   -jobname=lambda -progname=lambda lambda.ini' 
 ...
 fatal: memory exhausted (xmalloc of 16000008 bytes).
 Error: `omega -ini  -jobname=lambda -progname=lambda lambda.ini' failed
 
 
 fmtutil: running `aleph -ini   -jobname=aleph -progname=aleph *aleph.ini' 
 ...
 fatal: memory exhausted (xmalloc of 16000008 bytes).
 Error: `aleph -ini  -jobname=aleph -progname=aleph *aleph.ini' failed
 
 
 fmtutil: running `aleph -ini   -jobname=lamed -progname=lamed *lambda.ini' 
 ...
 fatal: memory exhausted (xmalloc of 16000008 bytes).
 Error: `aleph -ini  -jobname=lamed -progname=lamed *lambda.ini' failed
 
 
 fmtutil: running `pdfetex -ini   -jobname=cont-en -progname=context 
 -translate-file=cp227.tcx *c
 ont-en.ini' ...
 fatal: memory exhausted (xmalloc of 12000008 bytes).
 Error: `pdfetex -ini  -jobname=cont-en -progname=context 
 -translate-file=cp227.tcx *cont-en.ini'
 failed
 
 
 fmtutil: running `pdfetex -ini   -jobname=mptopdf -progname=context 
 -translate-file=cp227.tcx mp
 topdf.tex' ...
 fatal: memory exhausted (xmalloc of 12000008 bytes).
 Error: `pdfetex -ini  -jobname=mptopdf -progname=context 
 -translate-file=cp227.tcx mptopdf.tex'
 failed
 fmtutil: /usr/pkg/share/texmf-var/web2c/metafun.mem installed.
 fmtutil: /usr/pkg/share/texmf-var/web2c/mpost.mem installed.
 fmtutil: /usr/pkg/share/texmf-var/web2c/mf.base installed.
 
 ###############################################################################
 fmtutil: Error! Not all formats have been built successfully.
 Visit the log files in directory
   /usr/pkg/share/texmf-var/web2c
 for details.
 ###############################################################################
 
 This is a summary of all `failed' messages and warnings:
 `tex -ini  -jobname=tex -progname=tex -translate-file=cp227.tcx tex.ini' 
 failed
 `pdfetex -ini  -jobname=latex -progname=latex -translate-file=cp227.tcx 
 *latex.ini' failed
 `pdfetex -ini  -jobname=etex -progname=etex -translate-file=cp227.tcx 
 *etex.ini' failed
 `pdfetex -ini  -jobname=pdftex -progname=pdftex -translate-file=cp227.tcx 
 *pdftex.ini' failed
 `pdfetex -ini  -jobname=pdflatex -progname=pdflatex 
 -translate-file=cp227.tcx *pdflatex.ini' fai
 led
 `pdfetex -ini  -jobname=pdfetex -progname=pdfetex -translate-file=cp227.tcx 
 *pdfetex.ini' failed
 `omega -ini  -jobname=omega -progname=omega omega.ini' failed
 `omega -ini  -jobname=lambda -progname=lambda lambda.ini' failed
 `aleph -ini  -jobname=aleph -progname=aleph *aleph.ini' failed
 `aleph -ini  -jobname=lamed -progname=lamed *lambda.ini' failed
 `pdfetex -ini  -jobname=cont-en -progname=context -translate-file=cp227.tcx 
 *cont-en.ini' failed
 `pdfetex -ini  -jobname=mptopdf -progname=context -translate-file=cp227.tcx 
 mptopdf.tex' failed
 updmap: This is updmap, version 1107552857
 updmap: using transcript file `/usr/pkg/share/texmf-var/web2c/updmap.log'
 
 I decided to build what I could of a full DocBook toolchain too, which
 went fairly well, no related errors to note.  I am continuing to run
 more test compiles of packages.
 
 Dave