From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,f7269c227c80b5ac X-Google-Attributes: gidfcda7,public X-Google-Thread: fa528,f7269c227c80b5ac X-Google-Attributes: gidfa528,public X-Google-Thread: f7344,f7269c227c80b5ac X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2002-05-15 02:30:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!eos Message-ID: <3CE22A9C.D4CC9952@kgcc.co.uk> Date: Wed, 15 May 2002 10:30:04 +0100 From: Ken Green Organization: KGCC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.4.10 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64,comp.sys.hp.hpux,comp.os.vms Subject: Re: Capellas: Linux, Windows Will 'Eviscerate' Unix References: <3CD2DE32.D354B6B0@kgcc.co.uk> <3CE16112.EC41AF98@kgcc.co.uk> <3CE18838.45DC9379@kgcc.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@clara.net (please include full headers) X-Trace: a43661019561000468080a0883a262201a2492045c4a8130d3780b443ce22a9c NNTP-Posting-Date: Wed, 15 May 2002 10:30:04 BST Xref: archiver1.google.com comp.unix.tru64:7666 comp.sys.hp.hpux:20822 comp.os.vms:77920 Bill Todd wrote: > "Ken Green" wrote in message > news:3CE18838.45DC9379@kgcc.co.uk... > > Bill Todd wrote: > > > > > "Ken Green" wrote in message > > > news:3CE16112.EC41AF98@kgcc.co.uk... > > > > > > ... > > > > > > > Not everyone wants shared disk, sharing disk is > SSSSLLLLOOOOOWWWWW!!!!! > > > > > > Not at all, at least if you know how (and VMS does). > > > > > > - bill > > > > OK I'll bite, > > > > so how do you get a cohertent buffer cache with multiple systems accessing > > the same disk without using some sort of network? > > So how do multiple systems access any shared data at all (whether on shared > disk or not) without using some sort of network? > Sorry this was what I was talking about, some apps need shared and some don't, non shared is quicker than shared. Even if you can eliminate any overhead in having the shred capability in place when it is not being used you can still find it is being used when it is not needed. > > With non-shared disks, if you want to share data among systems they need to > cooperate, just as they need to using shared disks. The primary difference > due to the sharing of the disk is that when desired data isn't cached > somewhere the system that wants it can, after obtaining any necessary locks, > get it directly from (or send it directly to) the disk rather than ask some > other system to get it and send it on. The problem comes when someone else is caching the data. How do you cope. Do you manage cache coherency on a per IO basis or on a per file basis. If you try to do it on a per IO basis, then every read or write needs to check, so you loose the advantage of local caching. You could minimise this to only impacting writes I guess but that would require all systems to maintain a cache directory for the whole cluster. If you do it on a per file basis, it's much easier. At open time you check whether you are the only node accessing the file, or that all nodes accessing are only open for reading, in this case there is no problem with caching at both ends. However once a node opens a shared file for writes then the caching needs to be done in just one place, or as above checking for conflicts needs to be performed on a per IO basis, or write only basis with a local cache directory. Sorry I don't know how VMS tackles these issues, it has been more years than I care to remember since I used a VMS cluster, and back then had no idea how an OS worked. I'm sure VMS clusters have moved on a long way since then anyway. > > > In large systems, this means that 1) there's no need to partition the data > among the various systems that 'serve' it (because all systems have direct > access to all data), 2) there's no problem after partitioning said data > with a server getting overloaded due to hot spots (because, again, all data > is directly accessible to all who need it), and 3) the storage can be > scaled independently of the processing capacity (and without the need to > repartition). > Not sure about 2), if they are sharing data unnessessarily then the data can hot spot. If local copies of the data were being maintained then it would be quicker. This is of course dependant on whether you think you need to share the data. My whole point was that some times you do, and some times you don't. > > And eliminating the need for 'server'-style operation does not increase the > network traffic (thus does not increase access latency). Obtaining a lock > from whoever is in a position to grant it (which is usually known by the > requestor - but I'm not going to reprise the VMS distributed lock manager > algorithms here) takes one exchange, after which the requestor can obtain > the data from disk, which is the same number of operations that would occur > if instead the requestor asked a 'server' to obtain the data and forward it. > (Actually, it can be less, because the VMS DLM algorithms make it likely > that most lock requests are local, hence the disk access can take place > directly.) > If the data is not clean in the cache of the system that is "in a position to grant it" then either the data needs to be exchanged across the network, or it needs to be written back to the disk, before the requestor can ask for the upto date copy. A different app design where the data didn't need sharing could be quicker. > > With a good distributed cache (such as the one Oracle recently developed for > its 'cache fusion' architecture) you can do even better due to the ability > to combine cache-management messages with lock-management messages (and once > you have such a distributed cache, shared storage becomes a definite win > over served storage). I guess my main issue is how you get a good distributed cache without adding significantly to the latency of a cache access. I'll need to looking into the Oracle cache fusion architecture. > VMS unfortunately dropped the ball on this for many > years, but is finally getting there with XFC (when they get it working > right). Meanwhile, there is the legitimate knock that a node that wants > access to data that another node has cached must still go to disk for it HP-UX used to use double caching here, but only where there was either no sharing, or read only sharing. > > (whereas if it was cached at a 'server' then no disk access would be > required) - but this is an anomaly of the VMS implementation rather than an > inherent problem with concurrent disk-sharing. > > - bill There are other problems with disk sharing, such as sharing the IO rate and connection bandwidth too. Please don't think I am against all sharing and clustering, that is not the case as I have written in another posting, the origenal issue was that VMS Clustering is not the only type of clustering, the term is horribly overloaded and it is doubtfull that anyone solution will be right for all the uses of the term. It just like some application work best on a large SMP or ccNUMA server such as a SuperDome or GS (and I think these are very different from what I can see) and some applications work best on a rack full of small systems or blades. It's horses for courses. BTW, as I said it is many years since I last used a VMS cluster, back then we had our 11/785s linked by a series of cables a good couple of inches thick, for the CI bus. Since the clustering technology IS going to be added to HP-UX I want to learn all I can about it, can you recommend any good places to start, I know I have a lot to learn, in my own case it's going to need to be from the high level overview down to VMS distributed lock manager algorithms, if they are going to show up in the HP-UX kernel in the future. Cheers Ken