All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Reiser <reiser@namesys.com>
To: Valdis.Kletnieks@vt.edu
Cc: Matthias Andree <ma@dt.e-technik.uni-dortmund.de>,
	reiserfs-list@namesys.com
Subject: Re: fsync() Performance Issue
Date: Mon, 29 Apr 2002 22:56:15 +0400	[thread overview]
Message-ID: <3CCD974F.70002@namesys.com> (raw)
In-Reply-To: 200204291858.g3TIw8Qn009356@foo-bar-baz.cc.vt.edu

Valdis.Kletnieks@vt.edu wrote:

>On Mon, 29 Apr 2002 19:56:59 +0200, Matthias Andree <ma@dt.e-technik.uni-dortmund.de>  said:
>
>  
>
>>Barring write cache effects, fsync() only returns after all blocks are
>>on disk. While I'm not sure if and if yes, which, Linux file systems are
>>affected, but for portable applications, be aware that sync() may return
>>prematurely (and is allowed to!).
>>    
>>
>
>And in fact is the reason for the old "recipe":
>  # sync
>  # sync
>  # sync
>  # reboot
>
>On the older Vax 750-class machines, sync could return LONG before the blocks
>were all flushed - the second 2 sync's were so you were busy typing for
>several seconds while the disks whirred.  Failure to understand the typing
>speed issue has lead at least one otherwise-clued author to recommend:
>  # sync;sync;sync
>  # reboot
>
>(the distinction being obvious if you think about when the shell reads the
>commands, and when it does the fork/exec for each case....)
>
>  
>
Finally I understand this.  Doing more than one sync always seemed 
mysterious to me.;-)

Thanks Matthias.

Hans


  reply	other threads:[~2002-04-29 18:56 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-26 20:28 fsync() Performance Issue berthiaume_wayne
2002-04-29 16:20 ` Russell Coker
2002-04-29 16:30   ` Chris Mason
2002-04-29 16:32   ` Toby Dickenson
2002-04-29 16:45     ` Chris Mason
2002-04-29 17:56     ` Matthias Andree
2002-04-29 18:58       ` Valdis.Kletnieks
2002-04-29 18:56         ` Hans Reiser [this message]
2002-04-30 14:20 ` Oleg Drokin
2002-04-30 14:27   ` Chris Mason
2002-05-02  5:07   ` Christian Stuke
2002-05-02  6:20     ` Oleg Drokin
  -- strict thread matches above, loose matches on Subject: below --
2002-04-29 17:26 berthiaume_wayne
2002-04-30 14:45 berthiaume_wayne
2002-05-03 20:35 berthiaume_wayne
2002-05-03 22:00 ` Chris Mason
2002-05-04  2:05   ` Hans Reiser
2002-05-04  5:41     ` Valdis.Kletnieks
2002-05-04 13:11     ` Chris Mason
2002-05-04 14:59       ` Hans Reiser
2002-05-06 12:40         ` Chris Mason
2002-05-06 13:02           ` Hans Reiser
2002-05-06 21:21           ` Hans Reiser
2002-05-06 22:57             ` Chris Mason
2002-05-06 23:41               ` Hans Reiser
2002-05-07  1:17               ` Manuel Krause
2002-05-07  2:04                 ` Chris Mason
2002-05-07 20:26                   ` Manuel Krause
2002-05-08  1:22                     ` Chris Mason
2002-05-06 12:54 berthiaume_wayne

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=3CCD974F.70002@namesys.com \
    --to=reiser@namesys.com \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=ma@dt.e-technik.uni-dortmund.de \
    --cc=reiserfs-list@namesys.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.