linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: "Luis R. Rodriguez" <mcgrof@kernel.org>,
	"Darrick J. Wong" <darrick.wong@oracle.com>,
	"swadmin - levigo.de" <swadmin@levigo.de>,
	xfs list <linux-xfs@vger.kernel.org>
Subject: Re: Mounting xfs filesystem takes long time
Date: Thu, 21 Jun 2018 15:50:11 -0600	[thread overview]
Message-ID: <CAJCQCtSHT7fcHHxBaTESq5cdQQnYH95maNHby4MULCkar6mfeg@mail.gmail.com> (raw)
In-Reply-To: <89d39e37-3944-f58d-018c-d36bdc9f870c@sandeen.net>

On Thu, Jun 21, 2018 at 1:19 PM, Eric Sandeen <sandeen@sandeen.net> wrote:
>
>
> On 6/21/18 2:15 PM, Luis R. Rodriguez wrote:
>> On Tue, Jun 19, 2018 at 02:21:15PM -0500, Eric Sandeen wrote:
>>> On 6/19/18 11:18 AM, Darrick J. Wong wrote:
>>>> On Tue, Jun 19, 2018 at 02:27:29PM +0200, swadmin - levigo.de wrote:
>>>>> Hi @all
>>>>> I have a problem with mounting a large XFS filesystem which takes about
>>>>> 8-10 minutes.
>>>>>
>>>>>
>>>>>
>>>>> :~# df -h /graylog_data
>>>>> Filesystem                       Size  Used Avail Use% Mounted on
>>>>> /dev/mapper/vgdata-graylog_data   11T  5.0T  5.1T  50% /graylog_data
>>>>>
>>>>> ----
>>>>>
>>>>> :~# xfs_info /dev/mapper/vgdata-graylog_data
>>>>> meta-data=/dev/mapper/vgdata-graylog_data isize=512    agcount=40805,
>>>>> agsize=65792 blks
>>>>
>>>> 41,000 AGs is a lot of metadata to load.  Did someone growfs a 1G fs
>>>> into a 11T fs?
>>>
>>> <answer: yes, they did>
>>>
>>> Let me state that a little more clearly: this is a badly mis-administered
>>> filesystem; 40805 x 256MB AGs is nearly unusable, as you've seen.
>>>
>>> If at all possible I would start over with a rationally-created filesystem
>>> and migrate the data.
>>
>> Considering *a lot* of folks may typically follow the above "trap", wouldn't it
>> be wise for userspace to complain or warn when the user may want to do
>> something stupid like this? Otherwise I cannot see how we could possibly
>> conceive that this is badly administered filesystem.
>
> Fair point, though I'm not sure where such a warning would go.  growfs?
> I'm not a big fan of the "you asked for something unusual, continue [y/N]?"
> type prompts.
>
> To people who know how xfs is laid out it's "obvious" but it's not fair to
> assume every admin knows this, you're right.  So calling it mis-administered
> was a bit harsh.
>

The extreme case is interesting to me, but even more interesting are
the intermediate cases. Is it straightforward to establish a hard and
fast threshold? i.e. do not growfs more than 1000% from original size?
Do not growfs more than X times?

Or is it a linear relationship between performance loss and each
additional growfs?


-- 
Chris Murphy

  reply	other threads:[~2018-06-21 21:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-19 12:27 Mounting xfs filesystem takes long time swadmin - levigo.de
2018-06-19 16:00 ` Emmanuel Florac
2018-06-19 16:18 ` Darrick J. Wong
2018-06-19 19:21   ` Eric Sandeen
2018-06-21 19:15     ` Luis R. Rodriguez
2018-06-21 19:19       ` Eric Sandeen
2018-06-21 21:50         ` Chris Murphy [this message]
2018-06-21 22:19           ` Dave Chinner
2018-06-22  3:19             ` Chris Murphy
2018-06-22  4:02               ` Dave Chinner
2018-06-27 23:23                 ` Luis R. Rodriguez
2018-06-27 23:37                   ` Eric Sandeen
2018-06-28  2:05                     ` Dave Chinner
2018-06-28  8:19                       ` Carlos Maiolino

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=CAJCQCtSHT7fcHHxBaTESq5cdQQnYH95maNHby4MULCkar6mfeg@mail.gmail.com \
    --to=lists@colorremedies.com \
    --cc=darrick.wong@oracle.com \
    --cc=linux-xfs@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=sandeen@sandeen.net \
    --cc=swadmin@levigo.de \
    /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;
as well as URLs for NNTP newsgroup(s).