public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Foster <bfoster@redhat.com>
To: Stan Hoeppner <stan@hardwarefreak.com>
Cc: Richard Scobie <r.scobie@clear.net.nz>, xfs@oss.sgi.com
Subject: Re: file streams allocator behavior
Date: Sun, 26 Oct 2014 18:18:11 -0400	[thread overview]
Message-ID: <20141026221811.GA13113@bfoster.bfoster> (raw)
In-Reply-To: <544D2EE1.3080304@hardwarefreak.com>

On Sun, Oct 26, 2014 at 12:26:57PM -0500, Stan Hoeppner wrote:
> 
> 
> On 10/26/2014 09:26 AM, Brian Foster wrote:
> > On Sat, Oct 25, 2014 at 04:26:54PM -0500, Stan Hoeppner wrote:
> >> On 10/25/2014 01:56 PM, Richard Scobie wrote:
> >>> Stan Hoeppner said:
> >>>
> >>>> How can I disable or change the filestreams behavior so all files go
> >>>> into the one AG for the single directory test?
> >>>
> >>> Hi Stan,
> >>>
> >>> Instead of mounting with -o filestreams, would using the chattr flag
> >>> instead help?
> >>>
> >>> See
> >>> http://xfs.org/docs/xfsdocs-xml-dev/XFS_User_Guide/tmp/en-US/html/ch06s16.html
> >>
> >> That won't help.  That turns it on (if it's not enabled by default these
> >> days).  I need to turn off the behavior I'm seeing, whether it's due to
> >> the filestreams allocator or default inode64.  Then again it may not be
> >> possible to turn it off...
> >>
> >> Anyone have other ideas on how to accomplish my goal?  Parallel writes
> >> to a single AG on the outer platter edge vs the same to all AGs across
> >> the entire platter?  I'm simply trying to demonstrate the differences in
> >> aggregate bandwidth due to the extra seek latency of all AGs case.
> >>
> > 
> > What about just preallocating the files? Obviously this removes block
> > allocation contention from your experiment, but it's not clear if that's
> > relevant to your test. If I create a smaller, but analogous fs to yours,
> > I seem to get this behavior from just doing an fallocate of each file in
> > advance.
> > 
> > E.g., Create directory 0, fallocate 44 files all of which end up in AG
> > 0. Create directory 1, fallocate 44 files which end up in AG 1, etc.
> > From there you can do direct I/O overwrites to 44 files across each AG
> > or 44 files in any single AG.
> 
> I figured preallocating would get me what I want but I've never used
> fallocate, nor dd into fallocated files.  Is there anything special
> required here with dd, or can I simply specify the filename to dd, and
> make sure bs + count doesn't go beyond EOF?
> 

Ah, yeah. dd will truncate the file by default iirc, which would free
the preallocated blocks and start from scratch. Specify 'conv=notrunc'
as part of the command line to get around that.

Brian

> Thanks,
> Stan
> 

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2014-10-26 22:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-25 18:56 file streams allocator behavior Richard Scobie
2014-10-25 21:26 ` Stan Hoeppner
2014-10-26 14:26   ` Brian Foster
2014-10-26 17:26     ` Stan Hoeppner
2014-10-26 22:18       ` Brian Foster [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-10-25 18:12 Stan Hoeppner
2014-10-26 23:56 ` Dave Chinner
2014-10-27 23:24   ` Stan Hoeppner

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=20141026221811.GA13113@bfoster.bfoster \
    --to=bfoster@redhat.com \
    --cc=r.scobie@clear.net.nz \
    --cc=stan@hardwarefreak.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