Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Oct 2008 16:52:34 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        ports@freebsd.org, openoffice@FreeBSD.org
Subject:   unreasonable amount of memory used in openoffice build
Message-ID:  <20081019145234.GA67034@onelab2.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
hi,
i noticed on my laptop (Dell X1 w/ 512MB ram - i386, RELENG_7 that
openoffice3 is using an unreasonable amount of memory to build one
of its components (during the build of resourcemodel, the offending
file is unxfbsdi.pro/misc/qnametostr.cxx) which causes the build
machine to spend a huge amount of time swapping.

It seems to be a known issue

http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=215291

and our port includes a workaround that is applied only on amd64
with the following section in the port's Makefile:

    .if ${ARCH} == amd64
    WITHOUT_MOZILLA=        yes
    LIB_DEPENDS+=           boost_regex:${PORTSDIR}/devel/boost
    CONFIGURE_ARGS+=        --with-system-boost=yes #i58343#
    .if (${OSVERSION} >= 700042)
    EXTRA_PATCHES+= ${FILESDIR}/amd64-gcc42-workaround
    .endif
    .endif

I would suggest to apply the fix unconditionally (at least by default,
possibly override it with some build option if needed).
On amd64 according to the above URL the problem is particularly bad
as it requires more than 4GB of memory (RAM/SWAP) but even on i386
the compiler process grows well above 1GB of memory and together
with other stuff (browser, X and more) easily consuming 2-300MB
each, it is not unlikely to hit the swap on many boxes.

Makes sense ?

	cheers
	luigi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081019145234.GA67034>