Skip to content

Huge memory usage in Pop OS 22.04 (Ubuntu)

Dear all,

After a month of not using gmsh, I realized that .geo scripts that I used to run in my laptop not longer works and observed a huge memory usage. I have replicated the same behavior using gmsh 4.8.4 installed from ubuntu PPA, binaries of gmsh 4.11.0 and 4.11.1, and compiled versions of 4.8.4 and 4.11.1. However, using gmsh in a Docker container in my laptop and desktop computer with the same SO work as expected.

Below is the ouptut of running the t1.geo example (which was stopped after 1 minute of running) and a screenshot of resources consumption obtained with htop just before stopping the process.

Info    : Running 'gmsh -cpu -2 t1.geo -o test.msh' [Gmsh 4.8.4, 1 node, max. 1 thread] (From start: Wall 0.000603656s, CPU 0.022704s, Mem 36.375Mb)
Info    : Started on Mon Sep 25 22:07:19 2023 (From start: Wall 0.000610958s, CPU 0.022709s, Mem 36.375Mb)
Info    : Reading 't1.geo'... (From start: Wall 0.000630776s, CPU 0.022722s, Mem 36.625Mb)
Info    : Done reading 't1.geo' (From start: Wall 0.00080425s, CPU 0.022838s, Mem 37.5Mb)
Info    : Meshing 1D... (From start: Wall 0.000848373s, CPU 0.022867s, Mem 37.875Mb)
Info    : [  0%] Meshing curve 1 (Line) (From start: Wall 0.00085593s, CPU 0.022872s, Mem 37.875Mb)
Info    : [ 30%] Meshing curve 2 (Line) (From start: Wall 0.00137048s, CPU 0.023215s, Mem 38.375Mb)
Info    : [ 50%] Meshing curve 3 (Line) (From start: Wall 0.00270205s, CPU 0.024103s, Mem 39.375Mb)
Info    : [ 80%] Meshing curve 4 (Line) (From start: Wall 0.0032016s, CPU 0.024436s, Mem 39.625Mb)
Info    : Done meshing 1D (Wall 0.0037285s, CPU 0.001568s) (From start: Wall 0.0045804s, CPU 0.024436s, Mem 40.625Mb)
Info    : Meshing 2D... (From start: Wall 0.00458558s, CPU 0.024436s, Mem 40.625Mb)
Info    : Meshing surface 1 (Plane, Frontal-Delaunay) (From start: Wall 0.00460337s, CPU 0.024436s, Mem 40.75Mb)

gmsh_issue_2

Any ideas about what could be happening or how to further track the issue?

Thanks in advance!

Edited by Hernan Mella