login
Header Space

 
 

Re: UBIFS vs Logfs (was [RFC PATCH] UBIFS - new flash file system)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Artem Bityutskiy <dedekind@...>
Cc: LKML <linux-kernel@...>, <penberg@...>, Jörn Engel <joern@...>, <ext-adrian.hunter@...>, <jwboyer@...>
Date: Tuesday, April 1, 2008 - 5:39 am

Artem Bityutskiy schrieb:


Such as?
Flash (also on block devices) is slow and expensive (when compared to 
modern hard disks) and therefore compression is *very* useful here.
Not only it can potentially save you money; reads and writes will be 
smaller/faster (unless you're editing music and videos, where one won't 
use flash anyway), flash will wear out slower etc.

Is there a filesystem for Linux which can provide transparent 
compression and works for block devices (other than user-space NTFS or 
some outdated ext2 patches)? I don't think so.



Do you mean using hacks like block2mtd? It's hacky, and pretty hard to 
boot a system this way (need to build own initramfs, with a static 
block2mtd or loads of libraries - not something an average user would 
like to do; no distro supports it; updating a kernel would be a pain etc.).



It's a good comparison, but it doesn't show disadvantages of using 
traditional filesystems on flash-based block devices.

I just mentioned the reasons why a filesystem like LogFS would be useful 
on block devices: there are valid reasons to do it.


(...)


True.
Unfortunately, there is no way to access flash directly on flash-based 
block devices (USB-sticks, IDE-flash disks, SSD disks etc.).

Therefore, could an answer be: use a traditional filesystem?

Unfortunately, traditional filesystems were rather designed for rotating 
media / cheap disks (no transparent compression; tend to accumulate 
writes in one area of the disk - more on that - below).



Performance is only one factor in the equation. Other factors are: cost 
and reliability.

I speak from experience: flash-based block devices tend to have poor 
wear-levelling (at least Transcend IDE-flash disks).
To reproduce:
- format a 2 GB Transcend IDE-flash disk with ext3
- write a small file (50-100 kB)
- update that file ~several hundred thousand times - as you finish, 
IDE-flash disk will have 200-300 badblocks

If wear-levelling on the underlying IDE-flash device was any decent, 
writes would be spread on the whole ~2GB surface, totalling in many more 
successful writes.


Again: this is my experience, although it may contradict the theory 
underlined in the link you gave earlier.
You have much more experience with flash file systems: correct me where 
I'm wrong.


-- 
Tomasz Chmielewski
http://wpkg.org

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
UBIFS vs Logfs (was [RFC PATCH] UBIFS - new flash file system), Tomasz Chmielewski, (Tue Apr 1, 4:02 am)
Re: UBIFS vs Logfs (was [RFC PATCH] UBIFS - new flash file s..., Tomasz Chmielewski, (Tue Apr 1, 5:39 am)
Re: UBIFS vs Logfs (was [RFC PATCH] UBIFS - new flash file s..., Tomasz Chmielewski, (Wed Apr 2, 10:17 am)
speck-geostationary