[lkml]   [2008]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: LogFS merge
On Sat, 3 May 2008 11:29:43 +0200, matthieu castet wrote:
> Shouldn't this get review by mtd guys first ?

They were on Cc: on most of the review rounds.

> Also for info, there have been some issue raised by the ubifs developer [1].

I am aware of them. When ignoring FUD and personal things (Artem and I
have a history), it should come down to roughly this:

Ubifs takes the easy approach and uses ubi for wear leveling, bad block
handling, ets. Saves a ton of work, gives quick results and is limited
by ubi scan time, which is O(n).

Logfs ignores ubi and does wear leveling, bad block handling, etc.
itself. Bad block handling in particular is not too robust yet. If you
expect blocks to rot away after mkfs time, logfs is a bad choice.

Logfs still scans the medium. It currently does not store free space
maps and has to search for free space the hard way. I still have a
patch to keep the map in-memory, which will avoid any rescans. But the
real deal is to store it in a file with some additional tricks to make
things work in a log-structured fashion. Not done yet.

Ubifs has a seperate region to store its free space map, which has its
own GC. Wear leveling is dealt with through ubi. Again, ubi makes life

3. Code size.

4. Mount time. I don't see any numbers I could quote, but I believe
ubifs is somewhere close to a second. Does anyone know? Logfs is in
the 10-60ms range.

Ubifs has write-back caching for file data. Their benchmarks blow jffs2
or logfs out of the water, which isn't surprising when comparing DRAM to

Logfs has write-back caching for metadata (indirect blocks, etc.) but
immediatly writes normal data. Some embedded folks actually prefer this
approach, as it is more deterministic. For most uses it simply throws
away some performance. Extending caching to normal data isn't too hard
and fairly high on my list.

"Logfs isn't finished yet."
My usual answer to that is that Linux isn't finished yet either. We're
still improving performance, adding hardware support and fixing bugs
some 15 years after people started using it. The question is not
whether there are improvements left, but whether it is good enough


I've never met a human being who would want to read 17,000 pages of
documentation, and if there was, I'd kill him to get him out of the
gene pool.
-- Joseph Costello
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2008-05-03 14:03    [W:0.044 / U:1.752 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site