From: David Chinner <dgc@sgi.com>
To: Nathan Scott <nscott@aconex.com>
Cc: Chris Wedgwood <cw@f00f.org>, Johan Andersson <johan@e-626.net>,
xfs@oss.sgi.com, linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: xfs_fsr allocation group optimization
Date: Tue, 12 Jun 2007 11:38:03 +1000 [thread overview]
Message-ID: <20070612013803.GI86004887@sgi.com> (raw)
In-Reply-To: <1181603256.3758.46.camel@edge.yarra.acx>
On Tue, Jun 12, 2007 at 09:07:36AM +1000, Nathan Scott wrote:
> On Mon, 2007-06-11 at 08:58 -0700, Chris Wedgwood wrote:
> > > In the way xfs_fsr operates now, in almost all user space, I don't
> > > see any good way to tell XFS where to place the extents, other than
> > > creating the temporary file in the same directory as the original
> > > file.
> >
> > Exactly.
> >
> > > My question is really, is there a better way than "find -xdev -inum"
> > > to find what file points to a given inode?
> >
> > You can build then entire tree in-core using bulkstat and readdir,
> > doing the bulkstat first means you can try to optimize the order you
> > do the readdirs in somewhat.
>
> Probably better to change the kernel extent-swap code to not do
> alloc-near-tempinode allocations, and instead find a way to pass
> XFS_ALLOCTYPE_THIS_AG/XFS_ALLOCTYPE_NEAR_BNO/or some saner alloc
> flag down to the allocator for all extent swapping allocations.
/me sighs and points to the generic allocation interface I wanted
for exactly these reasons:
http://marc.info/?l=linux-fsdevel&m=116278169519095&w=2
Instead, we're getting a mostly useless XFS_IOC_RESVSP replacement
called sys_fallocate() that provides us with pretty much nothing.
Given that sys_fallocate() can't be extended to do this sort of
thing, we're going to be stuck with doing our own thing again....
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
next prev parent reply other threads:[~2007-06-12 1:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-11 6:51 xfs_fsr allocation group optimization Johan Andersson
2007-06-11 7:35 ` Chris Wedgwood
2007-06-11 8:43 ` Johan Andersson
2007-06-11 9:01 ` Chris Wedgwood
2007-06-11 9:15 ` Johan Andersson
2007-06-11 9:41 ` Chris Wedgwood
2007-06-11 10:39 ` Johan Andersson
2007-06-11 15:58 ` Chris Wedgwood
2007-06-11 23:07 ` Nathan Scott
2007-06-12 1:38 ` David Chinner [this message]
2007-06-12 1:41 ` David Chinner
2007-06-12 1:44 ` David Chinner
2007-06-15 7:20 ` Timothy Shimmin
2007-06-15 7:24 ` Nathan Scott
2007-06-15 7:40 ` Johan Andersson
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=20070612013803.GI86004887@sgi.com \
--to=dgc@sgi.com \
--cc=cw@f00f.org \
--cc=johan@e-626.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=nscott@aconex.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.