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: martin.schmidt@cam-comp.de Subject: Re: Require help with msync() functionality in OpenVMS Cluster env. Date: 2000/01/13 Message-ID: <85l10d$7bu$1@nnrp1.deja.com>#1/1 X-Deja-AN: 572138726 References: <82goqs$lti@news.go.dlr.de> <385A6F18.277AE9D2@mci.com> <83p18s$lf2$1@mailint03.im.hou.compaq.com> <386114C9.7DA49293@mci.com> X-Http-Proxy: 1.0 wwwcache.Space.Net:80 (Squid/1.NOVM.22), 1.0 x33.deja.com:80 (Squid/1.1.22) for client unknown, 194.59.182.23 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Jan 13 17:11:53 2000 GMT X-MyDeja-Info: XMYDJUIDjemen Newsgroups: comp.os.vms,comp.sys.dec X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; DigExt) In article , Jan Vorbrueggen wrote: > Roger Tucker 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.