lkml.org 
[lkml]   [1998]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: blocksize > 4K in ext2 ?
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

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.040 / U:1.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site