From: Roger Tucker <roger.tucker@mci.com>
Subject: Re: Require help with msync() functionality in OpenVMS Cluster env.
Date: 1999/12/18 [thread overview]
Message-ID: <385A6F18.277AE9D2@mci.com> (raw)
In-Reply-To: 82goqs$lti@news.go.dlr.de
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 and
depending on if the section is a 32 bit or 64 bit section.
You can read about theses services from the system service
reference manual. But they flush any modified pages out to the
disk file.
If you also specify MS_INVALIDATE msync() uses a VMS LOCK and
lock value block to notify other nodes that the section is invalid.
This is done by taking out an exclusive lock, incrementing a
sequence number in the lock value block, and converting the
block back to NL mode. The other processes that have the global
section mapped wait on a blocking-ast. If they don't have AST's
disabled they will invalidate their copy of the global section
and fault it from the disk the next time they read it. Two locks
are used in real-life (a door bell lock and sequence number lock)
to avoid a problem of a process being hung or having AST's off.
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 hope this is enough information to help.
Thanks,
Roger Tucker - MCIWorldCom
next prev parent reply other threads:[~1999-12-18 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 [this message]
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
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