- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Question about $flush
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 07:42 AM
тАО10-10-2007 07:42 AM
Question about $flush
Suppose I have a file, 1000 blocks allocated, end-of-file set to block 1000.
An exe pgm opens the file, and does block mode read/writes, all between blocks 1 --> 1000.
The program runs "forever", unless told to shutdown, and then it does a CLOSE
Is there any point in ever calling $flush ?
It would appear not ....
- no atributes have changed, at least I don't think so
- no record activity (all block mode i/o)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 08:03 AM
тАО10-10-2007 08:03 AM
Re: Question about $flush
The FLUSH tells RMS to write any dirty buffers to disk.. but there are non if there is no record IO.
And FLUSH tells RMS to tell the XQP to update teh EOF pointer... which is already where it will be.
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 08:10 AM
тАО10-10-2007 08:10 AM
Re: Question about $flush
Flush gets the memory caches sent to disk.
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.
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.
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...)
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 08:17 AM
тАО10-10-2007 08:17 AM
Re: Question about $flush
Unix/C and RMS Record IO may and will buffer.
RMS Block-IO will not.
Burleson, please confirm.
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2007 01:03 AM
тАО10-15-2007 01:03 AM
Re: Question about $flush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2007 01:06 AM
тАО10-15-2007 01:06 AM