Re: document ext3 requirements



On Sun, 4 Jan 2009, Rob Landley wrote:

On Sunday 04 January 2009 17:13:08 Sitsofe Wheeler wrote:
Pavel Machek wrote:
Is there linux filesystem that can handle that? I know jffs2, but
that's unsuitable for stuff like USB thumb drives, right?

This raises the question that if nothing can handle it which FS is the
least bad? The last I heard people were saying that with cheap SSDs the
recommendation was FAT [1] but in the future btrfs, nilfs and logfs
would be better.

[1] http://lkml.org/lkml/2008/10/14/129

I wonder if the flash filesystems could be told via mount options that they're
to use a normal block device as if it was a flash with granularity X?

They can't explicitly control erase, but writing to any block in a block group
will erase and rewrite the whole group so they can just do large write
transactions close to each other and the device should aggregate enough for an
erase block. (Plus don't touch anything _outside_ where you guess an erase
block to be until you've finished writing the whole block, which they
presumably already do.)

this capability would help for raid arrays as well.

if you have a raid5/6 array writing one sector to a stripe results in you reading the pairity block for that stripe, reading the rest of the sectors for the block on that disk, recalculating the pairity information and writing the changed sectors out to both disks.

if you are writing the entire stripe, you could calculate the pairity and just write everything out (no reads nessasary).

this would make sequential writes to raid5/6 arrays almost as fast as if they were raid0 stripes.

if you could define 'erase block size' to be the raid stripe size the same approach would work for both systems.

when I asked about the on the md list a couple of years ago, the response that I got was that it was a good idea, but there was no way to get the information about the low-level topology to the higher levels that would need to act on the information. now that there is a second case where this is needed, any mechanism that gets created should be made so that it's useable for both.

David Lang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Problem writing to directly flash while IPSM running
    ... We are using the Intel Strata Flash 28F640J3A120 chips. ... Reading of the specification would seem to indicate that if an erase ... Similarly, when writing the program. ... Following on from that - how do I disable interrupts from the device ...
    (microsoft.public.windowsce.platbuilder)
  • Help: SuSE 8.2 pro CD writing problems.
    ... user could only see the dvd-rom in the k3b config. ... on /dev/sr1 to 660 to enable group disk to write to the emulated scsi ... Logged in as a normal, completely local user, I can erase a re-writable, ... re-gain acess to them (for writing). ...
    (alt.os.linux.suse)
  • Re: Atheists support evolution because evolution supports their
    ... by writing a sentence, but leaving my name under it. ... would be nice if you would erase my name so that it ... He seemed to have a good grasp of the concepts of religion and he had faith ...
    (talk.origins)
  • Re: How to "Archive" a text file with multiple handles open
    ... I use a similar method for writing to multiple log locations. ... While there are open file handles you can't "zero out" (erase the contents of) a file. ... The reason being that the other file streams are looking for data at a particular location.. ...
    (microsoft.public.dotnet.languages.vb)
  • RAID performance is not too well....
    ... spread over about 4000 directories. ... such that the chances of writing a full stripe becomes reasonable. ... Moreover, clustering should, even with reading other parts of the ... stripe result in a performance on the order of 10 to 50 times better. ...
    (Linux-Kernel)