* tuning ext2 or ReiserFS to avoid fragmentation with large files?
@ 2001-12-03 13:13 Roy Sigurd Karlsbakk
2001-12-04 13:20 ` Erik Tews
0 siblings, 1 reply; 5+ messages in thread
From: Roy Sigurd Karlsbakk @ 2001-12-03 13:13 UTC (permalink / raw)
To: linux-kernel
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
system?
Thanks
roy
--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA
Computers are like air conditioners.
They stop working when you open Windows.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tuning ext2 or ReiserFS to avoid fragmentation with large files?
2001-12-03 13:13 tuning ext2 or ReiserFS to avoid fragmentation with large files? Roy Sigurd Karlsbakk
@ 2001-12-04 13:20 ` Erik Tews
2001-12-05 2:17 ` Rasmus Bøg Hansen
0 siblings, 1 reply; 5+ messages in thread
From: Erik Tews @ 2001-12-04 13:20 UTC (permalink / raw)
To: Roy Sigurd Karlsbakk; +Cc: linux-kernel
On Mon, Dec 03, 2001 at 02:13:22PM +0100, Roy Sigurd Karlsbakk wrote:
> 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
> system?
If I remember right xfs has got a online-defragmentation utility. So
have a look at xfs.
I think xfs works different from reiserfs and ext2 when writing files to
disk which helps avoiding fragmentation. This feature is called
allocation groups.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tuning ext2 or ReiserFS to avoid fragmentation with large files?
2001-12-04 13:20 ` Erik Tews
@ 2001-12-05 2:17 ` Rasmus Bøg Hansen
2001-12-05 4:40 ` Mike Fedyk
2001-12-05 10:40 ` Erik Tews
0 siblings, 2 replies; 5+ messages in thread
From: Rasmus Bøg Hansen @ 2001-12-05 2:17 UTC (permalink / raw)
To: Erik Tews; +Cc: Roy Sigurd Karlsbakk, linux-kernel
On Tue, 4 Dec 2001, Erik Tews wrote:
> If I remember right xfs has got a online-defragmentation utility. So
> have a look at xfs.
>
> I think xfs works different from reiserfs and ext2 when writing files to
> disk which helps avoiding fragmentation. This feature is called
> allocation groups.
I *might* be wrong, but isn't the allocation-group thing exactly what
ext2/ext3 does?
I don't know about reiserfs and fragmentation, however.
Rasmus
--
-- [ Rasmus 'Møffe' Bøg Hansen ] ---------------------------------------
Beware of bugs in the above code;
I have only proved it correct, not tried it.
- Donald Knuth
--------------------------------- [ moffe at amagerkollegiet dot dk ] --
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: tuning ext2 or ReiserFS to avoid fragmentation with large files?
2001-12-05 2:17 ` Rasmus Bøg Hansen
@ 2001-12-05 4:40 ` Mike Fedyk
2001-12-05 10:40 ` Erik Tews
1 sibling, 0 replies; 5+ messages in thread
From: Mike Fedyk @ 2001-12-05 4:40 UTC (permalink / raw)
To: Rasmus B?g Hansen; +Cc: Erik Tews, Roy Sigurd Karlsbakk, linux-kernel
On Wed, Dec 05, 2001 at 03:17:17AM +0100, Rasmus B?g Hansen wrote:
> On Tue, 4 Dec 2001, Erik Tews wrote:
>
> > If I remember right xfs has got a online-defragmentation utility. So
> > have a look at xfs.
> >
> > I think xfs works different from reiserfs and ext2 when writing files to
> > disk which helps avoiding fragmentation. This feature is called
> > allocation groups.
>
> I *might* be wrong, but isn't the allocation-group thing exactly what
> ext2/ext3 does?
>
Basically, yes. They both have the name "group" in some of their feature
lists. What really matters is *what* they encompass, and *how* they're used.
Can someone in the know comment about the similarity of the ext[23] and xfs
groups?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tuning ext2 or ReiserFS to avoid fragmentation with large files?
2001-12-05 2:17 ` Rasmus Bøg Hansen
2001-12-05 4:40 ` Mike Fedyk
@ 2001-12-05 10:40 ` Erik Tews
1 sibling, 0 replies; 5+ messages in thread
From: Erik Tews @ 2001-12-05 10:40 UTC (permalink / raw)
To: Rasmus Bøg Hansen; +Cc: Erik Tews, Roy Sigurd Karlsbakk, linux-kernel
On Wed, Dec 05, 2001 at 03:17:17AM +0100, Rasmus Bøg Hansen wrote:
> On Tue, 4 Dec 2001, Erik Tews wrote:
>
> > If I remember right xfs has got a online-defragmentation utility. So
> > have a look at xfs.
> >
> > I think xfs works different from reiserfs and ext2 when writing files to
> > disk which helps avoiding fragmentation. This feature is called
> > allocation groups.
>
> I *might* be wrong, but isn't the allocation-group thing exactly what
> ext2/ext3 does?
>
> I don't know about reiserfs and fragmentation, however.
I am sure that xfs is doing that and reiserfs is not doing that.
But I am not sure about ext2 and ext3.
Reiserfs4 is going to be different, and it will have a
online-defragmentation utility.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-12-05 10:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-03 13:13 tuning ext2 or ReiserFS to avoid fragmentation with large files? Roy Sigurd Karlsbakk
2001-12-04 13:20 ` Erik Tews
2001-12-05 2:17 ` Rasmus Bøg Hansen
2001-12-05 4:40 ` Mike Fedyk
2001-12-05 10:40 ` Erik Tews
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox