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: "Bill Todd" Subject: Re: Win for Sun at SmithKline Beecham Date: 2000/05/16 Message-ID: <8fsfvc$hi2$1@pyrite.mv.net> X-Deja-AN: 624260384 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> <8fsca3$3f8@gap.cco.caltech.edu> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@mv.com X-Trace: pyrite.mv.net 958513964 17986 199.125.98.150 (16 May 2000 21:52:44 GMT) Organization: Why won't Outlook let me leave this blank? X-MSMail-Priority: Normal NNTP-Posting-Date: 16 May 2000 21:52:44 GMT Newsgroups: comp.sys.dec 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 wrote in message news:8fsca3$3f8@gap.cco.caltech.edu... > 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