[lkml]   [2001]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjecttuning ext2 or ReiserFS to avoid fragmentation with large files?
hi all

I've got this server with lots of ~3GB files and every now and then we
need to add some more or delete some old ones. All files are potentially
read concurrently, so to reduce disk seeks, I've increased the readahead
settings in kernel (/proc/sys/vm/(min|max)-readahead).

Then... A friend of mine told me I could tune the fs (or vfs) to allocate
n kB each time a file is created, and by setting this to whatever I've set
(min|max)-readahead to (currently 1048576), I will reduce the negative
effect of fragmentation to a minimum, since the data blocks will be large,
and read more-or-less sequencially.

Can anyone tell me how to tell the fs or the kernel to allocate n pages/kB
this way? Is it possible? Can I possibly set different sizes per file



Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA

Computers are like air conditioners.
They stop working when you open Windows.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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