From: hoffman@xdelta.zko.dec.nospam (Hoff Hoffman)
Subject: Re: Require help with msync() functionality in OpenVMS Cluster env.
Date: 2000/01/21 [thread overview]
Message-ID: <86aj0d$d6l$1@mailint03.im.hou.compaq.com> (raw)
In-Reply-To: 85l10d$7bu$1@nnrp1.deja.com
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
prev parent reply other threads:[~2000-01-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
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 [this message]
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