All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [PATCH CFT] tons of logging patches
@ 2002-06-04 15:48 berthiaume_wayne
  2002-06-04 16:55 ` Chris Mason
  0 siblings, 1 reply; 31+ messages in thread
From: berthiaume_wayne @ 2002-06-04 15:48 UTC (permalink / raw)
  To: mason; +Cc: reiserfs-list, manuel.krause

	Chris, isn't there a danger, remotely, that with data=ordered you
could lose your data? For Ext3FS, if the machine should crash after the
filesystem data is updated but before the metadata is updated, fsck(8) will
reclaim the newly allocated blocks; therefore, the updated file is no longer
correct.
Wayne.

-----Original Message-----
From: Chris Mason [mailto:mason@suse.com]
Sent: Tuesday, June 04, 2002 9:12 AM
To: Manuel Krause
Cc: reiserfs-list
Subject: Re: [reiserfs-list] [PATCH CFT] tons of logging patches


On Mon, 2002-06-03 at 23:28, Manuel Krause wrote:

> 
> So, VMware is stable with it, too, on my well known "heavy-private-test" 
> of it (running Norton SpeedDisk at least twice within a most recent 
> VMware Win98). It doesn't show greatly different timings than to my 
> setup before though having a different disk i/o pattern (due to the 
> missing aa patches)... and me having a reduced RAM from 512to256MB at 
> the moment. And I should be honest to say I can't give exact timings as 
> the important disk contents changed during last weeks. But the 
> disk-access-times/related-to-the-content are definitively _not_ higher 
> than before!

same speed on 1/2 the ram isn't bad ;-)

> 
> > 
> > Great to hear, thanks for trying things out.
> > 
> > data=logging will be the slowest mode for everything except mail servers
> > and write heavy databases (or other apps that hammer on O_SYNC/fsync). 
> > This is because all the data gets written twice, once to log and once to
> > the main disk.  It helps synchronous writes by writing to the log in
> > quick sequential bursts, and then writing back to the main disk in
> > larger chunks.
> 
> Yes, I assumed/learnt that from your very previous explanations. But I 
> don't see the point "slowest", so far, on here.

try dbench, or any streaming write.  It should be roughtly 1/2 as fast
as the default mode.  If it isn't data=journal probably isn't really
activated (it sends a printk on mount about using journaled data mode).

> 
> This is a home/single session ?non?-production system on here. 1 to 2 
> IDE disks, one processor... notebook, you'd remember this setup from my 
>   mails.
> 
> > 
> > data=ordered will usually be fastest for streaming appends to a file. 
> > The rest of the time it will be the same or slightly slower than the
> > default (data=writeback).
> 
> What would be my recommended mount option later then (mentionned in the 
> manpages or on the webpage?!) Mmmh: I see I test that at the moment...

data=ordered will work best for most people.  The performance hit is
very small, and you won't have any more garbage in files after a crash.

> 
> Why is no combo possible? Meant as: Could/would that bring advantages in 
> future?!!

Since there are no userspace transactions, data=journal is only useful
in a very limited set of cases.  The fact that everything is logged
allows me to cheat, and skip some of the steps to keep block allocations
and deallocations safe in the writeback data mode.

intermezzo is the only app that really needs data=journal with the rest
of the FS mounted with some other write mode (for speed).  The patch has
a way for them to enable data logging mode on a single file.

I think I'll forward the patch announcement to the intermezzo list...

-chris


^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: Re: [PATCH CFT] tons of logging patches
@ 2002-07-14  0:52 Manuel Krause
  2002-08-02 12:28 ` Chris Mason
  0 siblings, 1 reply; 31+ messages in thread
From: Manuel Krause @ 2002-07-14  0:52 UTC (permalink / raw)
  To: Chris Mason; +Cc: reiserfs-list

On 07/12/2002 09:43 PM, Chris Mason wrote:
> On Tue, 2002-07-09 at 10:00, Chris Mason wrote:
> 
>>On Tue, 2002-07-09 at 09:52, Dieter Nützel wrote:
>>
>>>On Monday, 8 July 2002 13:51, Chris Mason wrote:
>>>
>>>>On Wed, 2002-07-03 at 20:28, Manuel Krause wrote:
>>>>
>>>>
>>>>>So far the 13 prerelease works fine under rootflags boot and 
>>>>>mount/remount option "data=ordered" on here.
>>>>
>>>>I think I've got the bug, it was newly introduced in -13.  New stuff
>>>>will be uploaded today.
>>>>
>>>
>>Sigh, further testing showed I'd only fixed half of the bug.  The other
>>half is somewhere deep writepage/truncate interaction.  I'm still trying
>>to find it.
> 
> 
> Well, after a week of fixing minor things and adding debugging code,
> this bug still goes unsolved.  The only good news is that I can also
> trigger it on pure 2.4.19-rc1 and ext2.  The bug seems to either be in
> the VM or my ram, so I'm having a little memtest86 party overnight.
> 
> I've uploaded 03-beta-data-logging-16, it should be more stable and
> faster than -11 and -13 were, but includes more debugging checks to try
> and make sure I'm not screwing things up.  You can grab the patches at:
> 
> ftp://ftp.suse.com/pub/people/mason/patches/data-logging
> 

Thank you, Chris!

It's working fine under rootflags set and mount/remount options 
"noatime,notail,data=ordered".
Nothing got wrong on here due to data-logging-13.

Netscape7 dropped its load time again by 3secs of (previously 14+1), 
OpenOffice1 increased by 1sec (of average 17secs previously). To explain 
the previous state: I've only changed -pre9 to -rc1 and data-logging 
from -10(-pre9)..13(-rc1)..11(-rc1)..16(-rc1, now!) from the old patchset.

> If anyone wants to try and reproduce my memory corruption bug (can and
> probably will lead to FS corruption), just let 10 fsx processes run in a
> loop for ~3 hours or so on an SMP machine.
> 
> -chris
> 

Is this possible to be reproduced on uniprocessor machines, too ?


Best regards,

Manuel


^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [PATCH CFT] tons of logging patches
@ 2002-06-22 20:02 Dieter Nützel
  2002-06-24 19:05 ` Chris Mason
  0 siblings, 1 reply; 31+ messages in thread
From: Dieter Nützel @ 2002-06-22 20:02 UTC (permalink / raw)
  To: Chris Mason; +Cc: ReiserFS List

On Friday, Chris wrote:

> ftp.suse.com/pub/people/mason/patches/data-logging has a new
> beta-data-logging-10.diff.gz
>
> This one:
>
> compiles as a module (thanks Jeff Mahoney)
>
> has a highmem bug fixed with data=journal (help from Andrea)

Hello Chris,

should I run this with -aa kernel?

> Fixes a problem with relocated/different sized journal devices.  This
> was a merge error on my part.
>
> One tester reports a hang that I can't reproduce here, I'm still trying.

You do not mean me (page coloring)?

Regards,
	Dieter

BTW I have my dual Athlon MP 1900+ up and "flying"...
-- 
Dieter Nützel
Graduate Student, Computer Science

University of Hamburg
Department of Computer Science
@home: Dieter.Nuetzel@hamburg.de


^ permalink raw reply	[flat|nested] 31+ messages in thread
* [PATCH CFT] tons of logging patches
@ 2002-06-03  3:51 Chris Mason
  2002-06-03  4:04 ` Chris Mason
                   ` (3 more replies)
  0 siblings, 4 replies; 31+ messages in thread
From: Chris Mason @ 2002-06-03  3:51 UTC (permalink / raw)
  To: reiserfs-list

Hello everyone,

ftp.suse.com/pub/people/mason/data-logging

has beta code that gives you the following:

external logging devices
data logging mount option (makes fsync and O_SYNC faster)
ordered data mount option (no more garbage in your files after a crash)

optimizations to keep kupdate from triggering commits every 5 seconds
optimizations for tiny transactions to reduce CPU usage and IO.
optimizations for better locking and fewer calls to wakeup()

In short, it adds a bunch of features and makes everything faster.  The
changes are very large, but they also build on older patches that have
been circulating around for months.  It has been through a weekend of
load testing here, but I still won't be surprised if people find
corruption causing bugs.

It needs broad testing and benchmarking, in all the data modes, with a
standard and external journal.

-chris



^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2002-08-02 12:28 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-04 15:48 [PATCH CFT] tons of logging patches berthiaume_wayne
2002-06-04 16:55 ` Chris Mason
  -- strict thread matches above, loose matches on Subject: below --
2002-07-14  0:52 Manuel Krause
2002-08-02 12:28 ` Chris Mason
2002-06-22 20:02 Dieter Nützel
2002-06-24 19:05 ` Chris Mason
2002-07-09 13:52   ` Dieter Nützel
2002-07-09 14:00     ` Chris Mason
2002-06-03  3:51 Chris Mason
2002-06-03  4:04 ` Chris Mason
2002-06-03  8:46 ` Matthias Andree
2002-06-03 12:26   ` Chris Mason
2002-06-04  0:45 ` Manuel Krause
2002-06-04  1:49 ` Manuel Krause
2002-06-04  2:20   ` Chris Mason
2002-06-04  3:28     ` Manuel Krause
2002-06-04 13:12       ` Chris Mason
2002-06-05 21:13         ` Manuel Krause
2002-06-05 21:27           ` Manuel Krause
2002-06-05 21:32             ` Chris Mason
2002-06-06  0:09             ` Chris Mason
2002-06-12 22:32               ` Manuel Krause
2002-06-17  0:47                 ` Chris Mason
2002-06-17  0:31                   ` Manuel Krause
2002-06-17 19:04                     ` Chris Mason
2002-06-21  0:25                       ` Chris Mason
2002-06-28 13:51                       ` Chris Mason
2002-07-02 18:16                         ` Chris Mason
2002-07-03 20:56                           ` Chris Mason
2002-07-04  0:28                             ` Manuel Krause
2002-07-08 13:51                               ` Chris Mason
2002-06-04  2:57   ` Chris Mason
2002-06-04  4:16     ` Manuel Krause
2002-06-04 13:34       ` Chris Mason
2002-06-04 21:20         ` Hans Reiser
2002-06-05  0:16           ` Robert Brockway
2002-06-05  8:43           ` Oleg Drokin

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.