xfs
[Top] [All Lists]

Re: How and or do I ensure a system will not run out of inodes?

To: Q A <qarce_mail_lists@xxxxxxxxx>
Subject: Re: How and or do I ensure a system will not run out of inodes?
From: Steve Lord <lord@xxxxxxx>
Date: 20 Dec 2001 12:58:19 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20011220185502.78233.qmail@web20309.mail.yahoo.com>
References: <20011220185502.78233.qmail@web20309.mail.yahoo.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Thu, 2001-12-20 at 12:55, Q A wrote:
> Hello,
> 
>       I am not on the list so, please :-) reply to all so
> that I may learn from you all.
> 
> I think I just saw an ext2 system run out of inodes. 
> I have a large (about 280GB) system I will be bringing
> on line soon with XFS.  It will be a source repository
> system.  I know once the file system is built you can
> not re-define the number of inodes.  For this reason,
> the size of the system, and the large number of files
> that will be created on this system I would like to
> plan.
> 
> Is there a formula for determining the number of
> inodes a system should have based on use, size, fs
> type?
> 
> Thanks for all of your help,
> 
> Quentin Arce

For XFS this is wrong. XFS allocates inodes dynamically as you need
them, there is no mkfs imposed limit. By default 25% of the filesystem
is allowed to be allocated as inodes, you can change this limit at
mkfs time, or you can change it later with xfs_growfs. This space
can be consumed as data and other things too, it is not 25% which can
only be inodes.

Note that with defaul sizes this allows for 1 million inodes per Gbyte
of filesystem space - default size inodes take 256 bytes each. So unless
you expect more that 280 million files in your filesystem you do not
need to change anything.

Steve


-- 

Steve Lord                                      voice: +1-651-683-3511
Principal Engineer, Filesystem Software         email: lord@xxxxxxx


<Prev in Thread] Current Thread [Next in Thread>