<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I don't know why this post didn't make it to the list but I'm sending it again:<div><br></div><div><br><div><div>On Oct 13, 2010, at 08:37 , Roland Schulz wrote:</div><blockquote type="cite"><br><br><div class="gmail_quote">On Wed, Oct 13, 2010 at 2:05 AM,  <span dir="ltr">&lt;<a href="mailto:hess@sbc.su.se">hess@sbc.su.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
I think there is no fundamental reason why we can not flush<br>
only at checkpointing. I don't recall what the originial motivation<br>
was for flushing every frame. This was probably done before we use<br>
the whole output file list in the checkpointing code, so the only<br>
reason might have been because of checkpointing.<br>
I like that I always have every frame immediately, but having it<br>
up to at most 15 minutes ago is also fine.<br>
The question is if we should only flush at checkpointing by default<br>
or have a switch or some automated setting (we could even catch<br>
a signal to flush immediately).<br></blockquote><div>What would you prefer?&nbsp;</div><div>I think we should try to keep it as simple as possible (I think we already have to many features too&nbsp;seldom&nbsp;used with the potential to introduce bugs). Thus I'm not sure whether automated setting or signal is the best way to go. I don't see a good reason to flush thus I would go with a hidden option to enforce flushing. But that's just my 2c.</div>

<div><br></div></div></blockquote><div><br></div><div><br></div><div><div><div>It was actually fsyncing that was a big issue. All files are (or should be) fsync()-ed at checkpoint, right after they've been flushed. On filesystems like AFS the flush doesn't do very much by itself: the situation is therefore already as you describe - and it works fine.</div><div><br></div><div>BTW When mdrun catches a TERM/INT signal, a checkpoint is written as soon as possible (i.e. at the next neighbour-searching steap) which flushes and fsyncs. So, in principle, we have all the functionality we need.</div><div><br></div><div>Sander</div></div><div><br></div></div><div><br></div><div><br></div></div></div></body></html>