All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Reiser <reiser@namesys.com>
To: Valdis.Kletnieks@vt.edu
Cc: "Toby Thain" <toby@smartgames.ca>,
	"Łukasz Mierzwa" <prymitive@pcserwis.net>,
	"reiserfs-list@namesys.com" <reiserfs-list@namesys.com>
Subject: Re: any way to disable fsync?
Date: Tue, 11 Jul 2006 22:47:16 -0700	[thread overview]
Message-ID: <44B48CE4.8080504@namesys.com> (raw)
In-Reply-To: <200607120314.k6C3E2hH009619@turing-police.cc.vt.edu>

Valdis.Kletnieks@vt.edu wrote:

>On Tue, 11 Jul 2006 17:04:56 PDT, Hans Reiser said:
>  
>
>>There are legitimate applications where the value of data is low enough
>>and the load is high enough, that losing the database upon crash is ok.
>>
>>I have mixed feelings about making it a mount option for reiser4 because
>>many users will not know what they do.  In the end though, I should just
>>sell the rope and advise but not control what people do with it.   If
>>someone writes it I will take a mount option patch to disable fsync iff
>>it comes with documentation that has a lot of warnings.
>>    
>>
>
>Two things to consider before writing code:
>
>1) Should it be done at the VFS level instead of in the filesystem?
>Architecturally, it might be better there, so it applies to ext3 and jfs
>and others too...
>
Yes, if the below is not done.

> 
>
>2) Alternatively, should it be done on a per-file basis (possibly
>flagged with a chattr or similar)? 
>
Once the pseudofiles interface or sys_reiser4() are debugged and
working, yes.

> It can't be done as an open()
>flag or ioctl(), because you're trying to override what the code does...
>That way, you can mitigate any fsync() load caused by one file, and
>still not leave yourself open to being screwed by some other application
>that tries to fsync() in other directories on that filesystem.  It
>would be Really Bad if /home/fred/db23.sqlite gets corrupted because
>the filesystem was mounted -nofsync because of /home/george/moby.sqlite
>overhead....
>  
>


  reply	other threads:[~2006-07-12  5:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-11 21:03 any way to disable fsync? Łukasz Mierzwa
2006-07-11 21:14 ` Jonathan Briggs
2006-07-11 21:42 ` Hans Reiser
2006-07-11 21:57 ` Valdis.Kletnieks
2006-07-11 23:41   ` Toby Thain
2006-07-11 23:41     ` Toby Thain
2006-07-12  0:04       ` Hans Reiser
2006-07-12  3:14         ` Valdis.Kletnieks
2006-07-12  5:47           ` Hans Reiser [this message]
2006-07-12  4:48       ` Łukasz Mierzwa

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=44B48CE4.8080504@namesys.com \
    --to=reiser@namesys.com \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=prymitive@pcserwis.net \
    --cc=reiserfs-list@namesys.com \
    --cc=toby@smartgames.ca \
    /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.