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: 1164f8,707ba86df1f88f16 X-Google-Attributes: gid1164f8,public From: hoffman@xdelta.zko.dec.nospam (Hoff Hoffman) Subject: Re: Require help with msync() functionality in OpenVMS Cluster env. Date: 2000/01/21 Message-ID: <86aj0d$d6l$1@mailint03.im.hou.compaq.com>#1/1 X-Deja-AN: 575891278 Distribution: world References: <82goqs$lti@news.go.dlr.de> <385A6F18.277AE9D2@mci.com> <83p18s$lf2$1@mailint03.im.hou.compaq.com> <386114C9.7DA49293@mci.com> <85l10d$7bu$1@nnrp1.deja.com> Followup-To: comp.os.vms X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 948490061 13525 16.32.80.251 (21 Jan 2000 21:27:41 GMT) Organization: Compaq Computer Corporation Reply-To: hoffman@xdelta.zko.dec.nospam NNTP-Posting-Date: 21 Jan 2000 21:27:41 GMT Newsgroups: comp.os.vms,comp.sys.dec Follow-ups set to comp.os.vms. In article <85l10d$7bu$1@nnrp1.deja.com>, martin.schmidt@cam-comp.de writes: :But under some strange circumstances it seems that updates aren't seen :by a reader on the other node of the cluster (as you said: it may be :not 'guaranteed'). I'd assume it was unreliable... I'd also assume that the harder you push it (eg: constrained memory, heavy system load), the more problems and the more data inconsistencies you will see across the cluster members -- shared memory is node-specific, and is not cluster-aware. :If I'm not wrong, in a one node system msync() is not necessary at all, :to see changes from one process made by an other to the shared memeory :(mapped file) ? Am I ? You will want to look at the discussion over in Ask The Wizard topic (2681), particularly if this code will ever operate on an SMP system. :Has anyone any ideas/hints on performance relevant arguments of the :creat()-function or anything else ? :And is there a chance that the data is on disk after the msync() call :has returned or a way to 'guarantee' this. On the same node, you will get consistent behaviour, assuming you have the memory barriers (qv: 2681) working... The problem, as I have been saying for a while now, is that there is no synchronization of the contents of the global section and the backing storage across nodes within an OpenVMS Cluster -- each node has its own page tables, and can manipulate and update these and the associated backing storage in a fashion that is completely unsynchronized with the other cluster member nodes. Specific suggestions: o use the system services. (The C stuff does works fine, but it maps a UNIX memory managment model onto the OpenVMS model, and this can potentially get confusing.) The system services also make it rather more clear what is going on here, and what options are available. o use one section per node, and use some other means of skulking the data over to the other node. (eg: middleware, lock manager value blocks, IP or DECnet network transport, RTR, etc...) o Use RMS files and RMS Global Buffers. This gets you completely out of the buffer management and backing storage management, and this also operates across all nodes within an OpenVMS Cluster. You _might_ get away with one global section writer and multiple read-only accessors (readers on other cluster members), but I'm not certain that this will be entirely reliable... (ie: You might just see stale data, rather than corrupted data.) Far and away the easiest approach is RMS... Otherwise, you get to design, implement, and debug what RMS (or RTR) provides for you... --------------------------- pure personal opinion --------------------------- Hoff (Stephen) Hoffman OpenVMS Engineering hoffman#xdelta.zko.dec.com