Re: blocksize > 4K in ext2 ?

Rik van Riel (H.H.vanRiel@phys.uu.nl)
Thu, 21 May 1998 11:54:31 +0200 (MET DST)


On Wed, 20 May 1998, Sieger Ralf AI wrote:

> I currently developing a fs which supports among other things
> fragmentation. This means for better throughput I want to use the highest
> possible blocksize. So if someone has an solution to this limit I would
> cheer.

It's simple. Use 4kB blocks for I/O, and use multiple blocks
for on-disk allocation.
ie:
- you do I/O in multiple 4kB chunks
- you allocate disk space per 256 4kB chunks

This way, you have 1MB disk blocks. And if you use the
ext2fs preallocation scheme, you can even free the 4k
blocks which aren't used by the file when the file is
closed...

Rik.
+-------------------------------------------+--------------------------+
| Linux: - LinuxHQ MM-patches page | Scouting webmaster |
| - kswapd ask-him & complain-to guy | Vries cubscout leader |
| http://www.phys.uu.nl/~riel/ | <H.H.vanRiel@phys.uu.nl> |
+-------------------------------------------+--------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu