From: Yury Umanets Subject: Re: ReiserFS on a flash device? Date: Sun, 27 Jul 2003 15:03:22 +0400 Message-ID: <1059303802.17567.128.camel@haron.namesys.com> References: <200307261640.13629.swsnyder@insightbb.com> <20030727000301.GE894@ecloud.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <20030727000301.GE894@ecloud.org> List-Id: Content-Type: text/plain; charset="us-ascii" To: Shawn Rutledge Cc: reiserfs-list@namesys.com On Sun, 2003-07-27 at 04:03, Shawn Rutledge wrote: > I wanted to use ReiserFS for an embedded system, but on a 32 or 64 meg CF > card, v3 takes up too much of it for a journal, so it wasn't practical. > Is there a way to make the journal much smaller, or have it grow > on-demand rather than being fixed-size? You can use smaller journal. Say 512 blocks (2MB). And in this case you need patches for supporting non-standard journal. Or use last kernel pre or wait next kernel release. If you want boot from that flash with non-standard reiserfs on it, use GRUB patch from our website for supporting non-standard journal. > In practice the CF card won't > be written to very much (for longevity reasons), but I don't ever want > an embedded system to waste time fscking itself and prompting what to > do about any errors; and at the same time don't see why it should be > required to be a read-only filesystem, as is often done, because it makes > the occasional upgrade harder. > And apparently JFFS2 is only for simple > memory-mapped FLASH chips without built-in write-balancing like CF cards > have. As I know, JFFS2 uses compression for storing data. And if so, driver cannot map flash data to memory. > > I use the mainstream ReiserFS in Linus' kernels on all my home machines > and love it. It's so fast and stable as a rock, and the only problems > I've had were hardware-related. > > On Sat, Jul 26, 2003 at 04:40:13PM -0700, Steve Snyder wrote: > > I was taken aback by Yury Umanets' recent suggestion > > (http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&safe=off&th=d50aa0bf6c7f26d0&seekm=1059231274.28094.40.camel%40haron.namesys.com.lucky.linux.kernel#link11) > > that ReiserFS is not an appropriate for a flash device. > > > > I am currently using it (via Linux kernel v2.4.21) on an E-Disk > > (http://www.bitmicro.com/products_edisk_35_scsiw.php) flash device as the > > front-end of a low-traffic Squid Web cache. The Squid experts recommend > > the use of ReiserFS (with the notail option) for it's superior > > performance in handling lots of small files. I understand that flash has > > a finite number of write cycles, but for this application performance is > > critical, and disk I/O (access times, not STR) is the bottleneck in Squid > > performance. > > > > A quote from the post referred to above: > > > > >But, if you are still want to use reiserfs for flash device, you should > > >do at least the following: > > > > > >(1) Make the journal substantial smaller of size. > > >(2) Don't turn tails off. This is useful to prolong flash live. > > > > More detail, please? How is journal size a factor? How does notails > > reduce flash longevity? > > > > Thanks. > > > > -- We're flying high, we're watching the world passes by...