← Back to team overview

dolfin team mailing list archive

Re: [Question #158097]: solver memory error

 

Are you running 64 bit Python? Are there other libraries that is not compiled 
with 64 bits that you are using? Can you trace the memory use while the system 
gets solved. Just hit 'top' in a terminal window.

Johan

On Wednesday May 18 2011 13:05:59 Siva Shankar Rudraraju wrote:
> New question #158097 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/158097
> 
> Hi,
> 
> While trying to solve a coupled physics problem with 9 DOF per node,  I
> encounter the  "OSError: [Errno 12] Cannot allocate memory" during
> solver.solve() function call. Given that there are only 30,000 DOF in the
> system, I am not sure how a LU factorization (mumps) step can run out of
> memory on a 24GB RAM system (and Xeon processor with 12MB L3 cache). Is
> this possibly a memory leak?.
> 
> I am copying the error trace below.
> 
> Thanks,
> Shiva Rudraraju
> 
> Process 3: Applying boundary conditions to linear system.
>   Process 0: Applying boundary conditions to linear system.
>   Process 0: Applying boundary conditions to linear system.
> Traceback (most recent call last):
>   File "tumor11.py", line 346, in <module>
>     solver.solve(problem, uc.vector())
>   File "tumor11.py", line 72, in J
>     form_compiler_parameters=self.ffc_parameters)
>   File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/dolfin/fem/assem
> ble.py", line 100, in assemble common_cell=common_cell)
>   File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/dolfin/fem/form.
> py", line 34, in __init__ (self._compiled_form, module, self.form_data) =
> jit(form, form_compiler_parameters, common_cell) File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/dolfin/compilemo
> dules/jit.py", line 51, in mpi_jit output = local_jit(*args, **kwargs)
>   File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/dolfin/compilemo
> dules/jit.py", line 114, in jit return jit_compile(form, parameters=p,
> common_cell=common_cell) File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/ffc/jitcompiler.
> py", line 64, in jit return jit_form(object, parameters, common_cell)
>   File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/ffc/jitcompiler.
> py", line 113, in jit_form module = instant.import_module(jit_object,
> cache_dir=cache_dir) File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/instant/cache.py
> ", line 149, in import_module module, moduleids =
> check_memory_cache(moduleid)
>   File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/instant/cache.py
> ", line 81, in check_memory_cache moduleid = moduleid.signature()
>   File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/ffc/jitobject.py
> ", line 66, in signature swig_signature    = str(get_swig_version())
>   File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/instant/config.p
> y", line 10, in get_swig_version result, output = get_status_output("swig
> -version")
>   File
> "/home/rudraa/Work/FEniCS/dev/lib/python2.6/site-packages/instant/output.p
> y", line 72, in get_status_output pipe = Popen(cmd, shell=True, cwd=cwd,
> env=env, stdout=PIPE, stderr=STDOUT) File
> "/usr/lib/python2.6/subprocess.py", line 633, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.6/subprocess.py", line 1049, in _execute_child
>     self.pid = os.fork()
> OSError: [Errno 12] Cannot allocate memory


References