Liggghts compilation failed because "virtual memory exhausted"

Submitted by bonnefoy on Tue, 09/25/2012 - 20:50

Hello everybody,

I am trying to install CFD-DEM on my Ubuntu 12.04 machine (via VirtualBox).

So far, I seemingly installed with success OpenFoam 2.1.1 and git-cloned LIGGGHTS 2.1.2 as well as CFDEMcoupling 2.1.1.

My problem is that the compilation of LIGGGHTS through command
"cfdemCompLIG" failed with the error message "virtual memory exhausted: Cannot allocate memory". The original OS of my computer is Windows; I installed VirtualBox and Ubuntu 12.04 on it, without trouble.

I increased the RAM allocated to the VirtualBox machine to 1.5 GB. Each time I increase this value, the compilation process goes a little but further but I have now reached the maximum RAM I can have.

Is that normal ? What is the minimum RAM requirement to compile LIGGGHTS ?

If this is not normal, please find attached the log file.

If it helps, I can add that I followed the instructions and modified the ~/.bashrc file as below:

#================================================#
#- source cfdem env vars
export CFDEM_VERSION=PUBLIC
export
CFDEM_PROJECT_DIR=$HOME/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_SRC_DIR=$CFDEM_PROJECT_DIR/src/lagrangian/cfdemParticle
export CFDEM_SOLVER_DIR=$CFDEM_PROJECT_DIR/applications/solvers
export CFDEM_DOC_DIR=$CFDEM_PROJECT_DIR/doc
export CFDEM_UT_DIR=$CFDEM_PROJECT_DIR/applications/utilities
export CFDEM_TUT_DIR=$CFDEM_PROJECT_DIR/tutorials
export
CFDEM_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_bashrc=$CFDEM_SRC_DIR/etc/bashrc
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/LIGGGHTS-PUBLIC/src
export CFDEM_LIGGGHTS_MAKEFILE_NAME=fedora_fpic
export CFDEM_LPP_DIR=$HOME/mylpp/src
export CFDEM_PIZZA_DIR=$HOME/mylpp/src
. $CFDEM_bashrc
#================================================#

Compared to the
system/files/githubAccess_public_0.pdf
, the only change I brought concerns the LPP and PIZZA paths.

I did not change the content of
$HOME/CFDEM/../../../cfdemParticle/etc/bashrc file.

When I run the command cfdemSysTest , I can read that 7
out of 7 paths are set correctly.

Can anybody give me a hint ?

Best regards, Olivier

cgoniva's picture

cgoniva | Thu, 09/27/2012 - 15:07

Hi!

I never tried virtual box - probably somebody else in the forum?

why not use an USB with ubuntu? or Wundows ubuntu dual boot?

Cheers,
Chris

bonnefoy | Tue, 10/09/2012 - 19:48

Thanks for your reply, Chris.
I will make a new installation and try it again.
Will consider the USB idea too.

Have a good day,
Olivier

Olivier Bonnefoy

antonm5012 | Thu, 05/08/2014 - 18:16

Hi all,

I have exactly the same problem having 2GB RAM.
Similar configuration - Windows host, Ubuntu guest via VirtualBox.
Will try to increase up to 3.2GB for VirtualBox (leaving only ~1GB for poor windows)

Regards,
Anton

antonm5012 | Fri, 05/09/2014 - 15:02

Hi everyone,

From my understanding I am not the only one having difficulties in compiling CFDEM on VirtualBox.
For those who are interested in VirtualBox there is a "chipset" option.
After changing its value to "ICH9" instead of default "PIIX3" the compilation went through successfully.
Have no idea why, but it worked (on 2GB of RAM).