svn commit: r184251 - in head/sys: conf dev/cfi sys

M. Warner Losh imp at bsdimp.com
Tue Oct 28 08:53:04 PDT 2008


In message: <20081028104435.50b3fb0f.stas at FreeBSD.org>
            Stanislav Sedov <stas at FreeBSD.org> writes:
: On Mon, 27 Oct 2008 21:45:47 -0600 (MDT)
: "M. Warner Losh" <imp at bsdimp.com> mentioned:
: 
: > 
: > I tend to think that we should handle the partitioning in GEOM, with
: > higher level things figuring the rest out.  We should expose flash,
: > and its properties upstream in GEOM, but not have a separate layer for
: > flash ala mdt.
: > 
: 
: Yeah, GEOM is the right place for this kind of stuff, indeed. Wear levering
: and similar things could be provided via GEOM too, probably.

Especially if the wear averaging were optional.  Then we could put
'legacy' file systems on top of the wear averaging layer, but could
also develop more optimized file systems with wear averaging built
in.  Which one to use can also be highly application specific for the
best performance.  The story from the Linux world indicates that many
applications just don't matter, but the ones that do often depend on a
specific type of flash is used.  NAND and NOR memories have very
different performance characteristics, and papers presented at Linux
conferences show gains for teams that have created new file systems
for the specific type of flash.

Right now, I expose the SPI flash as 1056 byte blocks (since that's
the size of the block).  A wear averaging layer would write metadata
in the 32 bytes and expose 1024 or 512 byte blocks...

Warner


More information about the svn-src-head mailing list