[cfarm-users] Please check your memory usage on GCC117
noloader at gmail.com
Sun Oct 13 18:09:11 CEST 2019
On Sun, Oct 13, 2019 at 11:47 AM Noah Misch <noah at leadboat.com> wrote:
> On Sun, Oct 13, 2019 at 09:32:48AM -0400, Jeffrey Walton via cfarm-users wrote:
> > On Sun, Oct 13, 2019 at 9:31 AM Segher Boessenkool <segher at kernel.crashing.org> wrote:
> > > On Sun, Oct 13, 2019 at 08:42:14AM -0400, Jeffrey Walton via cfarm-users wrote:
> > > > $ make
> > > > g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c xts.cpp
> > > > virtual memory exhausted: Cannot allocate memory
> > > > GNUmakefile:1625: recipe for target 'xts.o' failed
> > > > make: *** [xts.o] Error 1
> > My own job was a 'make' which tried to compile 1 c++ source file.
> > As I told you I seriously doubt it took up 8 GB of RAM.
> You can rule that out by setting RLIMIT_AS (e.g. "(ulimit -v 4194304; make)" for
> a 4G limit). It's possible to exceed the limit when RSS is low, but not
> exceeding the limit does confirm every kind of memory usage is low. It would
> not surprise me if some -g2 -O3 compilations take 8G for a single file.
/usr/bin/time -v make xts.o shows the max memory usage at 195K.
More information about the cfarm-users