From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,707ba86df1f88f16 X-Google-Attributes: gidf7344,public X-Google-Thread: fc7fa,707ba86df1f88f16 X-Google-Attributes: gidfc7fa,public X-Google-Thread: 1164f8,707ba86df1f88f16 X-Google-Attributes: gid1164f8,public X-Google-Thread: fce85,707ba86df1f88f16 X-Google-Attributes: gidfce85,public From: hoffman@xdelta.zko.dec.nospam (Hoff Hoffman) Subject: Re: Require help with msync() functionality in OpenVMS Cluster env. Date: 1999/12/21 Message-ID: <83p18s$lf2$1@mailint03.im.hou.compaq.com>#1/1 X-Deja-AN: 563585737 Distribution: world References: <82goqs$lti@news.go.dlr.de> <385A6F18.277AE9D2@mci.com> X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 945817692 21986 16.32.80.251 (21 Dec 1999 23:08:12 GMT) Organization: Compaq Computer Corporation Reply-To: hoffman@xdelta.zko.dec.nospam NNTP-Posting-Date: 21 Dec 1999 23:08:12 GMT Newsgroups: vmsnet.vms-posix,comp.os.vms,comp.sys.dec,comp.sys.vms In article <385A6F18.277AE9D2@mci.com>, Roger Tucker 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. 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