Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: hoffman@xdelta.zko.dec.nospam (Hoff Hoffman)
Subject: Re: Require help with msync() functionality in OpenVMS Cluster env.
Date: 1999/12/21	[thread overview]
Message-ID: <83p18s$lf2$1@mailint03.im.hou.compaq.com> (raw)
In-Reply-To: 385A6F18.277AE9D2@mci.com


In article <385A6F18.277AE9D2@mci.com>, Roger Tucker <roger.tucker@mci.com> writes:
:This may not answer all of your questions but maybe it will be a
:start.  msync() calls one of the sys$updsec() system service
:routines (SYS$UPDSEC(), SYS$UPDSECW(), $UPDSEC_64, or SYS$UPDSEC_64W)
:depending on the flags argument being set to MS_ASYNC...
:If you also specify MS_INVALIDATE msync() uses a VMS LOCK and
:lock value block to notify other nodes that the section is invalid....

  I just looked at the C RTL code for msync and don't see any locking 
  activity...  I didn't follow the sys$updsec* code down deep into the 
  executive, but one of the other locals followed it as far as the XQP...

:The writes/reads on each machine are not synchronised.  That
:is up to your application, but MS_INVALIDATE will force the next
:read on any node to get the new data from disk.  <For example
:does read I/O on the second machine hold-up write I/O on the first
:machine ?>  NO.  That is up to your application.
..

  I've been chatting with the C RTL engineer and with one of the local
  OpenVMS memory management gurus.  I'm completely baffled about the 
  abovementioned solution -- neither the C RTL nor the global section 
  system services handle access to the shared memory from multiple nodes 
  within a cluster.  Across accessors on the same node, yes... 

  My recollection is that shared memory is node-local.  Further, the 
  backing storage accesses "behind" shared memory section updates are 
  not coordinated across cluster nodes, hence updates can be lost...

  Unless there's something really nifty happening deep inside the XQP 
  or the I/O subsystem here that none of us know about or remember, I
  don't see how this approach would be reliable...

  If you handle your own intra-cluster communications, you could work
  out a scheme where the information was distributed to the shared
  memory of other cluster members.  (Or of course -- if this was an 
  OpenVMS Galaxy configuration -- you could use galactic memory...)
  If the above discussion intends to describe the creation of your
  own intra-cluster protocol (based on the lock manager) to coordinate 
  the updates, then that might be feasible...  (I'd want to watch for 
  the potential of some interesting timing issues on the completions 
  of the updates to the backing section.  And I'd take a serious look 
  at just passing over the information, via an application network 
  protocol connection or via RTR or otherwise -- the "fun" part comes 
  in because there isn't really any direct control over when OpenVMS
  decides to write pages of the memory information out to the backing 
  storage, and this I/O can occur in the absence of an $updsec call.)

  We do need to update the msync documentation as well as the various
  shared memory documentation -- I've passed along that report to the
  technical writers for inclusion into the next release of the OpenVMS
  programming concepts and system service reference manuals...

 --------------------------- pure personal opinion ---------------------------
   Hoff (Stephen) Hoffman   OpenVMS Engineering   hoffman#xdelta.zko.dec.com




  reply	other threads:[~1999-12-21  5:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-06  5:00 Require help with msync() functionality in OpenVMS Cluster env Simon Maslin
1999-12-07  5:00 ` Jan Vorbrueggen
1999-12-07  5:00   ` Simon Maslin
1999-12-18  5:00 ` Roger Tucker
1999-12-21  5:00   ` Hoff Hoffman [this message]
1999-12-23  5:00     ` Roger Tucker
1999-12-23  5:00       ` Jan Vorbrueggen
2000-01-13  5:00         ` martin.schmidt
2000-01-14  5:00           ` Jan Vorbrueggen
2000-01-21  5:00           ` Hoff Hoffman
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox