Re: armv7hl builds running out of memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 26.07.2017 um 14:10 schrieb Daniel P. Berrange:
On Wed, Jul 26, 2017 at 12:57:32PM +0100, Peter Robinson wrote:
On Wed, Jul 26, 2017 at 12:53 PM, Kaleb S. KEITHLEY <kkeithle@xxxxxxxxxx> wrote:
trying to build ceph-12 on f27 armv7hl.

It builds on everything x86_64, aarch64, s390x, and i686 (w/o java), but
on armv7hl the build fails, reporting out of memory.

...
[100%] Built target ceph-osd
cc1plus: out of memory allocating 11284160 bytes after a total of
58859520 bytes
make[2]: *** [src/CMakeFiles/ceph-dencoder.dir/build.make:64:
src/CMakeFiles/ceph-dencoder.dir/test/encoding/ceph_dencoder.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1626:
src/CMakeFiles/ceph-dencoder.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
...


full log at
https://kojipkgs.fedoraproject.org//work/tasks/4038/20724038/build.log

Is there any way to bump up swap on the builders? Or any trick to get
more memory or run on a particular machine that has more memory?
The ARM builders (both ARMv7 and aarch64) have 24 Gb of memory, which
is more than all other arches which have 10Gb, so I suspect the issue
is not in the build hardware but an issue with ceph itself using (or
leaking) too much memory.
Strangely the error message is complaining about being unable to
allocate 10 MB, with a current total usage of 55 MB, so no where
near the GB of memory, unless there is some other process running
in parallel which is consuming it all.

Regards,
Daniel

It looks like the whole parallelized make-process is hitting the 4 Gbytes limit per process / task on 32 Bit arches…

Have you tried this?

%build
export CFLAGS="echo %{optflags} | sed -e 's!-pipe!!g'"
export CXXFLAGS="$CFLAGS"
…

Sometimes piping from cpp to gcc to as to ld takes too much memory on 32 Bit arches…

Cheers,
  Björn
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux