Hi,
I am running a fortran OpenMP application using different number of threads under fixed virtual and stack memory limits (queue system). I am getting the following virtual memory demands:
stack size (kbytes, -s) 262144 (256m)
OMP_STACKSIZE=128m
N threads VIRT
1 1856m
2 2048m
4 2432m
8 3200m
it can be inferred from here a 192m extra virtual memory demand per thread instead of the expected 128m
However in this case:
stack size (kbytes, -s) 131072 (128m)
OMP_STACKSIZE=64m
N threads VIRT
1 1856m
2 1984m
4 2240m
8 2754m
Here we have a 128m extra virtual memory demand per thread.
Any idea about this behaviour and how to infer memory requirements?