xfs
[Top] [All Lists]

Re: Allocating inodes from a single block

To: Chris Wedgwood <cw@xxxxxxxx>
Subject: Re: Allocating inodes from a single block
From: Michael Nishimoto <miken@xxxxxxxxx>
Date: Tue, 17 Jul 2007 14:01:58 -0700
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20070717201921.GA26309@xxxxxxxxxxxxxxxxxxxxx>
References: <469D0666.6040908@xxxxxxxxx> <20070717201921.GA26309@xxxxxxxxxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mail/News 1.5.0.4 (X11/20060629)
Chris Wedgwood wrote:
On Tue, Jul 17, 2007 at 11:11:50AM -0700, Michael Nishimoto wrote:

 > Filesystem free space becomes fragmented over time.  It's possible
 > for total free space to be a decent size and still not have a chunk
 > large enough to allocate new inodes.

by default there is a restriction that indoes shouldn't consume more
that 25% of the total space

see the mkfs.xfs man-page for details, search for 'maxpct'

for existing filesystems you can use xfs_db to rewrite this value

I do know about the 25% restriction, but that isn't what I'm talking
about.  I'm not suggesting to fillup a filesystem 100% with
inodes.

Imagine a case where only 2-3% of the space is inodes but that 94%
of the total space was filled.  If the remaining 6% of space is
highly fragmented, then no new inodes can be allocated.  The dialloc
code couldn't find 8 contiguous blocks.

   Mike


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