* Inode usage
@ 2007-04-19 8:28 Stein M. Hugubakken
2007-04-19 13:14 ` David Chinner
0 siblings, 1 reply; 4+ messages in thread
From: Stein M. Hugubakken @ 2007-04-19 8:28 UTC (permalink / raw)
To: xfs
Hi!
I have a lot of free inodes on my xfs-partitions and was wondering about
what impact this has on performance or memory?
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?
Kind regards
Stein
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Inode usage
2007-04-19 8:28 Inode usage Stein M. Hugubakken
@ 2007-04-19 13:14 ` David Chinner
2007-04-19 13:42 ` Daniele P.
0 siblings, 1 reply; 4+ messages in thread
From: David Chinner @ 2007-04-19 13:14 UTC (permalink / raw)
To: Stein M. Hugubakken; +Cc: xfs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Inode usage
2007-04-19 13:14 ` David Chinner
@ 2007-04-19 13:42 ` Daniele P.
2007-04-19 13:50 ` Daniele P.
0 siblings, 1 reply; 4+ messages in thread
From: Daniele P. @ 2007-04-19 13:42 UTC (permalink / raw)
To: xfs
On Thursday 19 April 2007 15:14, you wrote:
> 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. ;)
That's for normal usage.
Well, David don't forget what you tell me some time ago about
xfs_repair
In terms of inode count, I generally use the rule that for every
10million inodes you need a gigabyte of RAM for repair - you needed
about 500MB for 6million inodes.
The inode count also affects xfsdump/xfsrestore operations but I don't
know the details. There was a huge improvement in performances for
partial dump with xfsprogs-2.8.16 IIRC.
Regards,
Daniele P.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Inode usage
2007-04-19 13:42 ` Daniele P.
@ 2007-04-19 13:50 ` Daniele P.
0 siblings, 0 replies; 4+ messages in thread
From: Daniele P. @ 2007-04-19 13:50 UTC (permalink / raw)
To: xfs
On Thursday 19 April 2007 15:42, you wrote:
> On Thursday 19 April 2007 15:14, you wrote:
> > 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. ;)
Sorry. I was really blind. I didn't read "free".
Apologies,
Daniele P.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-19 13:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-19 8:28 Inode usage Stein M. Hugubakken
2007-04-19 13:14 ` David Chinner
2007-04-19 13:42 ` Daniele P.
2007-04-19 13:50 ` Daniele P.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox