From: "Jörn Engel" <joern@logfs.org>
To: matthieu castet <castet.matthieu@free.fr>
Cc: Linus Torvalds <torvalds@osdl.org>,
linux-mtd@lists.infradead.org,
Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: LogFS merge
Date: Sat, 3 May 2008 14:00:05 +0200 [thread overview]
Message-ID: <20080503120005.GA32608@logfs.org> (raw)
In-Reply-To: <481C3087.8020501@free.fr>
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:
1.
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.
2.
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
easier.
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.
5.
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
flash.
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.
6.
"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
already.
Jörn
--
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
next prev parent reply other threads:[~2008-05-03 12:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-03 9:29 LogFS merge matthieu castet
2008-05-03 12:00 ` Jörn Engel [this message]
2008-05-04 16:20 ` Thomas Gleixner
2008-05-04 18:04 ` Josh Boyer
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=20080503120005.GA32608@logfs.org \
--to=joern@logfs.org \
--cc=castet.matthieu@free.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=torvalds@osdl.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox