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/17 Message-ID: <8fun0u$jml$1@pyrite.mv.net>#1/1 X-Deja-AN: 624630966 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> <8frra4$pvr$1@pyrite.mv.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@mv.com X-Trace: pyrite.mv.net 958586718 20181 199.125.99.210 (17 May 2000 18:05:18 GMT) Organization: Why won't Outlook let me leave this blank? X-MSMail-Priority: Normal NNTP-Posting-Date: 17 May 2000 18:05:18 GMT Newsgroups: comp.sys.dec Dave Weatherall wrote in message news:DTiotGxQ0bj6-pn2-4d7gjJgpctDZ@localhost... > On Sun, 16 May 3900 12:02:34, "Bill Todd" wrote: > > > Since VMS already supports write-back caching at the process level, it's > > already 'as unreliable as Unix', just less approachable (especially for > > those used to Unix mechanisms). > > Bill > I'm not a wizard at this at all but I was under the impression > that a large part of the write-back cache performance gains that could > _still_ be made, would come from the W/B cache on the drive itself. That's true, but turning on write-back caching at the drive changes the semantics for *everyone*, rather than just for the applications that want it. I think SCSI allows one to specify on a per-request basis whether a write request should be 'written through' to the drive even if write-back caching is enabled, but there's no current mechanism for getting this information from the application down through the file system to the driver (nor do I know whether this option is available on other - e.g., IDE - drives, and their price/performance makes them a popular alternative in many situations). The file system could preserve the integrity of its own internal structures by using this SCSI option and allowing SCSI drive-level write-back cache to be enabled, but this would not address the overhead incurred by writing-through such structural changes rather than writing them back in a controlled manner nor would it allow applications a choice for their own user data writes (unless a new option were added to the QIO mechanism indicating that write-back was acceptable, which would preserve current behavior as the default). But there are still a few ordering issues between user data and structural changes (e.g., ensuring that user data has been written before advancing EOF) that must be handled at the file system rather than the disk level. With a reasonably full-featured file system, drive-level write-back caching is generally useful only for drives dedicated to specific applications that are prepared to deal with that situation - and even then there's usually not that much to be gained over maintaining the write-back cache in system memory. With a file system that provides more limited options over how writes are handled, the disk-level feature may be more useful. > > I seem to remember that whenever the subject comes up :- > > 'Why does VMS need SCSI disks without W/B cache?' or > 'Why does VMS always turn disk level W/B cache off?' > > the answer is Integrity. As you suggest, VMS itself handles the cache > and organisation of I/O relatively well and speedily. That, I presume, > is why READS on VMS have been shown to be as quick as READS on Unix on > comparable, and even different, hardware (IIRC). > > At the application level, we've always had the opportunity to do > asynchronous I/O on VMS so perhaps we've had less need to worry about > absolute performance. The issue here involves application - and system - throughput as well as simple operation latency. In situations where up-to-the-second guaranteed data persistence is not required by an application, ODS-x often performs considerably more disk accesses than would occur if it gathered multiple updates to the same data (including file headers as well as frequently-updated user blocks) and wrote them out in single write requests. - bill Then again, I've never a written a Unix-Specific > program in my life yet, though I have helped a few times and was not > always impressed, which might have had more to do with the individuals > concerned than the OS itself. > > Cheers - Dave. >