From: Dave Chinner <david@fromorbit.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: stan@hardwarefreak.com, xfs@oss.sgi.com
Subject: Re: higher agcount on LVM2 thinp volumes
Date: Fri, 30 Aug 2013 12:58:20 +1000 [thread overview]
Message-ID: <20130830025819.GB23571@dastard> (raw)
In-Reply-To: <DD759368-581C-4C94-BC5E-E6EC3A83FC61@colorremedies.com>
On Thu, Aug 29, 2013 at 08:08:25PM -0600, Chris Murphy wrote:
>
> On Aug 29, 2013, at 7:44 PM, Stan Hoeppner
> <stan@hardwarefreak.com> wrote:
> >
> > More information would be helpful, specifically WRT the device
> > stack underlying mkfs.xfs. I.e. we need to know more about the
> > LVM configuration.
> >
> > See:
> >
> > http://xfs.org/index.php/XFS_FAQ#Q:_What_information_should_I_include_when_reporting_a_problem.3F
>
> Summary: laptop, one HDD, one 402GB partition is made into a PV,
> one VG is created with that PV and is the only VG on the system,
> one 400GB logical volume pool is created, one 100GB virtual sized
> logical volume is created from the thin pool.
....
> meta-data=/dev/vg1/data isize=256 agcount=16, agsize=1638400 blks
> = sectsz=512 attr=2, projid32bit=0
> data = bsize=4096 blocks=26214400, imaxpct=25
> = sunit=0 swidth=0 blks
> naming =version 2 bsize=4096 ascii-ci=0
> log =internal log bsize=4096 blocks=12800, version=2
> = sectsz=512 sunit=0 blks, lazy-count=1
> realtime =none extsz=4096 blocks=0, rtextents=0
>
> Whereas if I mkfs.xfs on /dev/sda7, or if I create a regular LV
> rather than a thinp volume, agcount is 4. It doesn't matter
> whether I create the thinp with the chunk option set to default
> (as above) or 1MB or 4MB.
Which means that the thinp device has some difference in what it is
telling mkfs.xfs about it's configuration that makes mkfs.xfs think
it is a RAID volume, not a single disk.
Basically, I think you'll find that the thinp device is emitting a
an optimal IO size that is not aligned to the filesystem block size,
so the AG count is being calculated as though it is a ~1TB
"multidisk" device (which gives 16 AGs) and then setting
sunit/swidth to zero because they aren't filesystem block aligned...
Check the contents of
/sys/block/<dev>/queue/{minimum,optimal}_io_size for the single
device, the standard LV and the thinp device. I think that you'll
find only the thinp device has a non-zero value. If the value from
the thinp code is 512 (i.e. single sector) then that's a bug in
the thinp device code as it should be zero...
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2013-08-30 2:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-29 6:09 higher agcount on LVM2 thinp volumes Chris Murphy
2013-08-30 1:44 ` Stan Hoeppner
2013-08-30 2:08 ` Chris Murphy
2013-08-30 2:58 ` Dave Chinner [this message]
2013-08-30 3:21 ` Chris Murphy
2013-08-30 3:38 ` Dave Chinner
2013-08-30 17:55 ` Chris Murphy
2013-08-31 1:22 ` Eric Sandeen
2013-09-01 3:39 ` Chris Murphy
2013-08-30 3:04 ` Eric Sandeen
2013-08-30 3:18 ` Chris Murphy
2013-08-30 3:19 ` Eric Sandeen
2013-08-30 3:24 ` Chris Murphy
2013-08-30 3:29 ` Chris Murphy
2013-08-30 3:35 ` Eric Sandeen
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=20130830025819.GB23571@dastard \
--to=david@fromorbit.com \
--cc=lists@colorremedies.com \
--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