From: martin.schmidt@cam-comp.de
Subject: Re: Require help with msync() functionality in OpenVMS Cluster env.
Date: 2000/01/13 [thread overview]
Message-ID: <85l10d$7bu$1@nnrp1.deja.com> (raw)
In-Reply-To: y44sdarkwm.fsf@mailhost.neuroinformatik.ruhr-uni-bochum.de
In article <y44sdarkwm.fsf@mailhost.neuroinformatik.ruhr-uni-bochum.de>,
Jan Vorbrueggen <jan@mailhost.neuroinformatik.ruhr-uni-bochum.de>
wrote:
> Roger Tucker <roger.tucker@mci.com> writes:
>
> > I haven't tested this across the cluster but it looks like it would
work.
>
> That's what I think as well. The problems I see are that I'm not sure
that
> $UPDSECW _guarantees_ the data actually is on disk when it returns -
I'm
> pretty sure there isn't one when you use $DELVA on a global section,
e.g.,
> via image rundown - and with the re-mapping of the section by its
other
> users: historically, VMS has had a number of problems with global
sections
> being unmapped and mapped in rapid succession.
>
> Jan
Hi there,
I've tested it on the cluster and it works (I'm the one who works at
the moment on the software mentioned in the first posting).
The mapping is done by mmap() on a file created with creat().
msync() is called with MS_INVALIDATE | MS_SYNC.
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').
In addition we have an performance problem if the changes on the mapped
file are distributed randomly:
VMS seem to make no difference between the Writer (who called msync())
(or any other process on the same node which has mapped the file) and
the Reader on an other node. So if the former Writer reads its own data
a file access is done (but of course it is not necessary).
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 ?
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.
Thanks in advance,
Martin Schmidt
Sent via Deja.com http://www.deja.com/
Before you buy.
next prev parent reply other threads:[~2000-01-13 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 [this message]
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