Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ellis@rata.vuw.ac.nz (Brian Ellis)
Subject: Re: why three syncs?
Date: 4 Sep 91 22:57:26 GMT	[thread overview]
Message-ID: <1991Sep4.225726.26630@rata.vuw.ac.nz> (raw)
In-Reply-To: 1991Sep04.194822.22074@uvmark.uucp

In article <1991Sep04.194822.22074@uvmark.uucp>, tom@uvmark.uucp (Tom Rauschenbach) writes:
|> I've noticed that most Un*x folks type the sync command three times before
|> shutting down a system.  Is there a folkloric reason for this ?  A technical
|> one.  I have a guess, and I wonder if it can be confirmed or refuted.

Quoting from sync(2) from the Ultrix 4.1 man pages...

          The sync system call causes all information in memory that should
          be on disk to be written out.  This includes modified super-
          blocks, modified i-nodes, and delayed block I/O.

          Programs that examine a file system, for example, fsck or df, use
          the sync system call.  The writing, although scheduled, is not
          necessarily complete upon return from sync.

The second sentence of the second paragraph suggests why three syncs are
required before shutting down a Unix system.

Brian.

-- 
Brian Ellis                               Computing Services Centre
Domain: Brian.Ellis@vuw.ac.nz             Victoria University of Wellington
Bang paths... grrrr!!!!!		  P.O Box 600, New Zealand.
What! - no cute .sig ???


  parent reply	other threads:[~1991-09-04 22:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-09-04 19:48 why three syncs? Tom Rauschenbach
1991-09-04 21:42 ` Steven M Kosloske
1991-09-04 23:54   ` Dirk Grunwald
1991-09-05  2:36     ` Frederick M. Avolio
1991-09-05 19:40       ` Greg Lehey
1991-09-06  5:19       ` John Dodson
1991-09-05 10:11   ` Jose Pina Coelho
1991-09-07  0:32     ` Russell E. Button
1991-09-08 19:42       ` Win Treese
1991-09-10 21:56         ` Plagarism (was Re: why three syncs?) Dana H. Myers
1991-09-11  3:11           ` Win Treese
1991-09-11 14:20             ` J. Horsmeier
1991-09-11 21:01             ` Dana H. Myers
1991-09-09 10:45       ` why three syncs? J. Horsmeier
1991-09-04 22:57 ` Brian Ellis [this message]
1991-09-05  8:01 ` Tom Ploegmakers
1991-09-12 20:33   ` Veteran of the Psychic Wars
1991-09-13  3:32     ` Anthony A. Datri
1991-09-23  3:17       ` Ezra Peisach
     [not found]       ` <1764@geovision.gvc.com>
1991-09-24 19:56         ` Seth Breidbart
1991-09-27  5:14           ` Norman Diamond
1991-09-05 13:45 ` Frank Wortner
1991-09-06 12:03 ` Christopher Samuel
  -- strict thread matches above, loose matches on Subject: below --
1991-09-06 16:19 Steven M. Stadnicki
1991-09-11 11:27 Bruno Pape
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox