home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.folklore.computers
- Path: sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!napier.uwaterloo.ca!dagbrown
- From: dagbrown@napier.uwaterloo.ca (Dave Brown)
- Subject: Re: sync; sync; sync; was Re: Computer Superstition
- Message-ID: <BxzE8G.8y7@undergrad.math.waterloo.edu>
- Sender: news@undergrad.math.waterloo.edu
- Organization: University of Waterloo
- References: <10292323.7317.11306@kcbbs.gen.nz> <1992Nov18.132507.22731@bnr.uk> <NICKEL.92Nov18181710@desaster.cs.tu-berlin.de>
- Date: Thu, 19 Nov 1992 20:57:51 GMT
- Lines: 42
-
- In article <NICKEL.92Nov18181710@desaster.cs.tu-berlin.de> nickel@cs.tu-berlin.de writes:
- >In article <1992Nov18.132507.22731@bnr.uk> agc@bmdhh286.bnr.ca (Alan
- >Carter) writes:
- >
- >> How about the way that UNIX System Administrators type
- >>
- >> sync
- >> sync
- >> sync
- >>
- >> at shutdown time, when one sync would be quite enough? When questioned
- >> they sometimes give the lame excuse that this gives the first one time
- >> to work! I was taught to do this, and still do, even though I have
- >> figured it out for myself that it is nonsense.
- >
- >Hmm, perhaps this *has* to appear regularly.
- >
- >The sync(1) program does nothing but invoke the sync(2) system call.
- >This call writes the contents of modified disk buffers back to the
- >disk. The manual (SunOS, in this case) of sync(2) states:
- >
- > BUGS
- > The writing, although scheduled, is not necessarily complete
- > upon return from sync().
- >
- >An todays fast machines with fast disks this won't matter -- just type
- >sync; and before you've had time to do something else the disk buffers
- >will be safe.
- >
- >But back in the old days, it was not a bad idea to type sync three
- >times (and not as "sync; sync; sync") to make sure the first call was
- >completed.
-
- The last SunOS manual I looked at (for a Sparc IPC) recommended
- typing "sync;sync" as part of the shutdown procedure...once to dump
- RAM to disk, and once more to get RAM back from disk....
-
- --
- Dave Brown
- dagbrown@undergrad.math.uwaterloo.ca
- Phone: (519) 438-0530
- "What God want, God gets. God help us all." --Roger Waters
-