1 |
Neil Bothwick writes: |
2 |
|
3 |
> On Tue, 28 Feb 2012 14:01:50 +0100, Alex Schuster wrote: |
4 |
> |
5 |
> > If you instantly need more space, reduce the amount of reserved space |
6 |
> > for the superuser, which is 5% as default: |
7 |
> > tune2fs -m 2 /dev/your/partition |
8 |
> > Don't reduce it to 0, the lower this value is, the more fragmentation |
9 |
> > you will get. |
10 |
> |
11 |
> Why is that? I would have expected more usable space to reduce the need |
12 |
> for fragmentation. I routinely use 0 on non-system filesystems. |
13 |
|
14 |
I read this often, and to me it seems to make sense. When a file system |
15 |
is nearly full, writing a last big file will make the file being |
16 |
cluttered along all those tiny places where some free space is still |
17 |
left. And this probably already happens to some extent before the |
18 |
filesystem is completely full. |
19 |
|
20 |
Now, which values for reserved percentage are good, I don't know. |
21 |
This probably depends much on the typical size of files on that partition, |
22 |
and usage patterns. For large movies on your data partition, it probably |
23 |
does not matter, but for my system partitions (/root, /usr, /var, /tmp, |
24 |
portage stuff) I just keep it at 5%. |
25 |
|
26 |
With the benefit that I can instantly free some space in /var when it's |
27 |
just become full, without needing to decide what to delete. Okay, in |
28 |
practice this does not matter much because resizing the LVM and resizing |
29 |
the FS is also a matter of seconds only. |
30 |
|
31 |
Wonko |