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: f7344,f7269c227c80b5ac X-Google-Attributes: gidf7344,public X-Google-Thread: fa528,f7269c227c80b5ac X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-05-17 04:02:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newspeer.clara.net!news.clara.net!eos Message-ID: <3CE4E31B.B27CFEAB@kgcc.co.uk> Date: Fri, 17 May 2002 12:01:47 +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> <3CE22A9C.D4CC9952@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: 89632a00110150808761100003880384d500ae8a93066556099481aa3ce4e31d NNTP-Posting-Date: Fri, 17 May 2002 12:01:49 BST Xref: archiver1.google.com comp.unix.tru64:7709 comp.sys.hp.hpux:20941 comp.os.vms:78266 Thanks for your replies Bill, sorry for not responding straight way but I wanted to think a little first (I realise this is not something that is normally incouraged on Usenet :-) Bill Todd wrote: > "Ken Green" wrote in message > news:3CE22A9C.D4CC9952@kgcc.co.uk... > > Bill Todd wrote: > > ... > > > > 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. > > Not unless 1) the data you need happens to be local to where the > application is running (in which case, there's no need for that data to > reside on a distributed file system at all: just use a local one for it) > and 2) the OS is not smart enough to optimize out sharing overhead when no > sharing in fact is taking place. > > 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. > > I suppose in some systems that could be true. But it's not in VMS: on a > per-file basis, if on file open it is noted that no one else is interested > in the file, the opening host obtains complete control over it and no > distributed activity is required thereafter unless some other host develops > a concurrent interest in it (and if that host is found to be accessing it > more intensely than the original one, then the DLM moves coordinating > responsibility over there). > The problem here I was alluding to was one we saw a number of times in DUX clusters. When any one system has the file open, then there is no problem. When multiple systems have the file open read only then again there is no problem. But if the file was then opened read/write control needs to pass to one system, and the others then no longer locally cache. When this is required there is little option, however we found cases where files were being open'd rw but then only ever read, but still managing to hit the performance for everyone sharing the file. > > > > > > > > > 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. > > Per-I/O basis, for VMS. > > > > > If you try to do it on a per IO basis, then every read or write needs to > check, > > Only if inter-host sharing actually occurs (see above). And, as I explained > later, even when it is necessary this does not increase the network message > traffic over that required for 'served' data. > OK > > > > > so you loose the advantage of local caching. > > No. Once you have the data, you can cache it until some other host wants to > modify it, and reuse it without additional interactions for that time. > > 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. > > Nope. I recommend the 1987 Digital Technical Journal explanation of how the > VMS DLM works (it used to be on line at Compaq, anyway). Or the more > extensive explanations in the VMS Internals and Data Structures book. > > > > > 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. > > Nope. You seem to be sufficiently interested in this that you would likely > find understanding the VMS DLM to be a worthwhile use of your time. > I'm currently updating the HP-UX Kernel Support class, I guess the VMS internals & data structure book will be required reading :-) > > > > > 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. > > The basic design/operation of the VMS DLM was there in the first clusters > release in 1983/4. Since then most improvements have been > performance-related. > > > > > > > > > > > > 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. > > Whether it's 'necessary' to share data is an application decision. It's the > OS's job to make that sharing as efficient as possible, and VMS does - > including balancing access across multiple copies (when the VMS volume > shadowing approach is used) to minimize the impact of any such hot spots. > > If local copies of the data were being maintained then it would be > > quicker. > > VMS certainly allows you to do that as well when you choose to export local > disks to the cluster rather than use true shared storage: it biases access > to the local copy unless the local disk is far more loaded than a remote > copy. > > 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. > > And would be quicker on VMS as well: as described previously, if the data > doesn't need sharing, such overheads are avoided (and by definition no data, > dirty or not, will be sitting in some other host's cache). > > > > > > > > > > > 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. > > I think you'll appreciate it. > > First, a distributed cache (rather than a server-local cache that clients > take advantage of) is *always* preferable as long as the (very low latency) > benefit you obtain from being able to cache your own hot data locally (and > access it without any distributed interactions) exceeds the overhead of > having to coordinate access to data across the cluster (which only really > applies to data that at least someone is updating frequently and others need > frequently). Note that even in many interchange-intensive applications, > while a 'served' copy of the data *may* be somewhat more efficient than the > distributed cache approach, it may well be even better to centralize the > operation entirely (i.e., ship the access *functions* to a central point > rather than keep bouncing the data back and forth between the server and > those who need it). > > So even with the slow links of a decade ago distributed caching could make > sense for many common access patterns. > > Second, even when the data you need is not cached locally, it costs very > little more to obtain it from some other node that *does* have it cached > than from a central server: a 3-cornered message (requestor to coordinator > to actual cacher, and response to requestor) rather than a 2-message > request/response. This is I believe what Oracle now does and what XFC will > eventually do. Since with optimized protocol stacks one-way message latency > can be reduced to under 100 us. (and under 10 us. with hardware-enhanced > mechanisms such as VI), and since sending even just a 4 KB 'block' across a > 100 Mbit link takes about 400 us., the difference in that environment at > worst nearly negligible (and with something like VI nearly negligible even > using a gigabit link, though in that case the additional interrupt required > in the 3-corned case may start to become noticeable). > > > > > > 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. > > VMS allows double-caching as well, even for write-shared files (it just > invalidates any cached copies at other nodes when a write operation overlaps > them). > > > > > > > > > (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. > > If you need to get to the data on a disk, the I/O rate will be the same > whether a bunch of hosts access it directly or the same bunch of hosts > access it through a server (modulo the inefficiences introduced by served > access). The only exceptions being isochronous access where the server can > decide whom to screw if the total rate exceeds the disk's capacity to serve > it. > > Similar observations apply to sharing connection bandwidth: the disk can > supply only as much bandwidth as whatever pipe it's connected to can manage, > regardless, so while a switched back-end storage network used for shared > disks must be able to distribute that bandwidth to whatever combination of > hosts require it this doesn't differ much from the need for the front-end > network that served storage uses to distribute the load (again, unless > isochronous access is at issue). > > > > > > > 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. > > And as I wrote elsewhere, VMS comes damn close to supporting all of them, > and supporting them well. > > > > > 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, > > Greg Pfister's "In Search of Clusters" (2nd edition) has already been > mentioned, and is the best starting point I know of. See above for > recommendations specific to VMS clusters. The Oracle 'cache fusion' > approach is similar to an IBM research project for the 'Calypso' file system > back in the mid-'90s (there used to be papers available on line, but finding > them starting at ibm.com was a challenge - starting at almaden.ibm.com may > be better). > > > > > 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. > > A pity HP isn't using the Tru64 kernel. > I guess it's natural to want what we know best. I hope that more co-operation happens than simply taking the Tru64 AFS and cluster stuff and bolting these onto the HP-UX kernel. Hopefully there will be a review of both kernels and the best parts will be choosen to live on. I'm not in a position to comment on the Tru64 kernel, but there are some very good features in the HP-UX one. > > - bill I guess it's time to go and find some of the reading material. Cheers Ken