From: mathog@seqaxp.bio.caltech.edu (David Mathog)
Subject: Re: Win for Sun at SmithKline Beecham
Date: 2000/05/16 [thread overview]
Message-ID: <8fsca3$3f8@gap.cco.caltech.edu> (raw)
In-Reply-To: 39213DAA.6A160878@bbc.co.uk
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 ` Roger Barnett
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
[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 ` David Mathog [this message]
2000-05-16 4:00 ` Bill Todd
2000-05-16 4:00 ` Terry Kennedy
2000-05-16 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
2000-05-17 4:00 ` Dave Weatherall
2000-05-17 4:00 ` Bill Todd
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