From: David Masover <ninja@slaphack.com>
To: Nikita Danilov <nikita@clusterfs.com>
Cc: Francesco Biscani <biscani@pd.astro.it>,
Craig Shelley <craig@microtron.org.uk>,
Reiserfs mail-list <Reiserfs-List@Namesys.COM>
Subject: Re: More Slowdown
Date: Wed, 16 Nov 2005 11:28:17 -0600 [thread overview]
Message-ID: <437B6C31.6040706@slaphack.com> (raw)
In-Reply-To: <17275.9103.623119.792961@gargle.gargle.HOWL>
Nikita Danilov wrote:
> Francesco Biscani writes:
> > On Wednesday 16 November 2005 01:45, David Masover wrote:
> > > I got sick of waiting for it and nuked the fsync call. All my kernels
> > > have a custom patch such that sys_fsync just returns true, no matter what.
> >
> > Mhh.. would it be something like this?
> >
> > --- buffer.c.old 2005-11-16 02:36:46.129829994 +0100
> > +++ buffer.c 2005-11-16 02:37:11.125079752 +0100
> > @@ -376,7 +376,7 @@
> >
> > asmlinkage long sys_fsync(unsigned int fd)
> > {
> > - return do_fsync(fd, 0);
> > + return 1;
> > }
> >
> > What are the implications of doing something like this? Is "sync" going to
Yes, sync still works. That, or the "sync" command has found an
entirely new way of wasting my disk bandwidth.
fsync != sync.
I also sincerely hope that no unmounting, hibernation, or other place
the system _needs_ to sync or data WILL be lost depends on fsync. Then
again, that shouldn't matter -- the kernel seems to have fsync and
sys_fsync as separate functions.
> One implication is following:
>
> 1 application like fetchmail downloads a mail message from the server
>
> 2 saves message in the mailbox
>
> 3 fsyncs the mailbox (which is a no-op in our case)
>
> 4 sends notification to the server, which deletes message
>
> 5 crash occurs (transaction made on the step 2 is not yet committed to
> the disk)
>
> 6 after reboot mailbox is restored to the state it had before step 2
>
> 7 message is lost.
Which is why I refuse to submit my patch. It's dangerous and shouldn't
be needed, and considering that many users don't even bother to unmount
flash drives in Windows, can you imagine how dangerous it'd be to make
them run "sync" after every time they save an important document?
Some apps do have a legitimate use for fsync, though I wish it was more
configurable -- for instance, vim, mailservers, etc. Some don't.
Evolution fsyncing every pixel you drag a column is flat-out retarded,
and I'm glad I never needed anything beyond Thunderbird.
next prev parent reply other threads:[~2005-11-16 17:28 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-15 22:22 More Slowdown Thorsten Hirsch
2005-11-15 22:55 ` Artur Makówka
2005-11-15 23:09 ` Andreas Rosander
2005-11-15 23:13 ` Avuton Olrich
2005-11-15 23:23 ` Artur Makówka
2005-11-15 23:44 ` Craig Shelley
2005-11-16 0:45 ` David Masover
2005-11-16 1:40 ` Francesco Biscani
2005-11-16 12:18 ` Nikita Danilov
2005-11-16 13:28 ` John Gilmore
2005-11-16 17:28 ` David Masover [this message]
2005-11-17 0:46 ` evilninja
2005-11-16 18:18 ` Artur Makówka
-- strict thread matches above, loose matches on Subject: below --
2005-11-17 13:47 Hesse, Christian
2005-11-22 10:23 ` Marcel Hilzinger
2005-11-22 10:38 ` Sander
2005-11-22 10:44 ` Marcel Hilzinger
2005-11-22 14:29 ` David Masover
2005-11-22 15:01 ` Marcel Hilzinger
2005-11-22 19:15 ` David Masover
2005-11-22 23:17 ` Hans Reiser
2005-11-22 15:08 ` Sander
2005-11-22 11:34 ` Ingo Bormuth
2005-11-22 12:29 ` Artur Makówka
2005-11-11 13:59 Slowdown is gone & apt-get works with updated reiser4. So nevermind John Gilmore
2005-11-12 3:07 ` michael chang
2005-11-12 6:38 ` Hans Reiser
2005-11-12 9:06 ` John Gilmore
2005-11-14 19:41 ` More Slowdown Craig Shelley
2005-11-14 19:53 ` jp
2005-11-14 20:47 ` Christian Iversen
2005-11-15 14:27 ` Craig Shelley
2005-11-15 18:04 ` Laurent Riffard
2005-11-15 18:42 ` Craig Shelley
[not found] ` <437AF653.9040001@namesys.com>
2005-11-16 9:33 ` Craig Shelley
2005-11-17 3:08 ` michael chang
2005-11-17 4:49 ` Hans Reiser
2005-11-17 12:02 ` Artur Makówka
2005-11-17 12:40 ` Vladimir V. Saveliev
2005-11-17 10:34 ` John Gilmore
2005-11-17 21:12 ` Hans Reiser
2005-11-18 20:45 ` Hans Reiser
2005-11-17 8:56 ` Ingo Bormuth
2005-11-17 9:36 ` PFC
2005-11-17 21:08 ` Hans Reiser
2005-11-19 4:44 ` michael chang
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=437B6C31.6040706@slaphack.com \
--to=ninja@slaphack.com \
--cc=Reiserfs-List@Namesys.COM \
--cc=biscani@pd.astro.it \
--cc=craig@microtron.org.uk \
--cc=nikita@clusterfs.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.