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: fa528,f7269c227c80b5ac X-Google-Attributes: gidfa528,public X-Google-Thread: f7344,f7269c227c80b5ac X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2002-05-21 02:43:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newspeer.clara.net!news.clara.net!eos Message-ID: <3CEA16CA.F8F24CD4@kgcc.co.uk> Date: Tue, 21 May 2002 10:43:39 +0100 From: Ken Green Organization: KGCC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.4.10 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64,comp.sys.hp.hpux,comp.os.vms Subject: Re: Capellas: Linux, Windows Will 'Eviscerate' Unix 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@clara.net (please include full headers) X-Trace: 0616a9f80280000086d0561080402902701c4324820611189495918a3cea16cb NNTP-Posting-Date: Tue, 21 May 2002 10:43:39 BST Xref: archiver1.google.com comp.unix.tru64:7755 comp.sys.hp.hpux:21034 comp.os.vms:78770 Bill Todd wrote: > "Paul Repacholi" wrote in message > news:877km2sgjc.fsf@k9.prep.synonet.com... > > Ken Green writes: > > > > > The problem with coherence isn't affected by whether the disks are > > > local to one system or to all, the problem is that if multiple > > > 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... Sorry I'd forget that VMS doesn't have a Unix style buffer cache, I did know I'd just forgotten. > > > Sorry, Paul, but the lack of a Unix-style buffer cache is more a detriment > than an asset to VMS. 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. > The Unix buffer cache is a bit of a mixed blessing. For somethings it's great for others it's less so, I guess like all things it's a question of using it right. > > 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. This copy avoidance can be good. On most (HP) systems the copy from kernel space to user space is performed by the CPU, only the V-Class of HP's systems has a hardware memory mover. Using Veritas' VxFS (HP's marketing people call this JFS) you can bypass the buffer cache and perform direct IO. However to do this (and actually to get it to work) you have to do your IOs in DEV_BSIZE (usually 1K) multiples and also start the IO from a 4K page boundary. If you break these rules you either get errors or O_SYNC IO depending on how you tried to get direct IO. > > > 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). > > 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). > > ... > > > > 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). The locks in a Unix file, are not nessessarily *in* the file, there is nothing to stop you having a lock off the end of the file. I've never tried issueing a truncate against a file with a mandatory lock in it, but the manual page doesn't mention any interaction with locks, so I guess it just truncate regardless. One thing the manual does state is that the SGID bit is cleared, so this would make the locks advisory rather than mandatory.There could be an order issue here, I don't know, I haven't tried. > 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. > > > > > 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). > HP's JFS is VxFS BTW. > > > > > 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. > > - bill I'll see if I can find out about ODS-2. Non journal based fsck's are assumption based, and so as soon as it's assumptions break down it realy can make a AssUMe Cheers Ken