1 |
Hello, |
2 |
|
3 |
On Thu, 25 Aug 2022, Dale wrote: |
4 |
>Jack wrote: |
5 |
[..] |
6 |
>> Related question - how much space would you actually save by |
7 |
>> decreasing the number of inodes by 90%? Enough for one or two more |
8 |
>> videos? |
9 |
> |
10 |
>Now I have to admit, that is a question I have too. |
11 |
|
12 |
From my tests with a swapfile (which matches what I remember from real |
13 |
FSen), I think '-T largefile' vs. default frees up around 1.6% of the |
14 |
capacity, so for 9.1T it'd be around 150G which might be worthwhile |
15 |
_iff_ you are sure about what kind of files will go on that FS. |
16 |
|
17 |
FWIW, in a pinch if you run out of Inodes, you can create an image |
18 |
file on that fs, taking just 1 Inode, format that image differently, |
19 |
loop-mount it and put ton's of files inside the image. It'll eat a bit |
20 |
of performance though. |
21 |
|
22 |
And about the average filesize in a dir: Just find out the size (e.g.: |
23 |
du -msx /foo |
24 |
) and the number of used inodes (e.g.: |
25 |
find /foo -xdev | wc -l |
26 |
[1]) and then just divide: |
27 |
summed_size_in_unit / number_of_files = avg_size_in_unit |
28 |
for FSen, just divide used space by used inodes. |
29 |
|
30 |
HTH, |
31 |
-dnh |
32 |
|
33 |
[1] assuming you have no files with '\n' in the filename |
34 |
|
35 |
-- |
36 |
printk (KERN_ERR "%s: Oops - your private data area is hosed!\n", ...) |
37 |
linux-2.6.6/drivers/net/ewrk3.c |