From: jpc@fct.unl.pt (Jose Pina Coelho)
Subject: Re: why three syncs?
Date: 5 Sep 91 10:11:09 GMT [thread overview]
Message-ID: <JPC.91Sep5101109@terra.fct.unl.pt> (raw)
In-Reply-To: zark@csd4.csd.uwm.edu's message of 4 Sep 91 21: 42:31 GMT
In article <1991Sep4.214231.29086@uwm.edu> zark@csd4.csd.uwm.edu
(Steven M Kosloske) writes:
I'm not sure about other UNIX admin's, but I got started doing three sync
commands because that was what was suggested in the SCO Xenix manual.
In reality, all you should need is one, but better safe then sorry, we
run three. I've seen some do more than three before a shutdown. Want to
be sure that everything is closed and written to disk before powering
down a Unix system.
From the ultrix manual pages:
Name: sync(1) - update the super block
Description:
The sync command executes the sync system primitive. The sync
command can be called to insure all disk writes have been com-
pleted before the processor is halted in a way not suitably done
by reboot(8) or halt(8).
See sync(2) for details on the system primitive.
Name: sync(2) - update super-block
Description:
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.
[...]
# The writing, although scheduled, is not
# necessarily complete upon return from sync.
This last paragraph is the important one. The first sync only asks
the system to start flushing the cache, so, you need a certain time
for the cache to be clear.
The next two syncs are called to give the system time to flush.
--
Jose Pedro T. Pina Coelho | BITNET/Internet: jpc@fct.unl.pt
Rua Jau N 1, 2 Dto | UUCP: ...!mcsun!unl!jpc
1300 Lisboa, PORTUGAL | Home phone: (+351) (1) 640767
Sex is not the answer. Sex is the question. "Yes" is the answer.
next prev parent reply other threads:[~1991-09-05 10:11 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 [this message]
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
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