Welcome! Log In Create A New Profile

Advanced

Re: Big amount of RAM used when building 1.1.16

Sergey Budnevitch
March 07, 2012 11:28AM
On 07.03.2012, at 19:38, Cyril LAVIER wrote:

> Hi.
>
> With the last release (1.1.16), I remarked the build process is taking a lot of RAM, ranging from 1800MB to 3500-4000MB.

Hi,

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.

http://anonscm.debian.org/viewvc/collab-maint/deb-maint/nginx/trunk/debian/rules?r1=19814&r2=19817

>
> 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.
>
> Thanks.
>
> --
> Cyril "Davromaniak" Lavier
> KeyID 59E9A881
> http://www.davromaniak.eu
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Big amount of RAM used when building 1.1.16

Cyril LAVIER March 07, 2012 10:40AM

Re: Big amount of RAM used when building 1.1.16

Kartik Mistry March 07, 2012 10:44AM

Re: Big amount of RAM used when building 1.1.16

Sergey Budnevitch March 07, 2012 11:28AM

Re: Big amount of RAM used when building 1.1.16

Cyril Lavier March 07, 2012 01:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready