<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Question about $flush in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073519#M24883</link>
    <description>Hein &amp;amp; Hoff,  My programmer has indicated that your answers have satisfied his question. He actually sent that back to me just after Hein's 1st comments.  Thanks again for your help.</description>
    <pubDate>Mon, 15 Oct 2007 08:03:03 GMT</pubDate>
    <dc:creator>Layne Burleson_1</dc:creator>
    <dc:date>2007-10-15T08:03:03Z</dc:date>
    <item>
      <title>Question about $flush</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073515#M24879</link>
      <description>I got a question from a programmer and could not answer him.  Can anyone provide an answer to his question below?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Suppose I have a file, 1000 blocks allocated, end-of-file set to block 1000.&lt;BR /&gt;An exe pgm opens the file, and does block mode read/writes, all between blocks 1 --&amp;gt; 1000.&lt;BR /&gt;The program runs "forever", unless told to shutdown, and then it does a CLOSE&lt;BR /&gt;&lt;BR /&gt;Is there any point in ever calling $flush ?&lt;BR /&gt;It would appear not ....&lt;BR /&gt; - no atributes have changed, at least I don't think so&lt;BR /&gt; - no record activity (all block mode i/o)&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Oct 2007 14:42:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073515#M24879</guid>
      <dc:creator>Layne Burleson_1</dc:creator>
      <dc:date>2007-10-10T14:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Question about $flush</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073516#M24880</link>
      <description>Correct. No point in calling $FLUSH (but little or no harm either) if all you do is block IO write (SYS$WRITE) so a file which is fully allocated aready.&lt;BR /&gt;&lt;BR /&gt;The FLUSH tells RMS to write any dirty buffers to disk.. but there are non if there is no record IO.&lt;BR /&gt;And FLUSH tells RMS to tell the XQP to update teh EOF pointer... which is already where it will be.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Oct 2007 15:03:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073516#M24880</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-10-10T15:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question about $flush</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073517#M24881</link>
      <description>"It depends"...&lt;BR /&gt;&lt;BR /&gt;Flush gets the memory caches sent to disk.&lt;BR /&gt;&lt;BR /&gt;Writes do tend to get out to disk pretty quickly, given typical settings.  But not always: see the RMS deferred write DFW setting, for instance.  There can also potentially be cases where a multi-block write operation gets interrupted.&lt;BR /&gt;&lt;BR /&gt;Recent versions of OpenVMS Alpha and OpenVMS I64 have added this buffer flush into rundown processing, though a hard process stop, hard system halt or hard power-down still won't see a flush.  And might well interrupt a multi-block write sequence.&lt;BR /&gt;&lt;BR /&gt;If you wanted to add support for a consistent on-line backup -- which can be a good idea for applications that run forever -- you'd probably look to use $flush, seize up the application I/O processing just during a copy, then resume...  (And you could implement a "flush fence" where I/Os to blocks that have been copied to the backup can pass through and I/Os above the flush block are held, but that's probably not worth it for a 1000 block transfer.  If this is a far bigger file...)&lt;BR /&gt;&lt;BR /&gt;It's also possible that your programmer might be indirectly asking you about what sort of recovery processing is expected.  If you have a site policy and a default minimum shutdown time set, you might poll for the shutdown logical name, for instance, and use that to trigger a flush...&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Oct 2007 15:10:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073517#M24881</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-10-10T15:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question about $flush</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073518#M24882</link>
      <description>More likely the programmer is simply confused between the Unix / C-rtl semantics for (f)write and (f)flush ( and fsync) and the RMS semantics for SYS$WRITE and SYS$FLUSH.&lt;BR /&gt;&lt;BR /&gt;Unix/C and RMS Record IO may and will buffer.&lt;BR /&gt;&lt;BR /&gt;RMS Block-IO will not.&lt;BR /&gt;&lt;BR /&gt;Burleson, please confirm.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.</description>
      <pubDate>Wed, 10 Oct 2007 15:17:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073518#M24882</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-10-10T15:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Question about $flush</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073519#M24883</link>
      <description>Hein &amp;amp; Hoff,  My programmer has indicated that your answers have satisfied his question. He actually sent that back to me just after Hein's 1st comments.  Thanks again for your help.</description>
      <pubDate>Mon, 15 Oct 2007 08:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073519#M24883</guid>
      <dc:creator>Layne Burleson_1</dc:creator>
      <dc:date>2007-10-15T08:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question about $flush</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073520#M24884</link>
      <description>The programmer has indicated that the answers above helped him.  Thanks again.</description>
      <pubDate>Mon, 15 Oct 2007 08:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/question-about-flush/m-p/5073520#M24884</guid>
      <dc:creator>Layne Burleson_1</dc:creator>
      <dc:date>2007-10-15T08:06:49Z</dc:date>
    </item>
  </channel>
</rss>

