xfs
[Top] [All Lists]

Re: Inode usage

To: "Stein M. Hugubakken" <dulci@xxxxxxxx>
Subject: Re: Inode usage
From: David Chinner <dgc@xxxxxxx>
Date: Thu, 19 Apr 2007 23:14:42 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <4627283E.7060000@xxxxxxxx>
References: <4627283E.7060000@xxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Thu, Apr 19, 2007 at 10:28:46AM +0200, Stein M. Hugubakken wrote:
> Hi!
> 
> I have a lot of free inodes on my xfs-partitions and was wondering about 
> what impact this has on performance or memory?

None.  The number of free inodes is a made up number. ;)

XFS dynamically allocates and frees inodes, so the number of free
inodes is determined by working out how many inodes
could be allocated in the remaining free space you have.
It's a theoretical maximum....

> Here is output from 'df':
> df -ih
> Filesystem            Inodes   IUsed   IFree IUse% Mounted on
> /dev/hda2               5,1M    129K    5,0M    3% /
> /dev/hda3                31M     54K     31M    1% /home
> 
> df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda2             5,1G  2,8G  2,4G  55% /
> /dev/hda3              31G   18G   13G  59% /home
> 
> With xfs_growfs -m I can adjust the amount of free inodes, but it seems 
> I can't change it for the root-partition, why is that a problem?

Works for me....

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


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