Big amount of RAM used when building 1.1.16
sb at waeme.net
Wed Mar 7 16:26:53 UTC 2012
On 07.03.2012, at 19:38, Cyril LAVIER wrote:
> With the last release (1.1.16), I remarked the build process is taking a lot of RAM, ranging from 1800MB to 3500-4000MB.
In current version of rules you have added -j$(NUMJOBS) flag to make, but NUMJOBS is not defined. make -j without args
do not limit number of jobs. So it looks like a fork bomb.
> Thanks my main build machine has 16GB of RAM, but my mips and mipsel build machines (QEMU VMs) only have 256MB of RAM. So the systems went on to crash with an oomkiller. So to be able to build it, I added up to 4GB of swap space.
> I remarked this issue in the following architectures : x86 (32 and 64 bits), powerpc, armel, armhf, mips and mipsel (all the architectures I currently use).
> It occurs for every flavor of the Debian package (light, full and extras) and the memory usage starts to grow when building objs/ngx_modules.c like here with nginx-full : gcc -c -Wall -g -O2 -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/include/libxml2 -I objs -o objs/ngx_modules.o objs/ngx_modules.c
> A table summing up the modules present in every nginx flavour is available here : http://wiki.debian.org/Nginx
> So for the moment, this issue is blocking a build in the debian buildds, and may block many others.
> I'm available to do more tests and provide more information if needed.
> Cyril "Davromaniak" Lavier
> KeyID 59E9A881
> nginx mailing list
> nginx at nginx.org
More information about the nginx