public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Michael Weissenbacher <mw@dermichi.com>
Cc: xfs@oss.sgi.com
Subject: Re: Is it possible to change sunit of log section post-mkfs
Date: Wed, 4 Nov 2015 06:48:35 +1100	[thread overview]
Message-ID: <20151103194835.GE19199@dastard> (raw)
In-Reply-To: <56390BBE.6030102@dermichi.com>

On Tue, Nov 03, 2015 at 08:32:14PM +0100, Michael Weissenbacher wrote:
> Hi Dave!
> 
> >>
> >> What i want to achieve is to set the log sunit to the maximum possible
> >> of 64 blks (=256KiB).
> On 2015-11-03 20:11, Dave Chinner wrote:
> > 
> > Why? Is there a performance problem with the default setting?
> > 
> I am seeing very bad performance of "rm" on this file system. Of course
> I know that RAID-6 is kind of a worst case setup for that workload. But
> I was hoping that aligning the log correctly plus increasing the stripe
> size would help. Wouldn't the file system write more of the log at once
> with a bigger sunit size; resulting in fewer RMW cycles?

"rm is slow" could be many, many thingsr. Generally rm is limited
by directory/inode read speed, not log IO. You need to find out
exactly what is "slow" in rm before going knob twiddling. Is there
iowait time? If so, what IO is generating the iowait? Is rm CPU bound?
Is the log sleeping waiting for buffer space? is the log tail
pushing? etc, etc.


> I am already using delaylog, inode64, nobarrier to mount the fs;
> lazy-count=1.

IOWs, the defaults.

> Maybe moving to an external log would be the best option?

You haven't even determined that there's a problem with the log yet.

Twiddling knobs does not solve problems. Analyse the problem first,
understand where the "slowness" is coming from, and that
understanding will tell you is there's a knob that you can twiddle
to alleviate the problem.

Keep in mind that if you have lots of inodes, small files and/or
metadata intensive workloads, then it's very likely the RAID setup
is the problem, not the filesystem.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

      reply	other threads:[~2015-11-03 19:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-03 12:18 Is it possible to change sunit of log section post-mkfs Michael Weissenbacher
2015-11-03 13:02 ` Brian Foster
2015-11-03 19:22   ` Michael Weissenbacher
2015-11-03 19:39     ` Brian Foster
2015-11-03 19:11 ` Dave Chinner
2015-11-03 19:32   ` Michael Weissenbacher
2015-11-03 19:48     ` Dave Chinner [this message]

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=20151103194835.GE19199@dastard \
    --to=david@fromorbit.com \
    --cc=mw@dermichi.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