* Feature request: online fsync disable
@ 2002-08-23 11:29 Xuan Baldauf
2002-08-23 11:52 ` Nikita Danilov
0 siblings, 1 reply; 16+ messages in thread
From: Xuan Baldauf @ 2002-08-23 11:29 UTC (permalink / raw)
To: reiserfs-list
Hello,
I have a server running which sometimes gets very busy. The
running application issues lots of fsync() calls. If it gets
very busy, it sometimes is not as fast as required. I
believe that most of the time is spent in processing fsync()
(commit journal, etc.). In such a situation, I'd like to
switch off all fsync()s and risk data loss instead of hours
of processing time, which in my case is more important.
Is implementing such a feature possible? It may be used as
follows:
mount /partition -o remount,disableFsync
and undone as follows:
mount /partition -o remount,enableFsync
Xuân.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-23 11:29 Feature request: online fsync disable Xuan Baldauf
@ 2002-08-23 11:52 ` Nikita Danilov
2002-08-23 11:56 ` Oleg Drokin
0 siblings, 1 reply; 16+ messages in thread
From: Nikita Danilov @ 2002-08-23 11:52 UTC (permalink / raw)
To: Xuan Baldauf; +Cc: Reiserfs mail-list
Xuan Baldauf writes:
> Hello,
>
> I have a server running which sometimes gets very busy. The
> running application issues lots of fsync() calls. If it gets
> very busy, it sometimes is not as fast as required. I
> believe that most of the time is spent in processing fsync()
> (commit journal, etc.). In such a situation, I'd like to
> switch off all fsync()s and risk data loss instead of hours
> of processing time, which in my case is more important.
>
> Is implementing such a feature possible? It may be used as
> follows:
>
> mount /partition -o remount,disableFsync
>
> and undone as follows:
>
> mount /partition -o remount,enableFsync
>
I don't know your particulars, but one way to do such thing is to write
small shared library implementing no-op fsync() function and to use
LD_PRELOAD.
>
> Xuân.
>
Nikita.
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-23 11:52 ` Nikita Danilov
@ 2002-08-23 11:56 ` Oleg Drokin
2002-08-23 11:59 ` Hans Reiser
0 siblings, 1 reply; 16+ messages in thread
From: Oleg Drokin @ 2002-08-23 11:56 UTC (permalink / raw)
To: Nikita Danilov; +Cc: Xuan Baldauf, Reiserfs mail-list
Hello!
On Fri, Aug 23, 2002 at 03:52:38PM +0400, Nikita Danilov wrote:
> > I have a server running which sometimes gets very busy. The
> > running application issues lots of fsync() calls. If it gets
> > very busy, it sometimes is not as fast as required. I
> > believe that most of the time is spent in processing fsync()
> > (commit journal, etc.). In such a situation, I'd like to
> > switch off all fsync()s and risk data loss instead of hours
> > of processing time, which in my case is more important.
> >
> > Is implementing such a feature possible? It may be used as
> > follows:
> >
> > mount /partition -o remount,disableFsync
> >
> > and undone as follows:
> >
> > mount /partition -o remount,enableFsync
> I don't know your particulars, but one way to do such thing is to write
> small shared library implementing no-op fsync() function and to use
> LD_PRELOAD.
Also there is http://namesys.com/support.html page that describes how one
can get NAMESYS to write virtually any reiserfs feature ;)
Bye,
Oleg
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-23 11:56 ` Oleg Drokin
@ 2002-08-23 11:59 ` Hans Reiser
2002-08-23 12:09 ` Nikita Danilov
` (2 more replies)
0 siblings, 3 replies; 16+ messages in thread
From: Hans Reiser @ 2002-08-23 11:59 UTC (permalink / raw)
To: Oleg Drokin; +Cc: Nikita Danilov, Xuan Baldauf, Reiserfs mail-list, zam
It is a reasonable feature request I think.
Zam, put it into reiser4.1.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-23 11:59 ` Hans Reiser
@ 2002-08-23 12:09 ` Nikita Danilov
2002-08-23 13:08 ` Chris Mason
2002-08-25 21:20 ` Matthias Andree
[not found] ` <20020905035604.GB6004@tapu.f00f.org>
2 siblings, 1 reply; 16+ messages in thread
From: Nikita Danilov @ 2002-08-23 12:09 UTC (permalink / raw)
To: Hans Reiser; +Cc: Oleg Drokin, Xuan Baldauf, Reiserfs mail-list, zam
Hans Reiser writes:
> It is a reasonable feature request I think.
>
> Zam, put it into reiser4.1.
>
I think, in stead of feature "disable fsync", better alternative would
be "disable journalling", or "journal meta-data only".
Nikita.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-23 12:09 ` Nikita Danilov
@ 2002-08-23 13:08 ` Chris Mason
2002-08-23 18:10 ` Xuan Baldauf
0 siblings, 1 reply; 16+ messages in thread
From: Chris Mason @ 2002-08-23 13:08 UTC (permalink / raw)
To: Nikita Danilov
Cc: Hans Reiser, Oleg Drokin, Xuan Baldauf, Reiserfs mail-list, zam
On Fri, 2002-08-23 at 08:09, Nikita Danilov wrote:
> Hans Reiser writes:
> > It is a reasonable feature request I think.
> >
> > Zam, put it into reiser4.1.
> >
>
> I think, in stead of feature "disable fsync", better alternative would
> be "disable journalling", or "journal meta-data only".
Well, if the application doesn't really need fsync, it shouldn't call
it. I'd much rather fix whatever problem is making things too slow.
Xuan, you could try the data logging patches in either data=writeback or
data=journal. Either one will be significantly faster than stock
2.4.19.
-chris
^ permalink raw reply [flat|nested] 16+ messages in thread
* Feature request: online fsync disable
@ 2002-08-23 16:24 Xuan Baldauf
0 siblings, 0 replies; 16+ messages in thread
From: Xuan Baldauf @ 2002-08-23 16:24 UTC (permalink / raw)
To: reiserfs-list
Hello,
I have a server running which sometimes gets very busy. The
running application issues lots of fsync() calls. If it gets
very busy, it sometimes is not as fast as required. I
believe that most of the time is spent in processing fsync()
(commit journal, etc.). In such a situation, I'd like to
switch off all fsync()s and risk data loss instead of hours
of processing time, which in my case is more important.
Is implementing such a feature possible? It may be used as
follows:
mount /partition -o remount,disableFsync
and undone as follows:
mount /partition -o remount,enableFsync
Xuân.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-23 13:08 ` Chris Mason
@ 2002-08-23 18:10 ` Xuan Baldauf
2002-08-24 19:15 ` Chris Mason
2002-08-25 21:21 ` Matthias Andree
0 siblings, 2 replies; 16+ messages in thread
From: Xuan Baldauf @ 2002-08-23 18:10 UTC (permalink / raw)
To: Chris Mason
Cc: Nikita Danilov, Hans Reiser, Oleg Drokin, Reiserfs mail-list, zam
Chris Mason wrote:
> On Fri, 2002-08-23 at 08:09, Nikita Danilov wrote:
> > Hans Reiser writes:
> > > It is a reasonable feature request I think.
> > >
> > > Zam, put it into reiser4.1.
> > >
> >
> > I think, in stead of feature "disable fsync", better alternative would
> > be "disable journalling", or "journal meta-data only".
>
> Well, if the application doesn't really need fsync, it shouldn't call
> it. I'd much rather fix whatever problem is making things too slow.
It's like that: Crashing with data loss creates trouble, but that trouble is
fixable. In our case, being slower than required for some time creates much
more trouble.
>
>
> Xuan, you could try the data logging patches in either data=writeback or
> data=journal. Either one will be significantly faster than stock
> 2.4.19.
Thank you. I guess "data=writeback" will result in the desired behaviour.
Are these patches tested?
>
>
> -chris
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-23 18:10 ` Xuan Baldauf
@ 2002-08-24 19:15 ` Chris Mason
2002-09-04 11:39 ` Xuan Baldauf
2002-08-25 21:21 ` Matthias Andree
1 sibling, 1 reply; 16+ messages in thread
From: Chris Mason @ 2002-08-24 19:15 UTC (permalink / raw)
To: Xuan Baldauf
Cc: Nikita Danilov, Hans Reiser, Oleg Drokin, Reiserfs mail-list, zam
On Fri, 2002-08-23 at 14:10, Xuan Baldauf wrote:
> > Xuan, you could try the data logging patches in either data=writeback or
> > data=journal. Either one will be significantly faster than stock
> > 2.4.19.
>
> Thank you. I guess "data=writeback" will result in the desired behaviour.
>
> Are these patches tested?
Yes, although I've now got 3 or 4 bug fixes from testing in the suse
kernel that I need to put into the pure 2.4.19 patch. I'm doing the
last of the fixes today, and I'll start merging back into the main code
on monday. This was all supposed to happen last week, but I got
diverted by some important other suse work.
If your application is very fsync heavy and doesn't do many non-fsync
writes data=journal will probably be much faster.
-chris
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-23 11:59 ` Hans Reiser
2002-08-23 12:09 ` Nikita Danilov
@ 2002-08-25 21:20 ` Matthias Andree
2002-08-26 11:27 ` Hans Reiser
[not found] ` <20020905035604.GB6004@tapu.f00f.org>
2 siblings, 1 reply; 16+ messages in thread
From: Matthias Andree @ 2002-08-25 21:20 UTC (permalink / raw)
To: reiserfs-list
Hans Reiser <reiser@namesys.com> writes:
> It is a reasonable feature request I think.
A file system that has a switch "oh, you can throw away my data if you
like" is no good at all. If the application + FS interaction leads to
contention, then you have to choices to optimize: the application or the
file system. We've had this kind of discussion before, with a different
focus: on mail transfer agents. There have been considerations of
merging fsync() operations and committing them at the same time, and
asynchronous operation or threading might in fact help the application.
I'd not trust a file system that even has a switch to let it ignore
fsync(). Please let me know if your file systems exhibit this behaviour
so I can statfs() in my applications and if I see a file system that
does ignore fsync() just call raise(SIGKILL);
--
Matthias Andree
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-23 18:10 ` Xuan Baldauf
2002-08-24 19:15 ` Chris Mason
@ 2002-08-25 21:21 ` Matthias Andree
2002-08-26 6:02 ` Valdis.Kletnieks
1 sibling, 1 reply; 16+ messages in thread
From: Matthias Andree @ 2002-08-25 21:21 UTC (permalink / raw)
To: reiserfs-list
Xuan Baldauf <xuan--reiserfs@baldauf.org> writes:
> It's like that: Crashing with data loss creates trouble, but that trouble is
> fixable. In our case, being slower than required for some time creates much
> more trouble.
So don't call fsync(), or call it less frequently.
--
Matthias Andree
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-25 21:21 ` Matthias Andree
@ 2002-08-26 6:02 ` Valdis.Kletnieks
0 siblings, 0 replies; 16+ messages in thread
From: Valdis.Kletnieks @ 2002-08-26 6:02 UTC (permalink / raw)
To: Matthias Andree; +Cc: reiserfs-list
[-- Attachment #1: Type: text/plain, Size: 999 bytes --]
On Sun, 25 Aug 2002 23:21:35 +0200, Matthias Andree <ma+rfs@dt.e-technik.uni-dortmund.de> said:
> So don't call fsync(), or call it less frequently.
This is, of course, assuming that you have any actual control over the
matter. Very few sites actually control their low-level database code,
as it's something that's fiendishly difficult to do well. As a result,
you have two major trends:
1) You run Oracle or Sleepycat or some SQL product, and don't have much
control over when the fsync's get done (or even worse, you're using some
fourth-party package that *itself* calls Oracle or Sleepycat or...).
2) Said products (at least the good ones) have probably already had most
of the truly egregious abuses of fsync() optimized out, so there isn't
much win to trying to optimize further...
(And yes, I *know* Oracle can be configured to use raw disk partitions.
That doesn't change the underlying logic above)
--
Valdis Kletnieks
Computer Systems Senior Engineer
Virginia Tech
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-25 21:20 ` Matthias Andree
@ 2002-08-26 11:27 ` Hans Reiser
0 siblings, 0 replies; 16+ messages in thread
From: Hans Reiser @ 2002-08-26 11:27 UTC (permalink / raw)
To: Matthias Andree; +Cc: reiserfs-list
Matthias Andree wrote:
>Hans Reiser <reiser@namesys.com> writes:
>
>
>
>>It is a reasonable feature request I think.
>>
>>
>
>A file system that has a switch "oh, you can throw away my data if you
>like" is no good at all.
>
Yes it is, consider tmpfs, consider web cache appliances..... this is
just another variation on it.
> If the application + FS interaction leads to
>contention, then you have to choices to optimize: the application or the
>file system.
>
If the app is closed source....
> We've had this kind of discussion before, with a different
>focus: on mail transfer agents. There have been considerations of
>merging fsync() operations and committing them at the same time, and
>asynchronous operation or threading might in fact help the application.
>
>I'd not trust a file system that even has a switch to let it ignore
>fsync(). Please let me know if your file systems exhibit this behaviour
>so I can statfs() in my applications and if I see a file system that
>does ignore fsync() just call raise(SIGKILL);
>
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-08-24 19:15 ` Chris Mason
@ 2002-09-04 11:39 ` Xuan Baldauf
2002-09-04 12:13 ` Oleg Drokin
0 siblings, 1 reply; 16+ messages in thread
From: Xuan Baldauf @ 2002-09-04 11:39 UTC (permalink / raw)
To: Chris Mason
Cc: Nikita Danilov, Hans Reiser, Oleg Drokin, Reiserfs mail-list, zam
Chris Mason wrote:
> On Fri, 2002-08-23 at 14:10, Xuan Baldauf wrote:
>
> > > Xuan, you could try the data logging patches in either data=writeback or
> > > data=journal. Either one will be significantly faster than stock
> > > 2.4.19.
> >
> > Thank you. I guess "data=writeback" will result in the desired behaviour.
> >
> > Are these patches tested?
>
> Yes, although I've now got 3 or 4 bug fixes from testing in the suse
> kernel that I need to put into the pure 2.4.19 patch. I'm doing the
> last of the fixes today, and I'll start merging back into the main code
> on monday. This was all supposed to happen last week, but I got
> diverted by some important other suse work.
>
> If your application is very fsync heavy and doesn't do many non-fsync
> writes data=journal will probably be much faster.
>
> -chris
Hello Chris,
I've been searching for the loggin patches at ftp://ftp.namesys.com/ and below,
but could not find any patch named "logging" or containg the word "writeback".
Can you point me to the logging patches?
Thank you. :-)
Xuân.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
2002-09-04 11:39 ` Xuan Baldauf
@ 2002-09-04 12:13 ` Oleg Drokin
0 siblings, 0 replies; 16+ messages in thread
From: Oleg Drokin @ 2002-09-04 12:13 UTC (permalink / raw)
To: Xuan Baldauf
Cc: Chris Mason, Nikita Danilov, Hans Reiser, Reiserfs mail-list, zam
Hello!
On Wed, Sep 04, 2002 at 01:39:30PM +0200, Xuan Baldauf wrote:
> I've been searching for the loggin patches at ftp://ftp.namesys.com/ and below,
> but could not find any patch named "logging" or containg the word "writeback".
> Can you point me to the logging patches?
ftp.suse.com:/pub/people/mason/patches/data-logging
Bye,
Oleg
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Feature request: online fsync disable
[not found] ` <20020905035604.GB6004@tapu.f00f.org>
@ 2002-09-05 10:39 ` Hans Reiser
0 siblings, 0 replies; 16+ messages in thread
From: Hans Reiser @ 2002-09-05 10:39 UTC (permalink / raw)
To: Chris Wedgwood
Cc: Oleg Drokin, Nikita Danilov, Xuan Baldauf, Reiserfs mail-list,
zam
Chris Wedgwood wrote:
>On Fri, Aug 23, 2002 at 03:59:58PM +0400, Hans Reiser wrote:
>
> It is a reasonable feature request I think.
>
>No it's not.
>
>It's a terrible idea. If someone calls fsync, they call it for a
>reason and have various expectations.
>
Usually these expectations involve a user not wanting to use mkreiserfs
at every boot. If the expectations are wrong, then all power to the user.
> You should not throw these
>away or else you may as well just start writing random data all over
>the place.
>
>
>
> --cw
>
>
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2002-09-05 10:39 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-23 11:29 Feature request: online fsync disable Xuan Baldauf
2002-08-23 11:52 ` Nikita Danilov
2002-08-23 11:56 ` Oleg Drokin
2002-08-23 11:59 ` Hans Reiser
2002-08-23 12:09 ` Nikita Danilov
2002-08-23 13:08 ` Chris Mason
2002-08-23 18:10 ` Xuan Baldauf
2002-08-24 19:15 ` Chris Mason
2002-09-04 11:39 ` Xuan Baldauf
2002-09-04 12:13 ` Oleg Drokin
2002-08-25 21:21 ` Matthias Andree
2002-08-26 6:02 ` Valdis.Kletnieks
2002-08-25 21:20 ` Matthias Andree
2002-08-26 11:27 ` Hans Reiser
[not found] ` <20020905035604.GB6004@tapu.f00f.org>
2002-09-05 10:39 ` Hans Reiser
-- strict thread matches above, loose matches on Subject: below --
2002-08-23 16:24 Xuan Baldauf
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.