My Gmail doesn&#39;t show the subject line when hitting reply, so apologies for the double post, but I thought I&#39;d put it out there with an amended subject line in case it&#39;s of use to anyone else....<br><div class="gmail_quote">
<br><br><br>
Hi,<br>
<br>
so further to my last email, I have run a quick test on my desktop machine<br>
(4 cores, 12Gb RAM). It seems that when running the parrinello-rahman<br>
barostat with domain decomposition (-dd 2 2 1) that I&#39;m still getting<br>
memory leak (this time with GNU compilers). I followed proper equilibration<br>
with the berendsen barostat (although I didn&#39;t think this was the problem)<br>
and also added the &quot;constraints = all-bonds&quot; line, but this has made no<br>
difference to my results (I&#39;m using &quot;[ constraints ]&quot; in my topology file).<br>
<br>
To give an idea of the rate of memory loss, initial memory consumption was<br>
0.1% total memory per process, which rose steadily to 0.5% total memory<br>
after 5 minutes. After 17mins, memory consumption is 1.7% total memory and<br>
rising. Running with &quot;-pd&quot;, memory usage is constant at 0.1% total memory.<br>
<br>
The system is 328 TIP4P/ice + 64 all-atomic methane. This problem has<br>
occurred for me on different architectures and with different compilers<br>
(and different system sizes). It would be good if anybody familiar with the<br>
source could take a look, or if anybody knows any compiler flags that would<br>
prevent memory leak.<br>
<br>
Thanks,<br>
Steve<br>
<br>
<br>
<br>
On 9 March 2012 13:32, Stephen Cox &lt;<a href="mailto:stephen.cox.10@ucl.ac.uk">stephen.cox.10@ucl.ac.uk</a>&gt; wrote:<br>
<br>
&gt;<br>
&gt;<br>
&gt; On 9 March 2012 13:03, <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a> &lt;<br>
&gt; <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Send gmx-users mailing list submissions to<br>
&gt;&gt;        <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
&gt;&gt;<br>
&gt;&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;&gt;        <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt;&gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt;&gt;        <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a><br>
&gt;&gt;<br>
&gt;&gt; You can reach the person managing the list at<br>
&gt;&gt;        <a href="mailto:gmx-users-owner@gromacs.org">gmx-users-owner@gromacs.org</a><br>
&gt;&gt;<br>
&gt;&gt; When replying, please edit your Subject line so it is more specific<br>
&gt;&gt; than &quot;Re: Contents of gmx-users digest...&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Today&#39;s Topics:<br>
&gt;&gt;<br>
&gt;&gt;   1. Re: GROMACS stalls for NPT simulation when using -npme    and<br>
&gt;&gt;      -dd flags (Mark Abraham)<br>
&gt;&gt;   2. Error Message in Make clean command for installation. (a a)<br>
&gt;&gt;   3. Re: Error Message in Make clean command for installation.<br>
&gt;&gt;      (Mark Abraham)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ----------------------------------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 1<br>
&gt;&gt; Date: Fri, 09 Mar 2012 23:42:33 +1100<br>
&gt;&gt; From: Mark Abraham &lt;<a href="mailto:Mark.Abraham@anu.edu.au">Mark.Abraham@anu.edu.au</a>&gt;<br>
&gt;&gt; Subject: Re: [gmx-users] GROMACS stalls for NPT simulation when using<br>
&gt;&gt;        -npme   and     -dd flags<br>
&gt;&gt; To: Discussion list for GROMACS users &lt;<a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a>&gt;<br>
&gt;&gt; Message-ID: &lt;<a href="mailto:4F59FAB9.6010805@anu.edu.au">4F59FAB9.6010805@anu.edu.au</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
&gt;&gt;<br>
&gt;&gt; On 9/03/2012 9:43 PM, Stephen Cox wrote:<br>
&gt;&gt; &gt; Dear users,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I&#39;m trying to run an isotropic NPT simulation on a cubic cell<br>
&gt;&gt; &gt; containing TIP4P/ice water and methane. I&#39;m using the<br>
&gt;&gt; &gt; Parrinello-Rahman barostat. I&#39;ve been playing around with the<br>
&gt;&gt; &gt; different decomposition flags of mdrun to get better performance and<br>
&gt;&gt; &gt; scaling and have found that the standard -npme (half number of cores)<br>
&gt;&gt; &gt; works pretty well. I&#39;ve also tried using the -dd flags, and I appear<br>
&gt;&gt; &gt; to get decent performance and scaling. However, after a few<br>
&gt;&gt; &gt; nanoseconds (corresponding to about 3 hours run time), the program<br>
&gt;&gt; &gt; just stalls; no output and no error messages. I realise NPT may cause<br>
&gt;&gt; &gt; domain decompositon some issues if the cell vectors vary wildly, but<br>
&gt;&gt; &gt; this isn&#39;t happening in my system.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Has anybody else experienced issues with domain decomposition and NPT<br>
&gt;&gt; &gt; simulations? If so, are there any workarounds? For the moment, I&#39;ve<br>
&gt;&gt; &gt; had to resort to using -pd, which is giving relatively poor<br>
&gt;&gt; &gt; performance and scaling, but at least it isn&#39;t dying!<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I&#39;m using GROMACS 4.5.5 with an intel compiler (I followed the<br>
&gt;&gt; &gt; instructions online, with static linking) and using the command:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; #!/bin/bash -f<br>
&gt;&gt; &gt; # ---------------------------<br>
&gt;&gt; &gt; #$ -V<br>
&gt;&gt; &gt; #$ -N test<br>
&gt;&gt; &gt; #$ -S /bin/bash<br>
&gt;&gt; &gt; #$ -cwd<br>
&gt;&gt; &gt; #$ -l vf=2G<br>
&gt;&gt; &gt; #$ -pe ib-ompi 32<br>
&gt;&gt; &gt; #$ -q infiniband.q<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; mpirun mdrun_mpi -cpnum -cpt 60 -npme 16 -dd 4 2 2<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Below is my grompp.mdp.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt; Steve<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; P.S. I think that there may be an issue with memory leak that occurs<br>
&gt;&gt; &gt; for domain decomposition with NPT. I seem to remember seeing this<br>
&gt;&gt; &gt; happening on my desktop and my local cluster. I don&#39;t see this with<br>
&gt;&gt; &gt; NVT simulations. This would be consistent with the lack of error<br>
&gt;&gt; &gt; message: I&#39;ve just run a short test run and the memory usage was<br>
&gt;&gt; &gt; climbing streadily.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; run control<br>
&gt;&gt; &gt; integrator = md<br>
&gt;&gt; &gt; dt         = 0.002<br>
&gt;&gt; &gt; nsteps     = -1<br>
&gt;&gt; &gt; comm_mode  = linear<br>
&gt;&gt; &gt; nstcomm    = 10<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; energy minimization<br>
&gt;&gt; &gt; emtol  = 0.01<br>
&gt;&gt; &gt; emstep = 0.01<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; output control<br>
&gt;&gt; &gt; nstxout       = 0<br>
&gt;&gt; &gt; nstvout       = 0<br>
&gt;&gt; &gt; nstfout       = 0<br>
&gt;&gt; &gt; nstlog        = 0<br>
&gt;&gt; &gt; nstcalcenergy = 2500<br>
&gt;&gt; &gt; nstenergy     = 2500<br>
&gt;&gt; &gt; nstxtcout     = 2500<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; neighbour searching<br>
&gt;&gt; &gt; nstlist            = 1<br>
&gt;&gt; &gt; ns_type            = grid<br>
&gt;&gt; &gt; pbc                = xyz<br>
&gt;&gt; &gt; periodic_molecules = no<br>
&gt;&gt; &gt; rlist              = 0.90<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; electrostatics<br>
&gt;&gt; &gt; coulombtype = pme<br>
&gt;&gt; &gt; rcoulomb    = 0.90<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; vdw<br>
&gt;&gt; &gt; vdwtype  = cut-off<br>
&gt;&gt; &gt; rvdw     = 0.90<br>
&gt;&gt; &gt; dispcorr = ener<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; ewald<br>
&gt;&gt; &gt; fourierspacing = 0.1<br>
&gt;&gt; &gt; pme_order      = 4<br>
&gt;&gt; &gt; ewald_geometry = 3d<br>
&gt;&gt; &gt; optimize_fft   = yes<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; temperature coupling<br>
&gt;&gt; &gt; tcoupl          = nose-hoover<br>
&gt;&gt; &gt; nh-chain-length = 10<br>
&gt;&gt; &gt; tau_t           = 2.0<br>
&gt;&gt; &gt; ref_t           = 255.0<br>
&gt;&gt; &gt; tc_grps         = system<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; pressure coupling<br>
&gt;&gt; &gt; pcoupl          = parrinello-rahman<br>
&gt;&gt; &gt; pcoupltype      = isotropic<br>
&gt;&gt; &gt; ref_p        = 400.0<br>
&gt;&gt; &gt; tau_p           = 2.0<br>
&gt;&gt; &gt; compressibility = 6.5e-5<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; constraints<br>
&gt;&gt; &gt; constraint_algorithm = shake<br>
&gt;&gt; &gt; shake_tol            = 0.0001<br>
&gt;&gt; &gt; lincs_order          = 8<br>
&gt;&gt; &gt; lincs_iter           = 2<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ; velocity generation<br>
&gt;&gt; &gt; gen_vel  = yes<br>
&gt;&gt; &gt; gen_temp = 255.0<br>
&gt;&gt; &gt; gen_seed = -1<br>
&gt;&gt;<br>
&gt;&gt; You&#39;re generating velocities and immediately using a barostat that is<br>
&gt;&gt; unsuitable for equilibration.<br>
&gt;<br>
&gt;<br>
&gt; Sorry, this is unclear: the system has already been equilibrated using NVT<br>
&gt; then berendsen before using the parrinello-rahman barostat. I use the<br>
&gt; generate velocities options to give me uncorrelated trajectories (I&#39;m<br>
&gt; investigating a stochastic process and want statistics). I appreciate the<br>
&gt; concerns about poor equilibration, but I&#39;m pretty sure this isn&#39;t the case<br>
&gt; - in my experience, poor equilibration usually results in a fairly prompt<br>
&gt; crash, with a lot of error messages and step.pdb files. Furthermore, the<br>
&gt; cell volume seems stable over the time that I manage to simulate,<br>
&gt; suggesting equilibration is OK.<br>
&gt;<br>
&gt;<br>
&gt;&gt; You&#39;re using an integration step that<br>
&gt;&gt; requires constraints=all-bonds but I don&#39;t see that.<br>
&gt;<br>
&gt;<br>
&gt; Could you clarify this point for me please? Thanks.<br>
&gt;<br>
&gt;<br>
&gt;&gt; You may have better<br>
&gt;&gt; stability if you equilibrate with Berendsen barostat and then switch.<br>
&gt;&gt; I&#39;ve seen no other reports of memory usage growing without bounds, but<br>
&gt;&gt; if you can observe it happening after choosing a better integration<br>
&gt;&gt; regime then it suggests a code problem that wants fixing.<br>
&gt;&gt;<br>
&gt;<br>
&gt; I can run some tests on my desktop with a smaller system and report if I<br>
&gt; see memory loss.<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Mark<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; Thanks for your quick response<br>
&gt;<br>
&gt;<br></div><br>