home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / folklore / computer / 16500 < prev    next >
Encoding:
Text File  |  1992-11-20  |  2.1 KB  |  54 lines

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