Error " virtual memory exhausted " while building deal.II under Kubuntu 14.04 (32-bit)

422 views
Skip to first unread message

bazz...@gmail.com

unread,
Sep 16, 2015, 4:44:29 PM9/16/15
to deal.II User Group
Dear all,

I'm currently trying to build deal.II under Kubuntu 14.04 on an i5 with 4GB of RAM, using the structure given in the Readme. While the unpacking and cmake command seem to finish correctly, the actual build-process terminates with the following error:

[ 56%] Building CXX object source/base/CMakeFiles/obj_base.debug.dir/tensor_function.cc.o                                                                                                             
virtual memory exhausted: Cannot allocate memory
make[2]: *** [source/lac/CMakeFiles/obj_lac.debug.dir/sparse_matrix.cc.o] Error 1
make[1]: *** [source/lac/CMakeFiles/obj_lac.debug.dir/all] Error 2
make: *** [all] Error 2

The main ingredients of my system are:

- Kubuntu 14.04 (32-bit version)
- GNU make version 3.81
- cmake version 2.8.12

My system also has no limits regarding the maximum memory size. For further information I posted the output of entering "ulimit -a" into the command line:

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 31834
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 31834
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


Has the above mentioned problem anything to with the fact that I run a 32-bit version of Kubuntu?

In case this has a pretty trivial solution I apologize and thank you in advance since I'm kind of lost.

- Bazzog

Timo Heister

unread,
Sep 16, 2015, 5:18:45 PM9/16/15
to dea...@googlegroups.com
Are you compiling in parallel with "make -j"? If yes try to see what
happens when you just type in "make". You can watch the memory
consumption in a second terminal using "top". Is this deal 8.3 or the
current development version?
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Timo Heister
http://www.math.clemson.edu/~heister/

Matthias Maier

unread,
Sep 16, 2015, 5:27:51 PM9/16/15
to dea...@googlegroups.com

On Wed, Sep 16, 2015, at 16:18 CDT, Timo Heister <hei...@clemson.edu> wrote:

> Are you compiling in parallel with "make -j"? If yes try to see what
> happens when you just type in "make". You can watch the memory
> consumption in a second terminal using "top". Is this deal 8.3 or the
> current development version?

"Virtual memory exhausted" means that one of the compilation processes
hit 4GB virtual memory limit of 32bit userlands - this is independent of
the actual physical memory limit. There is not much one can do about
that. Maybe,

- choose another compiler and linker, such as clang and ld.gold that
are not that memory hungry,

- reduce optimization from -O2 to -O1.


Best,
Matthias

bazz...@gmail.com

unread,
Sep 17, 2015, 12:34:23 PM9/17/15
to deal.II User Group
Dear all,

thanks for the quick replies and your effort. I'm sorry I didn't mention the deal2-version - it was the 8.3.0 one. I tried running the make command without parallelization and turned off the optimization but it didn't work.

Since I consider myself an inexperienced user, I kind of chickened out when it came to using a different compiler and went straight to installing a 64-bit version of Kubuntu, where everything went smooth - including compiling and running the first two examples.

If I can contribute anything towards resolving this issue for future installations let me know and I will gladly send you information concerning my environment while trying to build deal2 under the 32-bit version of Kubuntu.

- Bazzog

Guido Kanschat

unread,
Sep 28, 2015, 1:18:33 AM9/28/15
to dea...@googlegroups.com
Dear Bazzog,

have you tried to compile with clang++ instead of g++? In my experience, g++ may need 2GB and more of ram, while clang++ rarely exceeds 500MB.

Best,
Guido

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Prof. Dr. Guido Kanschat
Interdisziplinäres Zentrum für Wissenschaftliches Rechnen
Universität Heidelberg
Im Neuenheimer Feld 368, 69120 Heidelberg
Reply all
Reply to author
Forward
0 new messages