home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / folklore / computer / 16380 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.7 KB

  1. Path: sparky!uunet!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!mailgzrz.tu-berlin.de!nickel
  2. From: nickel@cs.tu-berlin.de (Juergen Nickelsen)
  3. Newsgroups: alt.folklore.computers
  4. Subject: sync; sync; sync; was Re: Computer Superstition
  5. Date: 18 Nov 1992 17:17:10 GMT
  6. Organization: STONE Project, Technical University of Berlin, Germany
  7. Lines: 34
  8. Message-ID: <NICKEL.92Nov18181710@desaster.cs.tu-berlin.de>
  9. References: <10292323.7317.11306@kcbbs.gen.nz> <1992Nov18.132507.22731@bnr.uk>
  10. Reply-To: nickel@cs.tu-berlin.de
  11. NNTP-Posting-Host: desaster.cs.tu-berlin.de
  12. In-reply-to: agc@bmdhh286.bnr.ca's message of Wed, 18 Nov 1992 13:25:07 GMT
  13.  
  14. In article <1992Nov18.132507.22731@bnr.uk> agc@bmdhh286.bnr.ca (Alan
  15. Carter) writes:
  16.  
  17. > How about the way that UNIX System Administrators type
  18. >    sync
  19. >    sync
  20. >    sync
  21. > at shutdown time, when one sync would be quite enough? When questioned 
  22. > they sometimes give the lame excuse that this gives the first one time 
  23. > to work! I was taught to do this, and still do, even though I have 
  24. > figured it out for myself that it is nonsense.
  25.  
  26. Hmm, perhaps this *has* to appear regularly.
  27.  
  28. The sync(1) program does nothing but invoke the sync(2) system call.
  29. This call writes the contents of modified disk buffers back to the
  30. disk. The manual (SunOS, in this case) of sync(2) states:
  31.  
  32.     BUGS
  33.      The writing, although scheduled, is not necessarily complete
  34.      upon return from sync().
  35.  
  36. An todays fast machines with fast disks this won't matter -- just type
  37. sync; and before you've had time to do something else the disk buffers
  38. will be safe.
  39.  
  40. But back in the old days, it was not a bad idea to type sync three
  41. times (and not as "sync; sync; sync") to make sure the first call was
  42. completed. 
  43.  
  44. --
  45. Juergen Nickelsen
  46.