The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: drsalists@gmail.com (Dan Stromberg)
Subject: [TUHS] shutdown for pre-v7 unix
Date: Wed, 16 Jul 2014 19:09:11 -0700	[thread overview]
Message-ID: <CAGGBd_ocQ_NouK7upV9YE119i8N2M1dqunJ1bG4HV4N7Awf-uA@mail.gmail.com> (raw)
In-Reply-To: <alpine.BSF.2.00.1407170710560.61582@aneurin.horsfall.org>

On Wed, Jul 16, 2014 at 2:12 PM, Dave Horsfall <dave at horsfall.org> wrote:
> On Wed, 16 Jul 2014, Mark Longridge wrote:
>
>> I've been typing sync;sync at the shell prompt then hitting ctrl-e to
>> get out of simh to shutdown v5 and v6 unix.
>
> The "correct" way used to be:
>
>     sync
>     sync
>     sync

3 sync's was net.wisdom for a long time, but some discussions in the
Linux mailing lists suggested that 2 was enough all along.

The first schedules all dirty buffers to be flushed to disk.

The second does the same, but to provide an ordering guarantee,
doesn't return until the dirty buffers from the first are finished.

Hence the 2.

But I'm a relative newcomer to *ix - I didn't get involved until SunOS 4.



  parent reply	other threads:[~2014-07-17  2:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-16 18:55 Mark Longridge
2014-07-16 20:52 ` Brantley Coile
2014-07-17  2:29   ` Win Treese
2014-07-16 21:12 ` Dave Horsfall
2014-07-16 21:23   ` Dave Horsfall
2014-07-17  2:09   ` Dan Stromberg [this message]
2014-07-17 15:58     ` Warner Losh
2014-07-17 16:15       ` Clem Cole
2014-07-17 18:04         ` Ronald Natalie
2014-07-17 20:16           ` Clem Cole
2014-07-18  2:26             ` Ronald Natalie
2014-07-18  2:52               ` Tim Newsham
2014-07-18  2:58                 ` Milo Velimirovic
2014-07-18  3:42                   ` Warner Losh
2014-07-16 19:47 Noel Chiappa
2014-07-17  2:40 Norman Wilson
2014-07-17  3:55 Noel Chiappa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGGBd_ocQ_NouK7upV9YE119i8N2M1dqunJ1bG4HV4N7Awf-uA@mail.gmail.com \
    --to=drsalists@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).