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 X-Google-Thread: fce85,707ba86df1f88f16 X-Google-Attributes: gidfce85,public X-Google-Thread: fc7fa,707ba86df1f88f16 X-Google-Attributes: gidfc7fa,public From: Roger Tucker Subject: Re: Require help with msync() functionality in OpenVMS Cluster env. Date: 1999/12/23 Message-ID: <386114C9.7DA49293@mci.com>#1/1 X-Deja-AN: 564019590 Content-Transfer-Encoding: 7bit References: <82goqs$lti@news.go.dlr.de> <385A6F18.277AE9D2@mci.com> <83p18s$lf2$1@mailint03.im.hou.compaq.com> Content-Type: text/plain; charset=us-ascii X-Trace: pm02news 945911610 166.37.15.23 (Thu, 23 Dec 1999 01:13:30 GMT) Organization: MCIWorldcom MIME-Version: 1.0 NNTP-Posting-Date: Thu, 23 Dec 1999 01:13:30 GMT Newsgroups: vmsnet.vms-posix,comp.os.vms,comp.sys.dec,comp.sys.vms I'm not sure what source code Stephen Hoffman is looking at, but my source code for msync() on the VMS 7.1 source distribution performs locking. I'm looking at the file [v71.acrtl.lis]mmap.lis. I cannot post the source code, but msync() calls force_invalidate() if (flags & MS_INVALIDATE). force_invalidate() increments a sequence number in the lock value block of a lock, remaps the section, then calls ring_bell(). ring_bell() notifies other processes by taking out an excluseive lock, then reverts it back to concurrent read. All other processes that have the current region mapped are have a blocking ast pending. I haven't tested this across the cluster but it looks like it would work. It's still up to the application to only have one writer at a time, but the updates should be readable by any other process that has the same section mapped on the next access. If someone has an exmple they can post it, or if I get time I'll write one.