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 --
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Willy Tarreau | Re: Linux 2.6.21 |
| Jan Kundrát | kswapd high CPU usage with no swap |
git: | |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| David Miller | Re: [PATCH] tcp: splice as many packets as possible at once |
