<br><br>----- Original Message -----<br>From: chris.neale@utoronto.ca<br>Date: Wednesday, October 13, 2010 10:55<br>Subject: [gmx-users] why does trjcat take so much memory?<br>To: gmx-users@gromacs.org<br><br>&gt; I have 28,000 .xtc files, each having a single frame and each <br>&gt; 150K. If I run du -hs on the directory containing these .xtcs, I <br>&gt; get 4.4 GB. Nevertheless, when I run trjcat -f *.xtc -o <br>&gt; ../tot.xtc , my memory consumption goes over 11 GB and then I <br>&gt; run out of available memory.<br>&gt; <br>&gt; Sure, I could find a larger memory system, but why does it take <br>&gt; &gt;=3x more memory than the individual files took in disk space? <br><br>I'd guess that the increased space reflects trjconv converting the compressed .xtc format back to normal precision, and then back to compressed. To cope with all its possibilities, trjconv probably needs to either keep the loaded frames in memory, or use a two-pass algorithm. It does the former.<br><br>Mark<br>