From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,44c80d9b70fea3a6 X-Google-Attributes: gid1164f8,public From: mathog@seqaxp.bio.caltech.edu (David Mathog) Subject: Re: Win for Sun at SmithKline Beecham Date: 2000/05/16 Message-ID: <8fsca3$3f8@gap.cco.caltech.edu>#1/1 X-Deja-AN: 624235568 References: <8fh7rt$433$1@nnrp1.deja.com> <8fhd9a$mb5$1@fizban.fizban.pprd.abbott.com> <2000May15.122132@ebi.ac.uk> <8fpaq3$atm$1@pyrite.mv.net> <39213DAA.6A160878@bbc.co.uk> Organization: Biology Division, Caltech, Pasadena CA 91125 Reply-To: mathog@seqaxp.bio.caltech.edu Newsgroups: comp.sys.dec In article <39213DAA.6A160878@bbc.co.uk>, Tim Llewellyn 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