From: David Chinner <dgc@sgi.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: Niv Sardi <xaiki@sgi.com>, xfs@oss.sgi.com, xfs-dev@sgi.com
Subject: Re: [REVIEW] mkfs.xfs man page needs the default settings updated, TAKE 2.
Date: Thu, 6 Mar 2008 17:19:41 +1100 [thread overview]
Message-ID: <20080306061941.GH155407@sgi.com> (raw)
In-Reply-To: <47CF8127.40900@sandeen.net>
On Wed, Mar 05, 2008 at 11:29:11PM -0600, Eric Sandeen wrote:
> Niv Sardi wrote:
> > Thanks to Eric for the comments, is this better ?
> >
> > Cheers,
> >
> > -- Niv Sardi
> >
> >
> >
> > From 7e0e328663858ecf13f35678f1a6d349c3d4dd5a Mon Sep 17 00:00:00 2001
> > From: Niv Sardi <xaiki@sgi.com>
> > Date: Fri, 22 Feb 2008 16:48:32 +1100
> > Subject: [PATCH] Update mkfs manpage for new defaults:
> >
> > log, attr and inodes v2,
> > Drop the ability to turn unwritten extents off completly,
> > reduce imaxpct for big filesystems, less AGs for single disks configs.
> > ---
> > xfsprogs/man/man8/mkfs.xfs.8 | 41 ++++++++++++++++++-----------------------
> > 1 files changed, 18 insertions(+), 23 deletions(-)
> >
> > diff --git a/xfsprogs/man/man8/mkfs.xfs.8 b/xfsprogs/man/man8/mkfs.xfs.8
> > index b6024c3..afc284c 100644
> > --- a/xfsprogs/man/man8/mkfs.xfs.8
> > +++ b/xfsprogs/man/man8/mkfs.xfs.8
> > @@ -304,10 +304,16 @@ bits.
> > This specifies the maximum percentage of space in the filesystem that
> > can be allocated to inodes. The default
> > .I value
> > -is 25%. Setting the
> > +is 25% for filesystems under 1TB, 5% for filesystems under 50TB and 1%
> > +for filesystems over 50TB. Setting the
> > .I value
> > -to 0 means that essentially all of the filesystem can
> > -become inode blocks.
> > +to 0 means that essentially all of the filesystem can become inode
> > +blocks. Note that this is only used by inode32 (on 32bits platforms),
> > +and is ignored on 64bits platforms.
>
> Really? The m_maxicount tests in xfs_ialloc_ag_alloc and xfs_dialloc
> don't seem to care about inode32 or not, unless I'm missing something.
See xfs_set_maxicount() and then how it is used in xfs_initialize_perag()
to set up pag->pagi_inodeok, pag->pagf_metadata and mp->m_maxagi which
are used by the allocator....
> How about...
>
> maxpct=value
> This specifies the maximum percentage of space in the
> filesystem that can be allocated to inodes. The
> default value is 25% for filesystems under 1TB, 5% for
> filesystems under 50TB and 1% for filesystems over 50TB.
>
> In the default inode allocation mode, inode blocks are
> chosen such that inode numbers will not exceed 32 bits,
> which restricts the inode blocks to the lower portion of
> the filesystem. The data block allocator will avoid these
> low blocks to accommodate the specified maxpct, so a high
> value may result in a filesystem with nothing but inodes
> in a significant portion of the lower blocks of the
> filesystem. (This restriction is not present when
> the filesystem is mounted with the "inode64" option on
> 64-bit platforms).
>
> Setting the value to 0 means that essentially all of the
> filesystem can become inode blocks, subject to inode32
> restrictions.
>
> This value can be modified with xfs_growfs(8).
>
> eh... could be better... but how's it sound?
Much better.
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
next prev parent reply other threads:[~2008-03-06 6:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-04 5:36 [REVIEW] mkfs.xfs man page needs the default settings updated Niv Sardi
2008-03-04 15:38 ` Eric Sandeen
2008-03-04 15:46 ` Eric Sandeen
2008-03-06 4:41 ` [REVIEW] mkfs.xfs man page needs the default settings updated, TAKE 2 Niv Sardi
2008-03-06 5:29 ` Eric Sandeen
2008-03-06 6:19 ` David Chinner [this message]
2008-03-06 6:12 ` David Chinner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080306061941.GH155407@sgi.com \
--to=dgc@sgi.com \
--cc=sandeen@sandeen.net \
--cc=xaiki@sgi.com \
--cc=xfs-dev@sgi.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox