public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Grant Edwards" <grante@visi.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Simple flash filesystem?
Date: Mon, 05 Feb 2001 14:10:00 -0000	[thread overview]
Message-ID: <20010205221012.183C07A814@visi.com> (raw)

I've been looking for info on flash filesystems, and have found pretty
much nothing.

What I have found are flash device-drivers that emulate 512-byte 
block devices so that you can use them in place of disk drives
underneath file systems designed for disk drives.  These filesystems
are designed with (and optimized for) the following assumptions:

 1) The physical media has 512 blocks that are independently
    erasable/writable.

 2) Read and write operations are both an order of magnitude slower
    than RAM. 

 3) Read and write times for a sector depend on the sector number (i.e.
    there is a seek-time).

 4) There is zero cost associated with an erase (either elapsed time
    or media lifetime).

For flash, none of these assumptions are true.  Blocks can only be erased
in large chunks (typically 64k).  Read operations are the same speed
(roughly) as RAM.  Write operations are an order of magnitude slower.
Erase operations are _another_ order of magnitude slower and have an
associated media life cost.  Read/write speeds are independant of address.

Though it may be the most expedient thing to do in the short-term, 
It seems like a bad idea to take a complex filesystem designed for disk
and use it for a flash.  For example, it seems like a waste of effort
to impliment 512 byte blocks when the filesystem uses them in 4K clusters.

Rather than try to make a flash act like a disk drive (and using a
disk-drive filesystem), has anybody seen any information on a simple
filesystem designed for flash?

-- 
Grant Edwards
grante@visi.com

             reply	other threads:[~2001-02-05 14:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-05 14:10 Grant Edwards [this message]
2001-02-05 14:29 ` Lewin A.R.W. Edwards
2001-02-06  8:05   ` [ECOS] " Grant Edwards
2001-02-06  8:21     ` Lewin A.R.W. Edwards
2001-02-06  8:43       ` Grant Edwards
2001-02-06  9:20     ` Wilson Kwan
2001-02-06  9:28       ` Grant Edwards

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=20010205221012.183C07A814@visi.com \
    --to=grante@visi.com \
    --cc=ecos-discuss@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).