<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>You can simply use plain unix cat, that will be much faster and does not use memory.<br>If you want the time of the frames right, run trjconv with the right option on the catted<br>frames.<br><br>Berk<br><br>&gt; Date: Wed, 13 Oct 2010 08:41:17 +0200<br>&gt; From: spoel@xray.bmc.uu.se<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: Re: [gmx-users] why does trjcat take so much memory?<br>&gt; <br>&gt; On 2010-10-13 01.54, chris.neale@utoronto.ca wrote:<br>&gt; &gt; I have 28,000 .xtc files, each having a single frame and each 150K. If I<br>&gt; &gt; run du -hs on the directory containing these .xtcs, I get 4.4 GB.<br>&gt; &gt; Nevertheless, when I run trjcat -f *.xtc -o ../tot.xtc , my memory<br>&gt; &gt; consumption goes over 11 GB and then I run out of available memory.<br>&gt; The program reads the first frame of all files, and since we roughly <br>&gt; have three times compression from xtc to float your figures of 4 vs. 11 <br>&gt; Gb. match perfect.<br>&gt; <br>&gt; Although this is an extreme case, where there is a clear workaround <br>&gt; (more memory) it could be worthwhile looking into an enhancement that <br>&gt; releases the memory again after checking the first frame of all files. <br>&gt; It is anyway impossible to keep 28,000 files open. Please file a <br>&gt; bugzilla as an enhancement.<br>&gt; <br>&gt; Another workaround is to do this in 10 steps or so. Some scripting <br>&gt; required but not too bad.<br>&gt; <br>&gt; &gt;<br>&gt; &gt; Sure, I could find a larger memory system, but why does it take &gt;=3x<br>&gt; &gt; more memory than the individual files took in disk space? Does anybody<br>&gt; &gt; know any commands<br>&gt; &gt;<br>&gt; &gt; This is gromacs 4.0.5 and 4.0.7 and 4.5-beta2.<br>&gt; &gt;<br>&gt; &gt; Thank you,<br>&gt; &gt; Chris.<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; David van der Spoel, Ph.D., Professor of Biology<br>&gt; Dept. of Cell &amp; Molec. Biol., Uppsala University.<br>&gt; Box 596, 75124 Uppsala, Sweden. Phone:        +46184714205.<br>&gt; spoel@xray.bmc.uu.se    http://folding.bmc.uu.se<br>&gt; -- <br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/Search before posting!<br>&gt; Please don't post (un)subscribe requests to the list. Use the <br>&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; Can't post? Read http://www.gromacs.org/Support/Mailing_Lists<br>                                               </body>
</html>