From: Eric Sandeen <sandeen@sandeen.net>
To: Chris Murphy <lists@colorremedies.com>
Cc: xfs@oss.sgi.com
Subject: Re: higher agcount on LVM2 thinp volumes
Date: Thu, 29 Aug 2013 22:35:20 -0500 [thread overview]
Message-ID: <522012F8.4020608@sandeen.net> (raw)
In-Reply-To: <289A5A42-9879-4A2A-9284-4B8529A1488D@colorremedies.com>
On 8/29/13 10:24 PM, Chris Murphy wrote:
>
> On Aug 29, 2013, at 9:19 PM, Eric Sandeen <sandeen@sandeen.net> wrote:
>>
>> Argh sorry, how did I type THAT?
>>
>> # blockdev --getiomin --getioopt /dev/mapper/vg1-data
>
> conventional LV:
> [root@f19s ~]# blockdev --getiomin --getioopt /dev/mapper/vg1-data
> 512
> 0
>
> thinp LV:
>
> [root@f19s ~]# blockdev --getiomin --getioopt /dev/mapper/vg1-data
> 512
> 262144
>
> (Now I see two ways to get the same info.)
:)
ok so it says the stripe unit (minimum IO size) is 512...
Around line 2240, it does:
if (dsunit && !(BBTOB(dsunit) % blocksize) &&
dswidth && !(BBTOB(dswidth) % blocksize)) {
...
} else {
if (nodsflag)
dsunit = dswidth = 0;
essentially saying: If we autodetected a stripe unit or stripe width
which is not a multiple of the block size, silently set it to 0.
So we do that.
However, _just_ before this, we did:
calc_default_ag_geometry(blocklog, dblocks,
dsunit | dswidth, &agsize, &agcount);
when dsunit & dswidth were still set (to invalid values).
So we calculated it w/ stripe geom set, got more AGs, then zeroed
out the stripe geom.
I'm ... not sure how many bugs are here. ;) We shouldn't calculate
AG geometry until we've validated sunit/swidth, I think. But I'm not
convinced that dm-thinp's exported values make a lot of sense either.
-Eric
>
> Chris Murphy
>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2013-08-30 3:35 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
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 [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=522012F8.4020608@sandeen.net \
--to=sandeen@sandeen.net \
--cc=lists@colorremedies.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.