<div dir="ltr">Hi Peter,<div>in the past I did some tests with the memory analysis, I hope that my answer can be useful.</div><div>First of all, for the memory consumption CP2K reads at /proc/self/statm, which returns the size in memory pages. Then it multiplies this value by the return value of the function getpagesize, which gives the memory in bytes. Finally it prints the value as:</div><div><br></div><div>m_memory+(1024*1024)-1)/(1024*1024)<br></div><div><br></div><div>Therefore, yes, it is Mebibytes. For a better estimation, I also suggest to use the compiler flag  -D__STATM_TOTAL, which give the total memory, i.e. including virtual memory.</div><div><i><br></i></div><div>Concerning the second question, I think the output comes from the rank 0 only...</div><div><br></div><div>Alfio</div><div><br><br>Il giorno giovedì 30 marzo 2017 12:21:08 UTC+2, Peter Gillespie ha scritto:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Hello Everyone,<br><br>I am trying to determine the best memory consumption settings for a large HF/DFT hybrid functional calculation. After discovering that setting the global print level to Medium will print out the (estimated) memory consumption before and after including the HFx module, I've been able to collect some numbers to compare to the max resources available.<br><br>Firstly, just as a sanity check: Am I correct to assume that the MEMORY setting in the CP2K input file and the printouts of memory consumption are written in <i>Mebibytes</i> rather than <i>Megabytes</i>? (as the listed unit is MiB rather than MB)<br><br>Secondly, are the memory consumption data always written as per MPI process, or in total for the entire calculation?<br><br>Kind Regards<br><br>-Peter<br></div></blockquote></div></div>