Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ext4 reserved space and defragmentation?
Date: Sun, 27 Jun 2010 08:46:03
In Reply to: [gentoo-user] ext4 reserved space and defragmentation? by Shaochun Wang
1 On 27 Jun 2010, at 08:52, Shaochun Wang wrote:
2 > ... "Reserving some number of filesystem blocks for use by
3 > privileged processes is done to avoid filesystem
4 > fragmentation"
5 >
6 > It means that filesystem defragmentation need such reserved blocks to
7 > work properly, am I right? If so, can I make the reserved blocks a
8 > little because the default 5% is too much. My NAS filesystem is about
9 > 7x1.5T, then 5% means a lot of space.
11 I'm pretty sure that just means that Linux will try to put files in
12 contiguous sectors, so they're not fragmented, and that as you run out
13 of space it's generally harder to do that.
15 But I would imagine this is particularly the case with the occasional
16 large file on a typical filesystem cluttered with small files - if you
17 have a 1TB drive and save 9 100GB movie files on it, the remaining
18 free space is going to be contiguous, anyway.
20 Whilst it would be interesting to do some real world testing on big
21 hard drives fulla porn, you can safely set the reserved space to 0%
22 and forget about it. That message has been there since ext2 and if you
23 streaming suddenly starts to stutter when your filesystem is 99% full,
24 well, you were going to add another drive to the array, anyway,
25 weren't you? Add it in and expand the filesystem and see if that makes
26 any difference.
28 Interestingly, I've just done an fsck on my ext4 media array and it
29 shows as 83.8% non-contiguous. It is 1.4TB with 272G or 19% free. I
30 can only assume this is because I also use it for backups, and have a
31 couple of directories on there of many much smaller files.
33 Stroller.


Subject Author
Re: [gentoo-user] ext4 reserved space and defragmentation? Dale <rdalek1967@×××××.com>