From: "Bill Todd" <billtodd@metrocast.net>
Subject: Re: Capellas: Linux, Windows Will 'Eviscerate' Unix
Date: Wed, 15 May 2002 17:19:12 GMT [thread overview]
Message-ID: <kMwE8.26809$fU2.2751161@bin8.nnrp.aus1.giganews.com> (raw)
In-Reply-To: 3CE22A9C.D4CC9952@kgcc.co.uk
"Ken Green" <Ken.Green@kgcc.co.uk> 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).
>
> >
> > 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.
>
> 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.
>
> 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.
- bill
next prev parent reply other threads:[~2002-05-15 17:19 UTC|newest]
Thread overview: 192+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-03 10:28 CRN: Capellas: Linux, Windows Will 'Eviscerate' Unix Kenneth Farmer
2002-05-03 11:00 ` system
2002-05-03 14:45 ` Michael Kraemer
2002-05-03 15:48 ` John Vottero
2002-05-03 16:27 ` Dave Gudewicz
2002-05-03 17:01 ` Bill Todd
2002-05-04 2:17 ` Mike Coleman
2002-05-04 13:50 ` Michael Kraemer
2002-05-04 13:55 ` Ken Green
2002-05-05 0:16 ` Mike Coleman
2002-05-07 15:45 ` Simon Waters
2002-05-07 16:27 ` Robert Gilster
2002-05-07 20:10 ` Stefaan A Eeckels
2002-05-04 7:45 ` Volker Birk
2002-05-04 10:50 ` "Alan Winston - SSRL Admin Cmptg Mgr"
2002-05-04 11:57 ` Volker Birk
2002-05-04 14:24 ` Bill Todd
2002-05-06 11:02 ` Volker Birk
2002-05-06 12:03 ` Bill Todd
2002-05-04 14:38 ` Bill Todd
2002-05-06 11:06 ` Volker Birk
2002-05-06 11:51 ` david20
2002-05-06 21:09 ` Chris Adams
2002-05-06 22:29 ` david20
2002-05-06 22:40 ` Michael Heiming
2002-05-07 14:10 ` Peter da Silva
2002-05-08 6:31 ` mnahkola
2002-05-06 21:21 ` Peter da Silva
2002-05-06 22:37 ` david20
2002-05-06 12:51 ` Bob Koehler
2002-05-06 21:25 ` Peter da Silva
2002-05-07 13:00 ` Bob Koehler
2002-05-07 13:51 ` Simon Waters
2002-05-07 14:03 ` Stefaan A Eeckels
2002-05-08 12:40 ` Bob Koehler
2002-05-08 14:04 ` Stefaan A Eeckels
2002-05-08 14:25 ` Dan Mercer
2002-05-08 22:16 ` Stefaan A Eeckels
2002-05-09 14:39 ` Dan Mercer
2002-05-09 21:41 ` Stefaan A Eeckels
2002-05-10 12:10 ` Volker Birk
2002-05-08 20:20 ` Bob Koehler
2002-05-08 21:07 ` Ken Green
2002-05-08 22:24 ` Stefaan A Eeckels
2002-05-09 14:42 ` Dan Mercer
2002-05-09 0:19 ` Peter da Silva
2002-05-09 12:55 ` Bob Koehler
2002-05-10 15:21 ` Peter da Silva
2002-05-13 13:17 ` Bob Koehler
2002-05-15 12:17 ` Peter da Silva
2002-05-10 12:07 ` Volker Birk
2002-05-07 15:30 ` Volker Birk
2002-05-07 16:54 ` Bill Todd
2002-05-07 23:12 ` Peter da Silva
2002-05-08 2:27 ` David J. Dachtera
2002-05-08 6:45 ` mnahkola
2002-05-08 13:04 ` Peter da Silva
2002-05-08 18:41 ` Bob Ceculski
2002-05-08 19:07 ` Ken Green
2002-05-09 2:54 ` Bill Todd
2002-05-09 7:53 ` Ken Green
2002-05-09 14:24 ` Bob Ceculski
2002-05-09 13:35 ` Bob Ceculski
2002-05-09 13:43 ` Ken Green
2002-05-10 11:31 ` Bob Ceculski
2002-05-10 11:49 ` Doc.Cypher
2002-05-10 13:20 ` Ken Green
2002-05-09 15:30 ` Bill Gunshannon
2002-05-08 19:27 ` Robert Gilster
2002-05-09 14:27 ` Bob Ceculski
2002-05-09 0:15 ` Peter da Silva
2002-05-09 14:28 ` Bob Ceculski
2002-05-09 0:42 ` Bill Gunshannon
2002-05-09 14:29 ` Bob Ceculski
2002-05-09 18:51 ` Bill Gunshannon
2002-05-09 2:05 ` Mike Coleman
2002-05-09 7:33 ` Paul Repacholi
2002-05-09 12:57 ` Peter da Silva
2002-05-10 13:47 ` Bob Koehler
2002-05-09 14:34 ` Bob Ceculski
2002-05-10 13:49 ` Bob Koehler
2002-05-10 15:04 ` Peter da Silva
2002-05-10 16:30 ` Rob Young
2002-05-11 1:26 ` Peter da Silva
2002-05-11 13:22 ` Bob Ceculski
2002-05-11 13:39 ` Doc.Cypher
2002-05-11 18:21 ` Bob Ceculski
2002-05-12 11:27 ` Doc.Cypher
2002-05-12 22:01 ` Bob Ceculski
2002-05-13 6:25 ` Doc.Cypher
2002-05-13 10:21 ` Andrew Harrison SUNUK Consultancy
2002-05-13 16:04 ` Bob Ceculski
2002-05-12 22:10 ` Bob Ceculski
2002-05-12 22:15 ` Bob Ceculski
2002-05-12 2:22 ` Peter da Silva
2002-05-10 12:13 ` Volker Birk
2002-05-10 17:18 ` Bob Ceculski
2002-05-03 22:56 ` Peter da Silva
2002-05-05 0:42 ` Glenn Everhart
2002-05-05 2:12 ` Bill Todd
2002-05-05 21:23 ` Peter da Silva
2002-05-17 11:41 ` Erikson Fsck
2002-05-05 4:22 ` John E. Malmberg
2002-05-03 19:00 ` Ken Green
2002-05-03 20:35 ` JF Mezei
2002-05-03 20:37 ` Ken Green
2002-05-04 1:41 ` JF Mezei
2002-05-04 13:28 ` John Smith
2002-05-04 15:45 ` phn
2002-05-06 12:27 ` Bob Koehler
2002-05-06 14:40 ` phn
2002-05-05 0:25 ` Rob Young
2002-05-10 11:19 ` Bob Ceculski
2002-05-10 11:26 ` Bob Ceculski
2002-05-10 12:21 ` Simon Waters
2002-05-10 12:35 ` Ken Green
2002-05-10 16:18 ` Andrew Harrison SUNUK Consultancy
2002-05-10 18:09 ` MPE "clusters" (Was: Re: Capellas: Linux, Windows Will 'Eviscerate' Unix) Jan-Erik Söderholm
2002-05-10 18:19 ` MPE "clusters" phn
2002-05-10 18:31 ` Jan-Erik Söderholm
2002-05-10 18:54 ` phn
2002-05-10 23:46 ` MPE "clusters" (Was: Re: Capellas: Linux, Windows Will 'Eviscerate' Unix) Bob Ceculski
2002-05-13 13:40 ` MPE "clusters" (Was: Re: Capellas: Linux, Windows Will 'Eviscerate' Bob Koehler
2002-05-23 8:36 ` Bob Marcan
2002-05-10 23:40 ` Capellas: Linux, Windows Will 'Eviscerate' Unix Bob Ceculski
2002-05-13 13:39 ` Bob Koehler
2002-05-14 17:03 ` Andrew Harrison SUNUK Consultancy
2002-05-14 19:37 ` Rob Young
2002-05-14 18:54 ` Bill Todd
2002-05-17 10:10 ` Andrew Harrison SUNUK Consultancy
2002-05-17 16:18 ` Bill Todd
2002-05-17 17:40 ` Rob Young
2002-05-17 17:53 ` Andrew Harrison SUNUK Consultancy
2002-05-14 19:10 ` Ken Green
2002-05-14 19:26 ` Bill Todd
2002-05-14 21:57 ` Ken Green
2002-05-14 23:02 ` Bill Todd
2002-05-15 9:30 ` Ken Green
2002-05-15 17:19 ` Bill Todd [this message]
2002-05-17 11:01 ` Ken Green
2002-05-17 16:31 ` Bill Todd
2002-05-17 19:22 ` Ken Green
2002-05-17 20:31 ` Bill Todd
2002-05-16 17:01 ` Paul Repacholi
2002-05-16 19:01 ` Bill Todd
2002-05-17 11:28 ` Andrew Harrison SUNUK Consultancy
2002-05-17 16:09 ` Bill Todd
2002-05-17 20:50 ` JF Mezei
2002-05-17 21:10 ` Bill Todd
2002-05-16 20:13 ` Ken Green
2002-05-17 8:40 ` Jan C. Vorbrüggen
2002-05-17 9:24 ` Ken Green
2002-05-17 19:47 ` Paul Repacholi
2002-05-18 1:55 ` Bill Todd
2002-05-18 16:50 ` Paul Repacholi
2002-05-18 20:20 ` Bill Todd
2002-05-21 10:37 ` Ken Green
2002-05-21 9:43 ` Ken Green
2002-05-21 21:04 ` Bill Todd
2002-05-22 8:17 ` Ken Green
2002-05-22 12:35 ` Bill Todd
2002-05-22 13:10 ` Ken Green
2002-05-18 0:35 ` Marty Kuhrt
2002-05-14 21:36 ` Rob Young
2002-05-15 8:43 ` Ken Green
2002-05-15 15:32 ` Rob Young
2002-05-15 15:27 ` Ken Green
2002-05-15 1:38 ` Bob Ceculski
2002-05-15 1:47 ` Bob Ceculski
2002-05-15 8:06 ` Ken Green
2002-05-15 16:29 ` Bill Todd
2002-05-17 11:32 ` Ken Green
2002-05-17 16:13 ` Bill Todd
2002-05-17 17:36 ` Adam Price
2002-05-17 17:43 ` Bill Todd
2002-05-17 19:03 ` Ken Green
2002-05-17 20:02 ` Bill Todd
2002-05-17 20:36 ` Ken Green
2002-05-15 14:46 ` Bob Koehler
2002-05-10 18:24 ` JF Mezei
2002-05-10 23:27 ` Paul Repacholi
2002-05-15 23:14 ` Bob Ceculski
2002-05-16 13:58 ` Andrew Harrison SUNUK Consultancy
2002-05-16 19:37 ` Bob Ceculski
2002-05-17 10:32 ` Andrew Harrison SUNUK Consultancy
2002-05-03 22:53 ` Peter da Silva
2002-05-05 6:56 ` Michael Heiming
2002-05-03 17:29 ` Bill Todd
2002-05-03 19:05 ` Dan Mercer
2002-05-04 1:36 ` JF Mezei
2002-05-03 23:07 ` Bob Ceculski
2002-05-04 7:47 ` Volker Birk
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