From: "Bill Todd" <billtodd@foo.mv.com>
Subject: Re: Win for Sun at SmithKline Beecham
Date: 2000/05/16 [thread overview]
Message-ID: <8fsfvc$hi2$1@pyrite.mv.net> (raw)
In-Reply-To: 8fsca3$3f8@gap.cco.caltech.edu
David made several good points, but it should also be noted that VMS does in
fact support various forms of write-back caching - just not in any way that
anyone save a knowledgeable VMS user is likely to use. There may be
marginal advantages to centralizing the write-back mechanism in system
memory (rather than replicating write buffers in each application's virtual
memory), but there are also advantages to avoiding the memory-to-memory copy
that centralizing the mechanism requires (since it's reasonable to assume
that the vast majority of Unix applications that benefit from write-back
caching do not need to be able to share non-persistent updates with other
processes - and the percentage of Unix applications that use 'direct I/O'
and private buffers to avoid this overhead is likely even lower than the
percentage of VMS applications that use the write-back facilities VMS
provides).
Aside from dating from a period when more than a few MB of physical memory
on a multi-user system was unusual, VMS also takes a conservative approach
to data persistence, while providing mechanisms that allow knowledgeable
users to be more daring when they know it's safe. Unix, in general, assumes
the application developer knows what s/he's doing, and goes for performance
while providing facilities that allow finer control over persistence by
knowledgeable users. So in general VMS gets a reputation (among
unknowledgeable users) for being slower, while Unix applications written by
less-than-expert developers get the reputation for being flakey under
failure conditions.
Which approach is better is largely a matter of taste, but the fact that a
large majority of developers seem to prefer the Unix approach strongly
suggests that providing it as an *option* to applications on VMS might make
VMS at least somewhat more attractive to a wider range of developers and the
users who use their applications (or even VMS applications that don't need
the additional protection but weren't coded to avoid its overhead).
- bill
David Mathog <mathog@seqaxp.bio.caltech.edu> wrote in message
news:8fsca3$3f8@gap.cco.caltech.edu...
> In article <39213DAA.6A160878@bbc.co.uk>, Tim Llewellyn
<tim.llewellyn@bbc.co.uk> writes:
> >
> >
> >Bill Todd wrote:
> >
> >> Given that theirs was an application amenable to porting to a Unix
> >> environment, perhaps it benefited from Unix-style write-back caching as
its
> >> default behavior. I think it was David Mathog (apologies if I'm
confusing
> >> him with another university type) who observed that making such
behavior
> >> easily accessible in a VMS environment could go a long way toward
erasing
> >> perceptions that VMS was a good deal slower than Unixes.
>
> Yes, I've said that.
>
> >>
> >
> >You mean make VMS as unreliable as unix? Ok, so you slap a UPS on the
> >box so it doesn't crash due to power glitch. Then its just OS panics,
sysadmins
> >with sticky fingers or an oversubscribed system randomly killing
processes
> >you have to watch out for. Any one of those will crap on your data that
you
> >expected to be on disk but is actually still in the unix system buffers.
>
> First of all, once there's a UPS on a system, the expected crash time is
> reduced to essentially zero on both a VMS and a Linux system (neither of
> which crash at a measurable rate, in my experience.) My (older) SGI
> systems crash about once every 200 days though.
>
> Secondly, I really don't believe that disk caching per se increases the
> risk of a blown data transfer much in any given transaction. (I'm not
> talking about databases here - they have their own built in code for
> handling caching.) I'm certainly not advocating "cache forever" as on
> WNT, but rather a "maximum time before data hits disk" of a few seconds.
> That is, long enough so that the write when it does occur can be done more
> efficiently than would happen under normal circumstances. Consider what
> happens when you do a gunzip or tar on OpenVMS (which I do many times a
> day). It will write a bunch of small blocks of data to the disk, which is
> slow. If these went instead into cache both the application's view of a
> "write" and the actual write of the data to disk would be faster.
> Moreover, if as is very common, the file which is being processed is on
the
> same disk as the output file, the caching will reduce the number of real
> head movements, which tends to speed things up enormously. I'm about 98%
> confident that the time to gunzip a file using a caching mechanism would
> be a fraction of what it is now. (Yes, you can mess around with RMS
> buffers, blocks, and extend, but we're not running in 2 Mb systems
anymore,
> and it would be easier just to use some of what's around for disk
caching.)
>
> So which version is more reliable? Assuming an equal probability of a
> crash in every time interval the faster gunzip will be SAFER than the
> current method. If there had been no disk caching then the odds of having
> a corrupted output file would be HIGHER than with caching.
>
> Probably you're worried about the case where a program finishes writing
and
> says "I'm done" by writing that information to disk, but the first set of
> data hasn't really made it to disk, and the system crashes before it does.
> That is, it isn't just one bad block of data that makes a problem, it's
> two, where one says the other is ok when it isn't. Then on reboot you've
> got a possibility of an inconsistent state. Well, if you can't live with
> that possibility, shut off disk caching.
>
> Just because some people have these sorts of data integrity requirements
> doesn't mean that others that don't should have to hobble along with
slower
> IO, or should be forced to move to Unix just to get better disk write
> performance!
>
> Regards,
>
> David Mathog
> mathog@seqaxp.bio.caltech.edu
> Manager, sequence analysis facility, biology division, Caltech
next prev parent reply other threads:[~2000-05-16 4:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-12 4:00 Win for Sun at SmithKiline Beecham drobertsjr
2000-05-12 4:00 ` Dave Gudewicz
2000-05-13 4:00 ` Larry Kilgallen
2000-05-13 4:00 ` Terry C. Shannon
2000-05-13 4:00 ` Brian Schenkenberger, VAXman-
2000-05-13 4:00 ` Chris Hedley
2000-05-15 4:00 ` Tim Llewellyn
2000-05-14 4:00 ` Chris Quayle
2000-05-14 4:00 ` Bill Todd
2000-05-14 4:00 ` Malcolm Dunnett
2000-05-15 4:00 ` Larry Kilgallen
2000-05-14 4:00 ` Terry C. Shannon
2000-05-14 4:00 ` Bill Todd
2000-05-15 4:00 ` Bruce Vinson
2000-05-17 4:00 ` Andrew (Was: Re: Win for Sun at SKB) Robert Young
2000-05-14 4:00 ` Win for Sun at SmithKiline Beecham Roger Barnett
[not found] ` <2000May15.122132@ebi.ac.uk>
2000-05-15 4:00 ` Win for Sun at SmithKline Beecham Bill Todd
2000-05-16 4:00 ` Tim Llewellyn
2000-05-16 4:00 ` Terry Kennedy
2000-05-16 4:00 ` David Mathog
2000-05-16 4:00 ` Bill Todd [this message]
2000-05-16 4:00 ` Bill Todd
2000-05-17 4:00 ` Dave Weatherall
2000-05-17 4:00 ` Bill Todd
2000-05-17 4:00 ` Stephen E. Halpin
2000-05-17 4:00 ` Bill Todd
2000-05-17 4:00 ` Bill Todd
[not found] ` <8g72ff$97l$1@panix3.panix.com>
2000-05-23 4:00 ` Rick Murphy
2000-05-23 4:00 ` David Schmitt
2000-05-24 4:00 ` Rick Murphy
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