From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 101f01,3b53bec0e2682868 X-Google-Attributes: gid101f01,public X-Google-Thread: 111c93,3b53bec0e2682868 X-Google-Attributes: gid111c93,public X-Google-Thread: 10d8ad,3b53bec0e2682868 X-Google-Attributes: gid10d8ad,public X-Google-ArrivalTime: 2001-03-21 06:01:41 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!news.algonet.se!newsfeed1.telenordia.se!algonet!uni-erlangen.de!fu-berlin.de!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!nmm1 From: nmm1@cus.cam.ac.uk (Nick Maclaren) Newsgroups: uk.comp.os.linux,ucam.comp.linux,comp.os.linux.alpha Subject: Re: Advice for number-crunching box Date: 21 Mar 2001 13:57:24 GMT Organization: University of Cambridge, England Message-ID: <99ac04$lu1$1@pegasus.csx.cam.ac.uk> References: <3AB76C32.AF1E1C50@selftrade.com> <9983p7$2j1$1@pegasus.csx.cam.ac.uk> <99a6pq$h0e$1@pegasus.csx.cam.ac.uk> NNTP-Posting-Host: virgo.cus.cam.ac.uk Originator: nmm1@virgo.cus.cam.ac.uk Xref: supernews.google.com uk.comp.os.linux:16483 comp.os.linux.alpha:2513 In article , Stephen Cornell writes: |> nmm1@cus.cam.ac.uk (Nick Maclaren) writes: |> > |> > More seriously, watch out if you need to do anything non-trivial with |> > your filing systems or want to use an unusual (e.g. journalled) filing |> > system. The design of NQS is seriously broken, and it cannot be made |> > to work with all filing systems. And its error handling is no better, |> > which doesn't make it easy to locate or bypass problems. |> |> Thanks for the warning. I have been using NQS for a while (many years |> as a user, and about two years as both admin and user) and had few |> problems. However, I was intending to use ReiserFS for my home |> partition in the future - do you know if this is one of the |> filesystems with which NQS has problems? Not a clue, I am afraid. But I can tell you what it assumes and relies upon. I am indebted to Michael Rutter for locating the reasons for NQS's aberrations. The authors (quite reasonably) wanted guaranteed update semantics, but Unix did not and does not provide them (not even with sync, fsync, flush, Old Uncle Tom Cobbley and all). They discovered that inodes were being atomically updated on the systems they used, and they jumped to the conclusion that this was a stable feature of Unix. So so the geniuses stored lock data in the last modified time of the inodes of various files (and possibly other fields). In addition to playing Old Hob with file system scanning utilities (including some forms of dumping), not least because dates of 2028 are unlikely to be correct, they are quite simply wrong that inode update always bypasses Unix's usual file block caching code. This is the reason that you absolutely must NOT put the NQS directories onto an NFS mounted partition, and that it won't work with IBM GPFS and a good many other fancy, distributed filing systems. I do not know how likely it is to corrupt its own data structures if there is a power cut (surely not?) while inodes have been only partially written back but, given its other misdesigns, it probably will. And, for the same reason, the only practical way to recover from such corruption is to reinstall NQS and lose all queued jobs and output. Regards, Nick Maclaren, University of Cambridge Computing Service, Email: nmm1@cam.ac.uk Ext. 34761