UFS Maximum files count. Where to find or how to calculate?

Hello all!

Where to find maximum count of the files?. Or how to calculate it? The server in current project should care about 850 000 - 900 000 files + the same amount of symlinks per one server. One server contain 10-24 physical disks. Is it possible to do it reliably on UFS or this amount will require ZFS? Where to find manuals about storing big amount of small file with FreeBSD?
 
df -i will show you. iused = number of inodes used. ifree = number of inodes available. One inode per file or dir or symlink or special file or fifo or unix domain socket. The last two only if they are named (accessible via a path). Read df's man page.
 
For UFS, you can set the amount of space reserved for inodes when creating the file system with the newfs command. Read the man page. But it seems to me that creating a UFS file system that spans 10-24 disks is a little silly: with this many disks, you will need some form of RAID (since otherwise failure of a single disk will take the whole file system out), and for that ZFS is much better.

In ZFS, the number of inodes (=number of files + directories + strange things like sym links or device files ...) is de-facto unlimited.
 
Keep in mind that you can't have more than 65500 hard links (sub directories).
900 000 files are nothing, don't think about it. Just check if your Raid controller is supported.
 
Back
Top