Re: Problems Building 7.0-Beta3 with -Os

From: Nikos Ntarmos <ntarmos_at_ceid.upatras.gr>
Date: Thu, 6 Dec 2007 08:59:11 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Dec 06, 2007 at 07:14:32AM +0100, Jan Lentfer wrote:
> Nikos Ntarmos schrieb:
> > On Wed, Dec 05, 2007 at 03:50:59PM +0100, Jan Lentfer wrote:
> > > Dear List,
> >
> > > I am having problems compiling 7.0-Beta3 on my VIA C7 system with 1
> > GIG of RAM.
> > > The problem seems to be the memory consumption so I turned off all
> > larger processes. This is what happens:
> >
> > > ===> gnu/usr.bin/cc/libdecnumber (all)
> > > ===> gnu/usr.bin/cc/cc_int (all)
> > > cc -Os -pipe -DIN_GCC -DHAVE_CONFIG_H
> > -DPREFIX=\"/usr/obj/usr/RELENG_7/src/tmp/usr\"
> > -I/usr/obj/usr/RELENG_7/src/tmp/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../cc_tools
> >
> > > -I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../cc_tools
> > -I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc
> > >
> > -I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config
> > -I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include
> >
> > >
> > -I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include
> > -I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber
> >
> > > -I/usr/obj/usr/RELENG_7/src/tmp/legacy/usr/include -c
> > ../cc_tools/insn-attrtab.c
> >
> > > cc1: out of memory allocating 136475392 bytes
> > > *** Error code 1
> >
> > Have you changed any of the limits in /etc/login.conf? What is the
> > output of 'ulimit -a'?
> >
> > \n\n
> Hi Nikos,
> 
> [root_at_epia /usr/RELENG_7/src]# ulimit -a
> core file size (blocks, -c) unlimited
> data seg size (kbytes, -d) 524288
                             ^^^^^^
> file size (blocks, -f) unlimited
> max locked memory (kbytes, -l) unlimited
> max memory size (kbytes, -m) unlimited
> open files (-n) 11095
> pipe size (512 bytes, -p) 1
> stack size (kbytes, -s) 65536
> cpu time (seconds, -t) unlimited
> max user processes (-u) 5547
> virtual memory (kbytes, -v) unlimited
> 
> I haven't changed anything there from the defaults. Memory is unlimited.


Hmmm... 
procs      memory      page                    disks     faults      cpu
r b w     avm    fre  flt  re  pi  po  fr  sr ad0 da0   in   sy  cs us sy id
[...]
1 1 0  623384 174992 43861   0   0   0  92   0   0   0 1299  138 347 43 57  0
>>>> Compilation break
0 0 0   70200 711396 2515   0   0   0 136608   0   9   0 1257  453 281 9 91  0
       ^^^^^^ ^^^^^^

Funny how 'avm' and 'fre' are lower/higher by almost the same amout your
max dataseg is after the compilation break... Do you have a swap
partition? If you do, perhaps you should try bumping kern.maxdsiz and
kern.maxssiz in /boot/loader.conf and see what happens... (e.g. try with
kern.maxdsiz="896M" and kern.maxssiz="256M" with 1G RAM and another 1G
swap). Also, what is the value of kern.maxusers?

\n\n
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Nikos Ntarmos <ntarmos_at_ceid.upatras.gr>

iD8DBQFHV52/m6J1ac+VFgoRAtC8AKCKgfp0OtSL41AOXUtvMRJrRtiePACfdHGs
SiefPVNofzEunVhpL+w2vu0=
=Qz2O
-----END PGP SIGNATURE-----
Received on Thu Dec 06 2007 - 05:59:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:23 UTC