mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Soft updates for 2.5?
@ 2001-06-30 10:41 Alex Khripin
  2001-07-02  2:33 ` Rik van Riel
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Khripin @ 2001-06-30 10:41 UTC (permalink / raw)
  To: linux-kernel

Hi,
There was a discussion in October, 2000, about the Granger and McKusick paper 
on soft updates for the BSD FFS. Reading the thread, nothing conclusive seemed
to come out of it.
The paper is available at  http://www.pdos.lcs.mit.edu/~ganger/papers/CSE-TR-25
4-95/
The code for the BSD implementation is available there as well.
The general idea of the paper is to prevent filesystem corruption due to
interrupted writes of circular dependencies. The general principle is, that if
there is a circular metadata dependency between two blocks A, and B, caused
by operations C and D, where C requires A to be changed before B, and D,
which comes after C, requires B to be changed after A. This occurs in many
metadata operations. To do this, soft updates undo the operation D in-memory,
making block A' and B', which only have operation C applied to them. Then
A' is written to disk, and then B' is written do disk. The operation is then
redone in memory. Thus, the disk is still consistent, and the in-memory image
is still the same. If the system is interrupted before B is written, there are
minor inconsistencies, like allocated data blocks not belonging to a file, and
an incorrect file size, but no inconsistencies that can cause further 
corruption
if untreated. These problems can be fixed quickly without a long fsck.
Soft updates offer a viable alternative to journaling, and require no changes
to the physical filesystem layout.
A soft-update ext2 filesystem can keep more metadata in memory without having
to sync for fear of errors.
This is not intended to replace journaling filesystems, like reiserfs, because
those have optimizations like B-trees, which cannot be implemented on ext2.
However, this would significantly improve the reliability and speed of ext2.
-Alex Khripin



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

* Re: Soft updates for 2.5?
  2001-06-30 10:41 Soft updates for 2.5? Alex Khripin
@ 2001-07-02  2:33 ` Rik van Riel
  2001-07-02  2:58   ` Michael Rothwell
  0 siblings, 1 reply; 4+ messages in thread
From: Rik van Riel @ 2001-07-02  2:33 UTC (permalink / raw)
  To: Alex Khripin; +Cc: linux-kernel

On Sat, 30 Jun 2001, Alex Khripin wrote:

> There was a discussion in October, 2000, about the Granger and
> McKusick paper on soft updates for the BSD FFS. Reading the thread,
> nothing conclusive seemed to come out of it.

What you want is ext3.

It is a journaling version of ext2, which basically
means you get all the advantages of soft updates and
a bit more (due to the atomicity that journaled
transactions can give you).

It should be superior to softupdates in both the
consistency area and the performance area (due to
the fact that stuff is in the journal, you have
more freedom to reorder the writes to the "main"
part of the filesystem).

regards,

Rik
--
Virtual memory is like a game you can't win;
However, without VM there's truly nothing to lose...

http://www.surriel.com/		http://distro.conectiva.com/

Send all your spam to aardvark@nl.linux.org (spam digging piggy)


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

* Re: Soft updates for 2.5?
  2001-07-02  2:33 ` Rik van Riel
@ 2001-07-02  2:58   ` Michael Rothwell
  2001-07-02  3:17     ` Daniel Phillips
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Rothwell @ 2001-07-02  2:58 UTC (permalink / raw)
  To: Rik van Riel; +Cc: Alex Khripin, linux-kernel

While on the topic of reslilent, high-performance filesystems, what ever
became of "Tux", Daniel Philip's mythical WAFL-type filesystem?

On 01 Jul 2001 23:33:52 -0300, Rik van Riel wrote:
> On Sat, 30 Jun 2001, Alex Khripin wrote:
> 
> > There was a discussion in October, 2000, about the Granger and
> > McKusick paper on soft updates for the BSD FFS. Reading the thread,
> > nothing conclusive seemed to come out of it.
> 
> What you want is ext3.
> 
> It is a journaling version of ext2, which basically
> means you get all the advantages of soft updates and
> a bit more (due to the atomicity that journaled
> transactions can give you).
> 
> It should be superior to softupdates in both the
> consistency area and the performance area (due to
> the fact that stuff is in the journal, you have
> more freedom to reorder the writes to the "main"
> part of the filesystem).
> 
> regards,
> 
> Rik
> --
> Virtual memory is like a game you can't win;
> However, without VM there's truly nothing to lose...
> 
> http://www.surriel.com/		http://distro.conectiva.com/
> 
> Send all your spam to aardvark@nl.linux.org (spam digging piggy)
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
--
Michael Rothwell
rothwell@holly-springs.nc.us



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

* Re: Soft updates for 2.5?
  2001-07-02  2:58   ` Michael Rothwell
@ 2001-07-02  3:17     ` Daniel Phillips
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Phillips @ 2001-07-02  3:17 UTC (permalink / raw)
  To: Michael Rothwell, Rik van Riel; +Cc: Alex Khripin, linux-kernel

On Monday 02 July 2001 04:58, Michael Rothwell wrote:
> While on the topic of reslilent, high-performance filesystems, what ever
> became of "Tux", Daniel Philip's mythical WAFL-type filesystem?

He's working on it.

--
Daniel

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

end of thread, other threads:[~2001-07-02  3:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-30 10:41 Soft updates for 2.5? Alex Khripin
2001-07-02  2:33 ` Rik van Riel
2001-07-02  2:58   ` Michael Rothwell
2001-07-02  3:17     ` Daniel Phillips

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®