From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,f7269c227c80b5ac X-Google-Attributes: gidfcda7,public X-Google-Thread: f7344,f7269c227c80b5ac X-Google-Attributes: gidf7344,public X-Google-Thread: fa528,f7269c227c80b5ac X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-05-18 12:50:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp.itservices.ubc.ca!cyclone.bc.net!newsfeed.telusplanet.net!peer1-sjc1.usenetserver.com!usenetserver.com!hub1.nntpserver.com!telocity-west!TELOCITY!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!news.uwa.edu.au!nntp.waia.asn.au!nnrp.waia.asn.au!!nobody From: Paul Repacholi Newsgroups: comp.unix.tru64,comp.sys.hp.hpux,comp.os.vms Subject: Re: Capellas: Linux, Windows Will 'Eviscerate' Unix Date: 19 May 2002 00:50:35 +0800 Organization: iQnet Sender: prep@k9.prep.synonet.com Message-ID: <87bsbdpfhg.fsf@k9.prep.synonet.com> References: <3CD2DE32.D354B6B0@kgcc.co.uk> <3CE16112.EC41AF98@kgcc.co.uk> <3CE18838.45DC9379@kgcc.co.uk> <3CE22A9C.D4CC9952@kgcc.co.uk> <87offgrprl.fsf@k9.prep.synonet.com> <3CE412FB.1C3D18E0@kgcc.co.uk> <877km2sgjc.fsf@k9.prep.synonet.com> NNTP-Posting-Host: news-01.core.usertools.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: nnrp.waia.asn.au 1021751067 2440 202.154.80.9 (18 May 2002 19:44:27 GMT) X-Complaints-To: usenet@nnrp.waia.asn.au NNTP-Posting-Date: Sat, 18 May 2002 19:44:27 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Cache-Post-Path: angelina!unknown@p202.qv1-02.dial.usertools.net X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Xref: archiver1.google.com comp.unix.tru64:7743 comp.sys.hp.hpux:20991 comp.os.vms:78485 "Bill Todd" writes: > "Paul Repacholi" wrote in message > news:877km2sgjc.fsf@k9.prep.synonet.com... > > Ken Green writes: > > > copies exist in the memory of the members of the cluster how do > > > you ensure if one member modifies all the other members > > > invalidate their copies atomically. > > Step one, take the unix buffer cache out and destroy that part of > > the brain... Oh yes, with VMS, it is normal for a file to be open for write by multiple processes, and on multiple nodes. SYSUAF.DAT, the passwd `equivalent' is updated on every login, and is help open on all nodes all the time by the job-controller. Mail can be delivered while you are reading it. All `just works'. (Thank Bill for a good bit of that! He was one of the original RMS developers.) > Sorry, Paul, but the lack of a Unix-style buffer cache is more a > detriment than an asset to VMS. Yes, but until recently, on unix systems all disk IO was to the kernel, never to userland. (for a large enought value of recently, and a small value of all :) The key factor is the buffer *may* exist, rather than *must*. So you can not use it as a sync point, as it may not be there at all. or it may be there in SOME nodes, but not others. > VIOC is a step toward a VMS system-level cache, and XFC another > bigger one, but for most typical use the Unix approach is likely > better still - and really doesn't introduce any more sharing > problems than current VMS distributed caching/buffering mechanisms. > > VMS uses direct to the process IO, not IO to the kernel with a > > copy to the process, so there can well be NO cache at all. > Depends on how you look at it. Only application-specified block I/O > (or 'locate-mode' access, if that still exists) avoids a buffering > layer - just because it happens to be in P1 space rather than Sx > space doesn't really make much difference (except that other local > processes can't share it). One thing VMS has done, is that buffer update go via the disk, never memory to memory although the SCS ports could do it no problem. I was told that failure modes where too horrid to handle with out a stable copy in the middle, so onto and off the disk... This may have been improved. > > RMS Global buffers are the common exception here. > Another not-so-great excuse for Unix-style system caching. RMS > *could* have chosen to create a Unix-like system cache instead of > implementing 'global buffers' way back when, but that didn't fit as > well with RMS's layering model (and real-time advocates may have > preferred to have somewhat tighter control over system memory use, > though it's not clear that equivalent controls couldn't be obtained > by establishing quotas and/or priorities on system cache use). I was always amused that RMS lived in system space, and the XQP was in user space... > ... > > > Truncating doesn't affect this, it can be considered as just > > > like any other write. On Unix, files can be sparse, I seem to > > > remember that VMS' view of files is somewhat different, so I > > > have no idea whether it supports sparse files, if not Then I > > > guess truncates are a different problem. > Considered commenting on this before, but got lazy. I'm not > familiar with the details of Unix-style byte-range locks, so it's > possible that a truncate can just take out a write-style range lock > on the section truncated and have it 'just work' (though since it > would have to wait for *every* conflicting read or write lock to be > released, it could take a while). VMS locks are slightly different > in that they operate on names and hence don't accommodate amorphous > (and potentially overlapping) entities like byte (or truncate) > ranges easily. I don't know exactly how VMS handles byte-range > locks themselves let alone truncate ranges, but I suspect it is > indeed (as Paul suggests) a bit messy. Remember, we are allowed to lose blocks to n-space on crash etc, but we must be able to recover totally normally. Even if we have multiple extents, and cross bit-map blocks, and volumes, and another node does a BIG extend of another file and runs out of space and all the XQPs have to dump their free space cache etc... Plus some interesting corner cases in timing and the like. > > ODS files are extent based. Any file is a ordered list of extents > > of blocks. (A block btw, is *defined* to be 512 bytes. It is up to > > the driver to do the various fudging to make this so.) So the file > > system is VERY different to any of the unix systems. It does not > > have to provide anything other than block access to the process. > > Although truncation is simple in principle, doing it so it is safe > > and completable is a far trickier matter! It is also why you get a > > big performance hit cf unix file systms for some things. > Not sure that the use of extents makes any real difference here: > after all, several Unix file systems are extent-based (XFS, VxFS, I > think JFS). > > The nice thing about VMS, is that the tools are good enough for > > you to pick up a lot of the stuff on a running system. With the > > VMS FAQ in one hand, and SDA in the other you are set. To begin > > anyway :) > > Getting a copy of the ODS-2 specs from the SIG tapes from years > > ago is a very good start. Once you have a handle on the file > > system, then you can move out from there. > As I said, I'm not sure that the actual on-disk structure makes too > much difference. Inodes correspond at least moderately closely to > index-file entries, etc. The use of careful-update sequences in > ODS-2 in contrast to many Unix file systems (which range from using > prayer plus fsck to using transaction logs to protect integrity) > *is* a significant difference, however, especially in how the > clustered file system works. -- Paul Repacholi 1 Crescent Rd., +61 (08) 9257-1001 Kalamunda. West Australia 6076 Raw, Cooked or Well-done, it's all half baked. EPIC, The Architecture of the future, always has been, always will be.