15

What is the limit of EXT4, what i found is only EXT3, and other links only suppositions and not a real number?

Can you please provide me: max number per directory, max size?

4

2 回答 2

15

跟进@Curt 的回答。创建参数可以确定inode的数量,这最终会限制你。df-i开关为您提供 inode 信息。

(env)somesone@somewhere:/$ df -iT
Filesystem     Type       Inodes  IUsed    IFree IUse% Mounted on
/dev/root      ext4     25149440 612277 24537163    3% /
devtmpfs       devtmpfs  3085602   1418  3084184    1% /dev
none           tmpfs     3086068      2  3086066    1% /sys/fs/cgroup
none           tmpfs     3086068    858  3085210    1% /run
none           tmpfs     3086068      1  3086067    1% /run/lock
none           tmpfs     3086068      1  3086067    1% /run/shm
none           tmpfs     3086068      4  3086064    1% /run/user

这是一个 Linode 盒子顺便说一句,所以它是虚拟化环境。我看到的数字是 24537163,这就是根 fs 有多少空闲 inode。请注意,一个目录中超过 10K 的文件可能会给许多工具带来困难。100K 对公用事业来说真的很难。

另请参阅:https ://serverfault.com/questions/104986/what-is-the-maximum-number-of-files-a-file-system-can-contain

于 2017-06-23T22:32:59.763 回答
4

它取决于文件系统创建期间使用的 MKFS 参数。不同的 Linux 风格有不同的默认值,所以真的不可能明确地回答你的问题。

于 2013-07-08T23:15:01.883 回答